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

file modified
+7 -8
@@ -1,11 +1,6 @@ 

- %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))")}

- %endif

- 

  Name:		libhid

  Version:	0.2.17

- Release:	30%{?dist}

+ Release:	31%{?dist}

  Summary:	User space USB HID access library

  Group:		System Environment/Libraries

  License:	GPLv2
@@ -83,7 +78,7 @@ 

  %install

  %make_install

  rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la

- rm -rf $RPM_BUILD_ROOT%{python_sitearch}/*/*.la

+ rm -rf $RPM_BUILD_ROOT%{python2_sitearch}/*/*.la

  

  %post -p /sbin/ldconfig

  %postun -p /sbin/ldconfig
@@ -103,9 +98,13 @@ 

  

  %files -n python2-libhid

  %doc swig/README

- %{python_sitearch}/*

+ %{python2_sitearch}/*

  

  %changelog

+ * Tue Jul 24 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.17-31

+ - Update Python macros to new packaging standards

+   (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)

+ 

  * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-30

  - 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 1045e83

5 years ago

Pull-Request has been merged by churchyard

5 years ago