Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Sample Config Files
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
  #1 (permalink)  
Old 21-Sep-2007, 13:28
Henkees
Guest
 
Posts: n/a
Default

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
The source can be found on http://<a href="http://user.cs.tu-be...~pmueller/</a>

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2