From e35f6a7e8eccaf0691950b2a9aed04d0c00d2bfd Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: May 05 2018 18:13:27 +0000 Subject: Update Python macros to new packaging standards --- diff --git a/pyliblzma.spec b/pyliblzma.spec index 0639351..c64e92f 100644 --- a/pyliblzma.spec +++ b/pyliblzma.spec @@ -1,13 +1,13 @@ %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) -%{!?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))")} +%{!?python_sitelib: %global python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Summary: Python bindings for lzma Name: pyliblzma Version: 0.5.3 -Release: 21%{?dist} +Release: 22%{?dist} License: LGPLv3+ URL: https://launchpad.net/pyliblzma Source0: http://pypi.python.org/packages/source/p/pyliblzma/%{name}-%{version}.tar.bz2 @@ -27,25 +27,29 @@ by Lasse Collin's lzma utils. %patch0 -p1 %build -%{__python} setup.py build +%{__python2} setup.py build %check -%{__python} setup.py test +%{__python2} setup.py test %install rm -rf %{buildroot} -%{__python} setup.py install --root=%{buildroot} +%{__python2} setup.py install --root=%{buildroot} %files %defattr(-,root,root) %{!?_licensedir:%global license %%doc} %license COPYING %doc README THANKS ChangeLog NEWS -%attr(0755,-,-) %{python_sitearch}/lzma.so -%{python_sitearch}/liblzma.py* -%{python_sitearch}/%{name}*.egg-info +%attr(0755,-,-) %{python2_sitearch}/lzma.so +%{python2_sitearch}/liblzma.py* +%{python2_sitearch}/%{name}*.egg-info %changelog +* Sat May 05 2018 Miro Hrončok - 0.5.3-22 +- Update Python macros to new packaging standards + (See https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build) + * Fri Feb 09 2018 Fedora Release Engineering - 0.5.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild