Also generate egg-info on EL5

This commit is contained in:
Michel Alexandre Salim 2013-03-19 13:42:04 +07:00
parent 3ed61f7113
commit 5f384b134f
1 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@
Name: python-psutil
Version: 0.4.1
Release: 3%{?dist}.1
Release: 3%{?dist}.2
Summary: A process utilities module for Python
Group: Development/Languages
@ -31,6 +31,7 @@ BuildRequires: python3-devel
%endif
%if 0%{?el5}
BuildRequires: python-setuptools
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%endif
@ -105,9 +106,7 @@ popd
%defattr(-,root,root,-)
%doc CREDITS HISTORY LICENSE README docs/
%{python_sitearch}/%{short_name}/
%if ! 0%{?el5}
%{python_sitearch}/*.egg-info
%endif
%{python_sitearch}/*.so
@ -122,6 +121,9 @@ popd
%changelog
* Tue Mar 19 2013 Michel Salim <salimma@fedoraproject.org> - 0.4.1-3.2
- Also generate egg-info on EL5
* Sat Mar 16 2013 Michel Salim <salimma@fedoraproject.org> - 0.4.1-3.1
- Conditionally declare and clean buildroot to support el5
- Fix declaration of Python macro, and make it apply only to el5