From 85c88ac9e600fe1f5efefbf1f52081d860dce40d Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Jan 31 2017 10:00:28 +0000 Subject: Use py{%ver}_install_wheel macros --- diff --git a/python-entrypoints.spec b/python-entrypoints.spec index 7b2f615..2c85832 100644 --- a/python-entrypoints.spec +++ b/python-entrypoints.spec @@ -1,9 +1,12 @@ %global srcname entrypoints %global sum Discover and load entry points from installed packages +%global python2_wheelname %{srcname}-%{version}-py2.py3-none-any.whl +%global python3_wheelname %python2_wheelname + Name: python-%{srcname} Version: 0.2.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{sum} # license clarification issue opened upstream @@ -89,10 +92,8 @@ popd %install -pip2 install --root %{buildroot} --no-deps \ - dist/%{srcname}-%{version}-py2.py3-none-any.whl -pip3 install --root %{buildroot} --no-deps \ - dist/%{srcname}-%{version}-py2.py3-none-any.whl +%py3_install_wheel %{python3_wheelname} +%py2_install_wheel %{python2_wheelname} # Fedora doesn't use this yet. rm -r %{buildroot}%{python2_sitelib}/%{srcname}-%{version}.dist-info/ @@ -115,6 +116,9 @@ rm -r %{buildroot}%{python3_sitelib}/%{srcname}-%{version}.dist-info/ %license LICENSE %changelog +* Tue Jan 31 2017 Michal Cyprian - 0.2.2-6 +- Use python install wheel macros + * Mon Dec 19 2016 Miro HronĨok - 0.2.2-5 - Rebuild for Python 3.6