rpms/uniconvertor/devel uniconvertor.spec,1.1,1.2

Andy Shevchenko (andriy) fedora-extras-commits at redhat.com
Fri Nov 23 20:17:43 UTC 2007


Author: andriy

Update of /cvs/extras/rpms/uniconvertor/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20388

Modified Files:
	uniconvertor.spec 
Log Message:
Fix to build on 64bit.


Index: uniconvertor.spec
===================================================================
RCS file: /cvs/extras/rpms/uniconvertor/devel/uniconvertor.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- uniconvertor.spec	23 Nov 2007 19:13:17 -0000	1.1
+++ uniconvertor.spec	23 Nov 2007 20:17:10 -0000	1.2
@@ -1,8 +1,8 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:           uniconvertor
 Version:        1.0.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Universal vector graphics translator
 
 Group:          Applications/Multimedia
@@ -30,7 +30,7 @@
 
 
 %build
-%{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
 
 
 %install
@@ -38,15 +38,16 @@
 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT 
 
 # Fix permissions
-chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/uniconvertor/__init__.py
-chmod g-w $RPM_BUILD_ROOT%{python_sitelib}/uniconvertor/app/modules/*.so
+chmod a+x $RPM_BUILD_ROOT%{python_sitearch}/uniconvertor/__init__.py
+chmod g-w $RPM_BUILD_ROOT%{python_sitearch}/uniconvertor/app/modules/*.so
 
 # Don't duplicate documentation
-rm -f $RPM_BUILD_ROOT%{python_sitelib}/uniconvertor/{COPYRIGHTS,GNU_GPL_v2,GNU_LGPL_v2}
+rm -f $RPM_BUILD_ROOT%{python_sitearch}/uniconvertor/{COPYRIGHTS,GNU_GPL_v2,GNU_LGPL_v2}
 
 # Satisfy rpmlint claim on debuginfo subpackage
 chmod 644 src/modules/*/*.{c,h}
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -56,10 +57,13 @@
 %doc README
 %doc COPYRIGHTS GNU_GPL_v2 GNU_LGPL_v2
 %{_bindir}/uniconv
-%{python_sitelib}/*
+%{python_sitearch}/*
 
 
 %changelog
+* Thu Nov 22 2007 Andy Shevchenko <andy at smile.org.ua> 1.0.0-4
+- use python_sitearch and CFLAGS
+
 * Thu Nov 22 2007 Andy Shevchenko <andy at smile.org.ua> 1.0.0-3
 - prepare to include to Fedora
   (https://bugzilla.redhat.com/show_bug.cgi?id=393971)




More information about the fedora-extras-commits mailing list