diff --git a/python-flup.spec b/python-flup.spec index b689650..c1b6a86 100644 --- a/python-flup.spec +++ b/python-flup.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-flup Version: 1.0.2 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Random assortment of WSGI servers for python Group: Development/Libraries @@ -13,7 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: python-setuptools +BuildRequires: python2-devel %description @@ -25,14 +23,14 @@ This package contains classes to create WSGI servers in python, e.g. fastcgi. %build -python setup.py build +%py2_build %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT -python setup.py install --skip-build --root $RPM_BUILD_ROOT +%py2_install %clean @@ -42,10 +40,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog -%{python_sitelib}/* +%{python2_sitelib}/* %changelog +* Wed Aug 09 2017 Iryna Shcherbina - 1.0.2-15 +- Add a build-time dependency on python2-devel and use macro + * Thu Jul 27 2017 Fedora Release Engineering - 1.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild