drop RHEL5-isms

This commit is contained in:
Dan Callaghan 2017-06-23 13:01:50 +10:00
parent f2de650d38
commit 476599e3e8

View File

@ -1,7 +1,3 @@
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%global upstream_name sphinxcontrib-httpdomain
@ -16,10 +12,6 @@ Patch1: 0001-httpdomain-bump-domain-data-version.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
Group: Development/Libraries
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%endif
%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
# This extension does not work with Sphinx 0.6 as shipped in RHEL6,
@ -34,11 +26,6 @@ Requires: python-six
Using this Sphinx domain you can document your HTTP API. It includes support
for generating documentation from Flask routing tables.
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
%clean
rm -rf %{buildroot}
%endif
%prep
%setup -q -n %{upstream_name}-%{version}
%patch1 -p2
@ -48,9 +35,6 @@ rm -r *.egg-info
%{__python} setup.py build
%install
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
rm -rf %{buildroot}
%endif
%{__python} setup.py install --skip-build --root %{buildroot}
%files