From 476599e3e8cf17209adb5f869029929c16ee7a53 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Fri, 23 Jun 2017 13:01:50 +1000 Subject: [PATCH] drop RHEL5-isms --- python-sphinxcontrib-httpdomain.spec | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/python-sphinxcontrib-httpdomain.spec b/python-sphinxcontrib-httpdomain.spec index 3aa4a6e..ba8f41d 100644 --- a/python-sphinxcontrib-httpdomain.spec +++ b/python-sphinxcontrib-httpdomain.spec @@ -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