From 56a5f7fdc19e18b72b0c37b3d78832787fe44cdc Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Sat, 25 Oct 2008 09:24:50 +0000 Subject: [PATCH] - more fixes for fedora... --- package/libsatsolver.spec.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package/libsatsolver.spec.in b/package/libsatsolver.spec.in index bd3858d..98fc09c 100644 --- a/package/libsatsolver.spec.in +++ b/package/libsatsolver.spec.in @@ -27,6 +27,12 @@ BuildRequires: zlib-devel BuildRequires: check-devel Summary: A new approach to package dependency solving +#define some macros missing on fedora +%if 0%{?fedora_version} +%{!?py_sitedir: %define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib()")} +%{!?py_requires: %define py_requires Requires: python} +%endif + %description A new approach to package dependency solving @@ -67,11 +73,7 @@ Group: Development/Languages/Ruby . %package -n python-satsolver -%if 0%{?fedora_version} -Requires: python -%else %py_requires -%endif Summary: Python bindings for sat solver Group: Development/Languages/Python -- 2.7.4