From: <kk...@us...> - 2008-10-25 15:56:19
|
Revision: 1132 http://omc.svn.sourceforge.net/omc/?rev=1132&view=rev Author: kkaempf Date: 2008-10-25 15:56:14 +0000 (Sat, 25 Oct 2008) Log Message: ----------- better python deps for Fedora Modified Paths: -------------- cmpi-bindings/trunk/package/cmpi-bindings.spec.in Modified: cmpi-bindings/trunk/package/cmpi-bindings.spec.in =================================================================== --- cmpi-bindings/trunk/package/cmpi-bindings.spec.in 2008-10-24 21:00:58 UTC (rev 1131) +++ cmpi-bindings/trunk/package/cmpi-bindings.spec.in 2008-10-25 15:56:14 UTC (rev 1132) @@ -80,11 +80,13 @@ Group: Development/Languages/Python # for the debug package. we dont use debug_package_requires here as it would enforce to install both packages. Provides: %{name} = %{version}-%{release} + +#define some macros missing on fedora %if 0%{?fedora_version} -Requires: python -%else +%{!?py_sitedir: %define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib()")} +%{!?py_requires: %define py_requires Requires: python} +%endif %{py_requires} -%endif %description -n cmpi-bindings-pywbem - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |