From fa865449c07a5905f8f6b3ad7f9d19414a9632ff Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Nov 23 2010 15:48:27 +0000 Subject: fixing %define to allow build in EL4 --- diff --git a/spacecmd.spec b/spacecmd.spec index 95b496f..4eab214 100644 --- a/spacecmd.spec +++ b/spacecmd.spec @@ -1,6 +1,11 @@ +%if ! (0%{?fedora} < 12 || 0%{?rhel} < 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + Name: spacecmd Version: 1.2.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Command-line interface to Spacewalk and Satellite servers Group: Applications/System @@ -52,8 +57,8 @@ touch %{buildroot}/%{python_sitelib}/spacecmd/__init__.py %doc %{_mandir}/man1/spacecmd.1.gz %changelog -* Tue Nov 23 2010 Miroslav Suchy 1.2.2-2 -- removing %%define to allow build in EL4 +* Tue Nov 23 2010 Miroslav Suchy 1.2.2-3 +- fixing %%define to allow build in EL4 * Fri Nov 05 2010 Aron Parsons 1.2.2-1 - spacecmd: fixed exception in kickstart_create due to typo