%global pypi_name power Name: python-%{pypi_name} Version: 1.4 Release: 13%{?dist} Summary: Cross-platform system power status information License: MIT URL: https://github.com/Kentzo/Power Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description Python module that allows you to get power and battery status of the system. %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} Python module that allows you to get power and battery status of the system. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Python module that allows you to get power and battery status of the system. %prep %setup -qn %{pypi_name}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check %{__python2} -m unittest -v power.tests %{__python3} -m unittest -v power.tests %files -n python2-%{pypi_name} %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Sat Jul 14 2018 Fedora Release Engineering - 1.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.4-12 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Dec 08 2017 Iryna Shcherbina - 1.4-10 - Fix ambiguous Python 2 dependency declarations (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 1.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Apr 17 2017 Miro Hrončok - 1.4-8 - Updated to the new naming scheme * Sat Feb 11 2017 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.4-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.4-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jan 25 2015 Miro Hrončok - 1.4-1 - New version 1.4 (#1180510) - No longer requires 2to3 - Run unittests * Fri Sep 26 2014 Miro Hrončok - 1.3-1 - New version 1.3 (#1128107) * Sat Jun 07 2014 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 22 2014 Miro Hrončok - 1.2-2 - Rebuilt for Python 3.4 * Thu May 22 2014 Miro Hrončok - 1.2-1 - Updated to 1.2 * Sun Aug 04 2013 Fedora Release Engineering - 1.1-5.20121103git2cfe611 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 20 2013 Miro Hrončok - 1.1-4.20121103git2cfe611 - Introduced Python 3 subpackage * Thu Feb 14 2013 Fedora Release Engineering - 1.1-3.20121103git2cfe611 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Jan 14 2013 Miro Hrončok - 1.1-2.20121103git2cfe611 - Added python-setuptools BR * Sun Jan 13 2013 Miro Hrončok - 1.1-1.20121103git2cfe611 - First version