Minor spec cleanup
This commit is contained in:
parent
97759736c5
commit
9ffba5f4dd
13
pytz.spec
13
pytz.spec
@ -1,7 +1,7 @@
|
|||||||
%if 0%{?fedora} > 12
|
%if 0%{?fedora}
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%else
|
%else
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: pytz
|
Name: pytz
|
||||||
@ -71,8 +71,8 @@ popd
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||||
chmod +x %{buildroot}%{python_sitelib}/pytz/*.py
|
chmod +x %{buildroot}%{python2_sitelib}/pytz/*.py
|
||||||
rm -rf %{buildroot}%{python_sitelib}/pytz/zoneinfo
|
rm -rf %{buildroot}%{python2_sitelib}/pytz/zoneinfo
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
@ -86,10 +86,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc CHANGES.txt LICENSE.txt README.txt
|
%doc CHANGES.txt LICENSE.txt README.txt
|
||||||
%{python_sitelib}/pytz/
|
%{python2_sitelib}/pytz/
|
||||||
%{python_sitelib}/*.egg-info
|
%{python2_sitelib}/*.egg-info
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-pytz
|
%files -n python3-pytz
|
||||||
|
Loading…
Reference in New Issue
Block a user