Minor spec cleanup

This commit is contained in:
Orion Poplawski 2015-08-30 14:46:11 -06:00
parent 97759736c5
commit 9ffba5f4dd

View File

@ -1,7 +1,7 @@
%if 0%{?fedora} > 12
%if 0%{?fedora}
%global with_python3 1
%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
Name: pytz
@ -71,8 +71,8 @@ popd
%install
%{__python} setup.py install --skip-build --root %{buildroot}
chmod +x %{buildroot}%{python_sitelib}/pytz/*.py
rm -rf %{buildroot}%{python_sitelib}/pytz/zoneinfo
chmod +x %{buildroot}%{python2_sitelib}/pytz/*.py
rm -rf %{buildroot}%{python2_sitelib}/pytz/zoneinfo
%if 0%{?with_python3}
pushd %{py3dir}
@ -86,10 +86,9 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt
%{python_sitelib}/pytz/
%{python_sitelib}/*.egg-info
%{python2_sitelib}/pytz/
%{python2_sitelib}/*.egg-info
%if 0%{?with_python3}
%files -n python3-pytz