drop RHEL5-isms
This commit is contained in:
parent
f2de650d38
commit
476599e3e8
@ -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
|
%global upstream_name sphinxcontrib-httpdomain
|
||||||
|
|
||||||
@ -16,10 +12,6 @@ Patch1: 0001-httpdomain-bump-domain-data-version.patch
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
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
|
%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
|
||||||
# This extension does not work with Sphinx 0.6 as shipped in RHEL6,
|
# 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
|
Using this Sphinx domain you can document your HTTP API. It includes support
|
||||||
for generating documentation from Flask routing tables.
|
for generating documentation from Flask routing tables.
|
||||||
|
|
||||||
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{upstream_name}-%{version}
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
%patch1 -p2
|
%patch1 -p2
|
||||||
@ -48,9 +35,6 @@ rm -r *.egg-info
|
|||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
%endif
|
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user