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