summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2009-01-19 17:05:51 -0500
committerAdrian Likins <alikins@redhat.com>2009-01-19 17:05:51 -0500
commit364bfa3f2199cc048162975fed703a8a14625c47 (patch)
tree2e6f2d38ea43f6df057797127432e20dd4774a8d
parent095f7c6b4837c8b4d0158f8ab6b56ff1c31074cc (diff)
downloadfunc-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
-rw-r--r--func.spec12
-rw-r--r--version2
2 files changed, 9 insertions, 5 deletions
diff --git a/func.spec b/func.spec
index 0a31dcc..2832aaf 100644
--- a/func.spec
+++ b/func.spec
@@ -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
diff --git a/version b/version
index 8893a2c..be1ba6c 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-0.24 3
+0.24 4