|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Sample Config Files Lost a config file, get a copy of popular service files here. |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
After lot's of efforts and many mistakes I finally created an RPM for the popular screensaver Kcometen3 This screensaver can be found on http://www.kde-look.org This is my first RPM i made, so i would not be surprised if the spec-file i wrote can be made easier.... :blush: The RPM is created on an X86_64 Intel Dual Core machine working with Suse 10.2 This is the spec-file: Code:
# The base of this spec-file was generated by KDevelop. # Please report any problem to KDevelop Team <kdevelop-devel@kdevelop.org>** # Thanks to Matthias Saou for his explanations on http://freshrpms.net/docs/fight.html # Spec-file modified by Henkees Ingelse <henkesi@hotmail.com> Name: kcometen3 Version: 1.1 Release: 1 Vendor: Peter Mueller License: GPL Summary: Screensaver Group: Amusements/Toys/Screensavers Packager: Henkees Ingelse <henkesi@hotmail.com> BuildRoot:**%{_tmppath}/%{name}-%{version}-buildroot Source: http://user.cs.tu-berlin.de/~pmuelle...en3-1.1.tar.gz BuildArch: x86_64 %description OpenGL screensaver for KDE %prep -q %setup %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %configure --prefix=/opt/kde3/ --with-qt-libraries=/usr/lib64/qt3/lib64/ --libdir=/opt/kde3/lib64 make DESTDIR=$RPM_BUILD_ROOT %install -d install -D $RPM_BUILD_DIR/%{name}-%{version}/src/kcometen3.kss $RPM_BUILD_ROOT/opt/kde3/bin/kcometen3.kss install -D $RPM_BUILD_DIR/%{name}-%{version}/pixmaps/lightmap.png $RPM_BUILD_ROOT/opt/kde3/share/apps/kcometen3/pixmaps/lightmap.png install -D $RPM_BUILD_DIR/%{name}-%{version}/pixmaps/particle.png $RPM_BUILD_ROOT/opt/kde3/share/apps/kcometen3/pixmaps/particle.png install -D $RPM_BUILD_DIR/%{name}-%{version}/src/kcometen3.desktop $RPM_BUILD_ROOT/opt/kde3/share/applnk/System/ScreenSavers/kcometen3.desktop %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files /opt/kde3/bin/kcometen3.kss /opt/kde3/share/apps/kcometen3/pixmaps/lightmap.png /opt/kde3/share/apps/kcometen3/pixmaps/particle.png /opt/kde3/share/applnk/System/ScreenSavers/kcometen3.desktop %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %changelog * Sat Sep 15 2007 Henkees Ingelse <henkesi@hotmail.com> - RPM made from sourcefile I used the build structure in file:///usr/src/packages/ to build the rpm. Maybe it can be done better -remember: it's my first rpm! :unsure: - but it works well on suse 10.2 (64 bits) . I put my spec-file here, because maybe more people can use the rpm that can be created with this file. Thanks for any comments in advance! And thanks to all the people that put all the info on the web, how to make an RPM. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|