From d64e7bbbc73d988d77e36650665e98f2c3f2dc22 Mon Sep 17 00:00:00 2001 From: ishcherb Date: Aug 10 2017 09:55:48 +0000 Subject: Add a build-time dependency on python2-devel and modernize spec file --- diff --git a/python-repoze-what.spec b/python-repoze-what.spec index bc9d023..36a7f0e 100644 --- a/python-repoze-what.spec +++ b/python-repoze-what.spec @@ -1,8 +1,6 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - Name: python-repoze-what Version: 1.0.9 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Authorization for WSGI applications Group: Development/Languages @@ -13,7 +11,7 @@ Patch0: %{name}-setup.patch Patch1: %{name}-release.patch BuildArch: noarch -BuildRequires: python-setuptools +BuildRequires: python2-devel # For building documentation BuildRequires: python-sphinx @@ -64,12 +62,12 @@ sed -i -e 's|$VERSION|%{version}|' repoze/what/release.py sed -i "/'repoze.who.*$/d" setup.py %build -%{__python} setup.py build +%py2_build make -C docs html %install -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%py2_install %check # Causing package to be FTBFS since F-19! @@ -77,13 +75,16 @@ make -C docs html %files %doc README.txt -%{python_sitelib}/ +%{python2_sitelib}/ %files docs %doc docs/ %changelog +* Thu Aug 10 2017 Iryna Shcherbina - 1.0.9-16 +- Add a build-time dependency on python2-devel and modernize spec file + * Thu Jul 27 2017 Fedora Release Engineering - 1.0.9-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild