diff --git a/python-jsonpath-rw.spec b/python-jsonpath-rw.spec index c5fcc2d..85e7af0 100644 --- a/python-jsonpath-rw.spec +++ b/python-jsonpath-rw.spec @@ -1,13 +1,11 @@ %global pkgname jsonpath-rw -%if 0%{?fedora} > 12 +%if 0%{?fedora} %global with_python3 1 -%else -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif Name: python-%{pkgname} Version: 1.2.3 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Extended implementation of JSONPath for Python License: ASL 2.0 @@ -107,7 +105,11 @@ popd %files -n python2-%{pkgname} %doc README.rst LICENSE +%if 0%{?rhel} %{python_sitelib}/* +%else +%{python2_sitelib}/* +%endif %if 0%{?with_python3} %files -n python3-%{pkgname} @@ -116,6 +118,10 @@ popd %endif %changelog +* Tue Jul 24 2018 Miro HronĨok - 1.2.3-17 +- Update Python macros to new packaging standards + (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package) + * Sat Jul 14 2018 Fedora Release Engineering - 1.2.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild