diff options
author | Adrian Likins <alikins@redhat.com> | 2009-01-19 17:05:51 -0500 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2009-01-19 17:05:51 -0500 |
commit | 364bfa3f2199cc048162975fed703a8a14625c47 (patch) | |
tree | 2e6f2d38ea43f6df057797127432e20dd4774a8d /func.spec | |
parent | 095f7c6b4837c8b4d0158f8ab6b56ff1c31074cc (diff) | |
download | func-364bfa3f2199cc048162975fed703a8a14625c47.tar.gz func-364bfa3f2199cc048162975fed703a8a14625c47.tar.xz func-364bfa3f2199cc048162975fed703a8a14625c47.zip |
certspec: Try to simplify the support for rhel3+python2.3 a little bit.
We let distutils do the /usr/bin/python path munging for the files that need
it (aka, everything in "scripts"). So we can get rid of the patch for this
(we also cleaned up all the files that had a #! set that didn't need it)
Some minor spec file formatting changes as well
Diffstat (limited to 'func.spec')
-rw-r--r-- | func.spec | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -4,6 +4,7 @@ %define python python%{?__python_ver} %define __python /usr/bin/%{python} +%{!?python_version: %define python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0) @@ -14,9 +15,6 @@ Source1: version Version: %(echo `awk '{ print $1 }' %{SOURCE1}`) Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist} Source0: %{name}-%{version}.tar.gz -%if 0%{?rhel} == 3 -Patch0: %{name}-%{python}.patch -%endif License: GPLv2+ Group: Applications/System %if 0%{?rhel} == 3 @@ -66,7 +64,7 @@ rm -fr $RPM_BUILD_ROOT %files %defattr(-, root, root, -) -%if 0%{?fedora} > 8 +%if "%{python_version}" >= "2.5" %{python_sitelib}/func*.egg-info %endif %{_bindir}/funcd @@ -153,6 +151,12 @@ fi %changelog +* Mon Jan 19 2009 Adrian Likins <alikins@redhat.com> - 0.24.4 +- make inclusion of egginfo dependant on having python >= 2.5 +- remove need for patch on rhel3+python2.4 cases (distutils should + do all the /usr/bin/python renaming now) +- minor reformatting changes + * Tue Jan 06 2009 Greg Swift <gregswift@gmail.com> - 0.24-3 - Fixed spec because it was only building in rhel3 |