rpms/smart/devel smart.spec,1.17,1.18

Axel Thimm (athimm) fedora-extras-commits at redhat.com
Sat Feb 3 02:41:11 UTC 2007


Author: athimm

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

Modified Files:
	smart.spec 
Log Message:
The previous "fix" only rectified rpm -q --specfile, rpmbuild would
still fail to expand %{python_sitearch}.

The workaround is to strip off the conditional part of the definition
of %{python_sitearch}. I've seen the %{!?foo: %define foo xxx} fail in
other occasions, too (always involving using some other non-leaf
macro), seems to be some rpm issue.




Index: smart.spec
===================================================================
RCS file: /cvs/extras/rpms/smart/devel/smart.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- smart.spec	3 Feb 2007 02:22:47 -0000	1.17
+++ smart.spec	3 Feb 2007 02:40:39 -0000	1.18
@@ -1,8 +1,8 @@
+%define python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
+
 %bcond_with ksmarttray
 %bcond_without pygtk
 
-%{!?python_sitearch: %define python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
 Summary: Next generation package handling tool
 Name: smart
 Version: 0.50




More information about the scm-commits mailing list