#2 Update Python macros to new packaging standards
Merged 5 years ago by churchyard. Opened 5 years ago by churchyard.
rpms/ churchyard/python-jsonpath-rw py2macros  into  master

file modified
+10 -4
@@ -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 @@ 

  

  %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 @@ 

  %endif

  

  %changelog

+ * Tue Jul 24 2018 Miro Hrončok <mhroncok@redhat.com> - 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 <releng@fedoraproject.org> - 1.2.3-16

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

This package uses macros with ambiguous python.

According to Fedora Packaging guidelines for Python, packages must use macros with either python2 or python3.

This PR is part of Fedora's Change Move /usr/bin/python into a separate package.

Note that, although this PR was created automatically, we will respond to any comments or issues which you might find with it. We will keep the PR open for review for a week, and if there's no feedback we'll merge and build it.
For Koji scratch build please see simple-koji-ci result.

This PR was opened automatically, for source code see here

Since the package now owns /, I change the date of merging if nobody objects to Friday the 27th.

rebased onto 0a07181

5 years ago

rebased onto 2896889

5 years ago

Pull-Request has been merged by churchyard

5 years ago