diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-08-12 17:57:13 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-08-12 17:57:13 -0300 |
commit | 68181ca96bdb981a4b3ef94909d960349e22e927 (patch) | |
tree | 846de477f8886da035fa022eb26cc10ed4c3b24e | |
parent | 431f933d06a7f43a251bc2b68add54ef95091223 (diff) | |
download | python-linux-procfs-68181ca96bdb981a4b3ef94909d960349e22e927.tar.gz |
rpm: Package .egg-info files if version is new enoughv0.4
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | rpm/SPECS/python-linux-procfs.spec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpm/SPECS/python-linux-procfs.spec b/rpm/SPECS/python-linux-procfs.spec index 08fbe26..0a2a55d 100644 --- a/rpm/SPECS/python-linux-procfs.spec +++ b/rpm/SPECS/python-linux-procfs.spec @@ -1,4 +1,5 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: python-linux-procfs Version: 0.4 @@ -30,7 +31,9 @@ rm -rf %{buildroot} %files %defattr(0755,root,root,0755) %{python_sitelib}/procfs/ +%if "%{python_ver}" >= "2.5" %{python_sitelib}/*.egg-info +%endif %changelog * Tue Aug 12 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4-1 |