Navigation
Artikel
Stuff
RSS Feeds
|
Tutorials - Fedora RPM-Pakete patchenSprachenübersicht/Betriebssysteme/Linux/Fedora Keywords: patch fedora rpm packages pakete howto tutorial Einleitung Top
Vorbereitung Top
Code: su - # yum install rpmdevtools # adduser -m makerpm su - makerpm $ rpmdev-setuptree $ ls ~ rpmbuild $ ls rpmbuild BUILD RPMS SOURCES SPECS SRPMS
Code: $ yumdownloader --source kdepim $ ls kdepim-4.2.0-2.fc10.src.rpm rpmbuild $ rpmdev-extract kdepim-4.2.0-2.fc10.src.rpm $ ls kdepim-4.2.0-2.fc10.src kdepim-4.1.80-libqgpgme-link-fix.patch kdepim-4.2.0-kpilot.patch kdepim-4.2.0.tar.bz2 kdepim.spec $ mv kdepim-4.2.0-2.fc10.src/kdepim-4.* rpmbuild/SOURCES/ $ mv kdepim-4.2.0-2.fc10.src/kdepim.spec rpmbuild/SPECS/ $ cd rpmbuild/SOURCES/
Code: $ wget http://websvn.kde.org/trunk/KDE/kdepim/kaddressbook/addresseeeditorwidget.cpp?r1=923394&r2=923393&pathrev=923394&view=patch $ mv addresseeeditorwidget.cpp\?r1\=923394\&r2\=923393\&pathrev\=923394\&view\=patch kdepim-4.2.0-addresseeeditorwidget.patch $ cd ../SPECS/
rpmbuild/SPECS/kdepim.spec: %ifnarch s390 s390x %define _with_pilot_link 1 %endif Name: kdepim Summary: PIM (Personal Information Manager) applications Epoch: 6 Version: 4.2.0 # Release-Nummer um eins erhöhen: Release: 7%{?dist} License: GPLv2 Group: Applications/Productivity URL: http://www.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 Patch0: kdepim-4.1.80-libqgpgme-link-fix.patch # unser Patch: Patch1: kdepim-4.2.0-addresseeeditorwidget.patch # upstream patches Patch100: kdepim-4.2.0-kpilot.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Provides: kdepim4 = %{version}-%{release} Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release} Requires(post): xdg-utils Requires(postun): xdg-utils [.....] %prep %setup -q %patch0 -p1 -b .libqgpgme-link-fix # unser Patch: %patch1 -p3 -b .addresseeeditorwidget # upstream patches %patch100 -p1 -b .kpilot [......] # Changelog aktualisieren: %changelog * Fri Feb 27 2009 Julian G. <glua@4-xxx.net> - 4.2.0-7 - upstream patch, fix kaddressbook fields for homepage and blog * Tue Jan 27 2009 Than Ngo <than@redhat.com> - 4.2.0-2 - upstream patch, fix data corruption problems in KPilot * Thu Jan 22 2009 Than Ngo <than@redhat.com> - 4.2.0-1 - 4.2.0 [.....]
Kompilieren Top
Code: $ pwd ~/rpmbuild/SPECS $ rpmbuild -ba kdepim.spec error: Failed build dependencies: akonadi-devel is needed by kdepim-6:4.2.0-7.fc10.src bison is needed by kdepim-6:4.2.0-7.fc10.src flex is needed by kdepim-6:4.2.0-7.fc10.src boost-devel is needed by kdepim-6:4.2.0-7.fc10.src cyrus-sasl-devel is needed by kdepim-6:4.2.0-7.fc10.src gnokii-devel is needed by kdepim-6:4.2.0-7.fc10.src gpgme-devel is needed by kdepim-6:4.2.0-7.fc10.src kdepimlibs-devel >= 4.2.0 is needed by kdepim-6:4.2.0-7.fc10.src libassuan-devel is needed by kdepim-6:4.2.0-7.fc10.src lockdev-devel is needed by kdepim-6:4.2.0-7.fc10.src pilot-link-devel >= 0.12 is needed by kdepim-6:4.2.0-7.fc10.src libmal-devel >= 0.40 is needed by kdepim-6:4.2.0-7.fc10.src soprano-devel is needed by kdepim-6:4.2.0-7.fc10.src qca2-devel is needed by kdepim-6:4.2.0-7.fc10.src giflib-devel is needed by kdepim-6:4.2.0-7.fc10.src openldap-devel is needed by kdepim-6:4.2.0-7.fc10.src pcre-devel is needed by kdepim-6:4.2.0-7.fc10.src libical-devel is needed by kdepim-6:4.2.0-7.fc10.src
Code: $ su - # yum install libical-devel pcre-devel openldap-devel giflib-devel qca2-devel soprano-devel libmal-devel pilot-link-devel lockdev-devel libassuan-devel kdepimlibs-devel gpgme-devel gnokii-devel cyrus-sasl-devel boost-devel flex bison akonadi-devel # exit
Code: $ cd rpmbuild/SPECS/ $ rpmbuild -ba kdepim.spec
Gibt es noch irgendwelche Fragen, oder wollen Sie über den Artikel diskutieren? Sprachenübersicht/Betriebssysteme/Linux/Fedora/Fedora RPM-Pakete patchen |