files to install and remove uninstalled files; refs #112

master
Marc Wäckerlin 13 years ago
parent 01b8c231fe
commit 0ba4b2bd32
  1. 33
      swisssurfer.spec.in

@ -26,41 +26,24 @@ make
%install
DESTDIR=$RPM_BUILD_ROOT make install
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/html
rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/COPYING
rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/INSTALL
rm $RPM_BUILD_ROOT/usr/share/doc/packages/swisssurfer/swisssurfer.spec
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/lib/@PACKAGENAME@.so.*
/usr/bin/@PACKAGENAME@
/usr/share/applications/@PACKAGENAME@.desktop
/usr/share/swisssurfer/swisssurfer.png
/usr/share/swisssurfer/swisssurfer.xpm
%doc
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
/usr/share/doc/packages/@PACKAGENAME@/COPYING
/usr/share/doc/packages/@PACKAGENAME@/ChangeLog
/usr/share/doc/packages/@PACKAGENAME@/INSTALL
/usr/share/doc/packages/@PACKAGENAME@/NEWS
/usr/share/doc/packages/@PACKAGENAME@/README
%package devel
Summary: @PACKAGENAME@ PLEASE DESCRIBE (development files)
Group: Development/Libraries/C++
Requires: @PACKAGENAME@ = @VERSION@
%description devel
@README@
This Package contains all files required for developement.
%files devel
%defattr(-,root,root,-)
/usr/lib/@PACKAGENAME@.so
/usr/lib/@PACKAGENAME@.a
/usr/lib/pkgconfig
/usr/lib/@PACKAGENAME@.la
/usr/include/
/usr/share/pkgconfig
%doc
/usr/share/doc/packages/@PACKAGENAME@/html
/usr/share/doc/packages/@PACKAGENAME@/@PACKAGENAME@.spec
%changelog

Loading…
Cancel
Save