2385d71
%global pypi_name uptime
2385d71
2385d71
Name:           python-%{pypi_name}
2385d71
Version:        3.0.1
ca426fb
Release:        5%{?dist}
2385d71
Summary:        Cross-platform uptime library
2385d71
2385d71
License:        BSD
2385d71
URL:            https://github.com/Cairnarvon/uptime
2385d71
Source0:        %{pypi_source}
2385d71
2385d71
BuildRequires:  gcc
2385d71
2385d71
%description
2385d71
This module provides a cross-platform way to retrieve system uptime and boot
2385d71
time.
2385d71
2385d71
%package -n     python3-%{pypi_name}
2385d71
Summary:        %{summary}
2385d71
2385d71
BuildRequires:  python3-devel
2385d71
BuildRequires:  python3dist(setuptools)
2385d71
%{?python_provide:%python_provide python3-%{pypi_name}}
2385d71
2385d71
%description -n python3-%{pypi_name}
2385d71
This module provides a cross-platform way to retrieve system uptime and boot
2385d71
time.
2385d71
2385d71
%prep
2385d71
%autosetup -n %{pypi_name}-%{version}
2385d71
sed -i -e '/^#!\//, 1d' src/__*.py
2385d71
2385d71
%build
2385d71
%py3_build
2385d71
2385d71
%install
2385d71
%py3_install
2385d71
2385d71
%files -n python3-%{pypi_name}
2385d71
%license COPYING.txt
2385d71
%doc README.txt
2385d71
%{python3_sitearch}/%{pypi_name}/
2385d71
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
2385d71
2385d71
%changelog
ca426fb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-5
ca426fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ca426fb
1323b1f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
1323b1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1323b1f
ad5a10d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.1-3
ad5a10d
- Rebuilt for Python 3.10
ad5a10d
e0cf912
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
e0cf912
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e0cf912
2385d71
* Fri Sep 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
2385d71
- Initial package for Fedora