hack to add installed files to the package.
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 25 May 2009 13:22:57 +0000 (13:22 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 25 May 2009 13:22:57 +0000 (13:22 +0000)
hope this will fix 64bit builds.

Makefile
geniwrapper.spec

index 3052870..d07a9fd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ subdirs := keyconvert #pyOpenSSL-0.9
 all: $(init) $(subdirs)
 
 install: all
-       python setup.py install --root=$(DESTDIR)
+       python setup.py install --root=$(DESTDIR) --record=GENI_INSTALLED_FILES
 
 $(subdirs): $(init)
 
index 7212cd7..ac58e96 100644 (file)
@@ -43,19 +43,15 @@ make
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR="$RPM_BUILD_ROOT"
 
+# hack to add installed files to the package
+python -c "print '\n'.join(['%s*'%i.strip() for i in open('GENI_INSTALLED_FILES').readlines() if not i.strip().endswith('.pyc')])" |uniq > GENI_INSTALLED_FILES.all
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f GENI_INSTALLED_FILES.all
 %defattr(-,root,root)
-/etc/init.d/geniwrapper
-/etc/geni
-/usr/bin/geni-config-tty
-/usr/bin/gimport.py*
-/usr/bin/plc.py*
-/usr/bin/sfi.py*
-%(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")/geni
-
 /usr/share/keyconvert
 
 %post