diff moin.spec @ 777:e80f12c41f77

fixed moin.spec with patch from SF, please review/test
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Jun 2006 10:22:04 +0200
parents cdfb01bec122
children e15f1c62ac51
line wrap: on
line diff
--- a/moin.spec	Sat Jun 10 10:12:59 2006 +0200
+++ b/moin.spec	Sat Jun 10 10:22:04 2006 +0200
@@ -44,6 +44,7 @@
 
 %prep
 %setup
+echo $RPM_BUILD_ROOT
 
 %build
 # replace python by python2 if python refers to version 1.5 on your system
@@ -52,15 +53,22 @@
 %install
 # replace python by python2 if python refers to version 1.5 on your system
 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f INSTALLED_FILES
+#%files -f INSTALLED_FILES   # Wrong: Installed files contains directories also
+# This lets rpmbuild complain about Files listet twice.
+# A Good explanation is here: "http://www.wideopen.com/archives/rpm-list/2001-February/msg00081.html
+%files
 %defattr(-,root,root)
+/usr
 %doc  README docs/CHANGES docs/INSTALL.html docs/licenses/COPYING
 
 %changelog
+* Do Jun  8 2006 Johannes Poehlmann
+- Fix RPM build errror "Files listet twice" 
+  Replaced files list and just package all of /usr.
+
 * Fri Mar 05 2004 Florian Festi
 - Initial RPM release.