SPECS: python-pyx.spec - the macro %{__python} should be used inst...

piti piti at pld-linux.org
Sat Jan 21 13:25:08 CET 2006


Author: piti                         Date: Sat Jan 21 12:25:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- the macro %{__python} should be used instead of python - fixed
- fixed paths in siteconfig.py file
- Release 1. Works for me

---- Files affected:
SPECS:
   python-pyx.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/python-pyx.spec
diff -u SPECS/python-pyx.spec:1.5 SPECS/python-pyx.spec:1.6
--- SPECS/python-pyx.spec:1.5	Fri Sep  2 21:59:11 2005
+++ SPECS/python-pyx.spec	Sat Jan 21 13:25:03 2006
@@ -4,7 +4,7 @@
 Summary(pl):	Pakiet dla Pythona do tworzenia plików PostScript i PDF
 Name:		python-%{module}
 Version:	0.8.1
-Release:	0.1
+Release:	1
 License:	GPL v2+
 Group:		Libraries/Python
 Source0:	http://dl.sourceforge.net/pyx/PyX-%{version}.tar.gz
@@ -31,14 +31,22 @@
 %setup -q -n PyX-%{version}
 
 %build
-python setup.py build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+%{__python} setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+
+#Fixing paths
+sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py
+
+#Removing *.py files
+mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py.bak
+rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py[o,c]
+find $RPM_BUILD_ROOT%{py_scriptdir} -type f -name "*.py"
+mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py.bak $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/siteconfig.py
 
-find $RPM_BUILD_ROOT%{py_scriptdir} -type f -name "*.py" | xargs rm
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,6 +66,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2006/01/21 12:25:03  piti
+- the macro %{__python} should be used instead of python - fixed
+- fixed paths in siteconfig.py file
+- Release 1. Works for me
+
 Revision 1.5  2005/09/02 19:59:11  qboosh
 - GPL v2+
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-pyx.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list