57aea5f
%global pypi_name distro
57aea5f
57aea5f
Name:           python-%{pypi_name}
eaaade0
Version:        1.8.0
1ab3110
Release:        3%{?dist}
57aea5f
Summary:        Linux Distribution - a Linux OS platform information API
57aea5f
1ab3110
License:        Apache-2.0
c66e9a5
URL:            https://github.com/python-distro/distro
c66e9a5
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
57aea5f
BuildArch:      noarch
1fdb968
BuildRequires:  python3-devel
57aea5f
 
debf274
%global _description \
debf274
The distro (for: Linux Distribution) package provides information about the\
debf274
Linux distribution it runs on, such as a reliable machine-readable ID, or\
debf274
version information.\
debf274
\
debf274
It is a renewed alternative implementation for Python's original\
debf274
platform.linux_distribution function, but it also provides much more\
debf274
functionality. An alternative implementation became necessary because\
debf274
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it\
debf274
altogether. Its predecessor function platform.dist was already deprecated since\
debf274
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are\
debf274
many cases in which access to that information is needed. See Python issue 1322\
57aea5f
for more information.
57aea5f
debf274
%description %{_description}
debf274
57aea5f
%package -n     python3-%{pypi_name}
78c49c4
Summary:        %{summary}
0d0cf07
%if 0%{?fedora}
0d0cf07
Suggests:       /usr/bin/lsb_release
0d0cf07
%endif
57aea5f
debf274
%description -n python3-%{pypi_name} %{_description}
57aea5f
57aea5f
%prep
57aea5f
%autosetup -n %{pypi_name}-%{version}
1fdb968
1fdb968
%generate_buildrequires
1fdb968
%pyproject_buildrequires -t
57aea5f
57aea5f
%build
1fdb968
%pyproject_wheel
57aea5f
57aea5f
%install
1fdb968
%pyproject_install
57aea5f
57aea5f
%files -n python3-%{pypi_name}
515c6d9
%doc CHANGELOG.md CONTRIBUTORS.md README.md
5ba6a5e
%license LICENSE
1fdb968
%{python3_sitelib}/%{pypi_name}/
1fdb968
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
57aea5f
4cf6794
%{_bindir}/distro
4cf6794
551f530
%check
1fdb968
%tox
551f530
57aea5f
%changelog
1ab3110
* Sat Feb 11 2023 msuchy <msuchy@redhat.com> - 1.8.0-3
1ab3110
- migrate license to SPDX
1ab3110
c4bf4cb
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
c4bf4cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c4bf4cb
eaaade0
* Fri Oct 14 2022 Marek Blaha <mblaha@redhat.com> - 1.8.0-1
eaaade0
- Update to 1.8.0
eaaade0
6dd96ed
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
6dd96ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6dd96ed
649cc19
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.7.0-2
649cc19
- Rebuilt for Python 3.11
649cc19
1fdb968
* Wed Feb 16 2022 Marek Blaha <mblaha@redhat.com> - 1.7.0-1
1fdb968
- Update to 1.7.0 (#2054810)
1fdb968
- Drop Python 2 support in the spec
1fdb968
- Run tests using tox
1fdb968
6d2f0fa
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
6d2f0fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
6d2f0fa
c66e9a5
* Thu Aug 05 2021 Marek Blaha <mblaha@redhat.com> - 1.6.0-1
c66e9a5
- Update to 1.6.0 (#1988492)
c66e9a5
f9b3c5f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
f9b3c5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f9b3c5f
a847f9c
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.5.0-6
a847f9c
- Rebuilt for Python 3.10
a847f9c
d07564a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-5
d07564a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d07564a
76975e5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
76975e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
76975e5
8355a17
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-3
8355a17
- Rebuilt for Python 3.9
8355a17
52e3392
* Mon May 11 2020 Stephen Gallagher <sgallagh@redhat.com> - 1.5.0-2
52e3392
- Fix Python configuration for ELN/RHEL 9
52e3392
- Rework bconds for Python now that there are no Fedoras left that should
52e3392
  use Python2
52e3392
44db684
* Tue Mar 31 2020 Marek Blaha <mblaha@redhat.com> - 1.5.0-1
44db684
- rebase to distro 1.5.0
44db684
9fc49eb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
9fc49eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9fc49eb
42f853b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-4
42f853b
- Rebuilt for Python 3.8.0rc1 (#1748018)
42f853b
2d9c637
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-3
2d9c637
- Rebuilt for Python 3.8
2d9c637
8b93351
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
8b93351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8b93351
515c6d9
* Mon Feb 04 2019 Marek Blaha <mblaha@redhat.com> - 1.4.0-1
515c6d9
- rebase to distro 1.4.0
515c6d9
a85b299
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
a85b299
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a85b299
e8da257
* Thu Aug 30 2018 Marek Blaha <mblaha@redhat.com> - 1.3.0-5
e8da257
- do not build python2 version for Fedora 30+
e8da257
a1e6333
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
a1e6333
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a1e6333
cd411b1
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-3
cd411b1
- Rebuilt for Python 3.7
cd411b1
c8b8fdb
* Tue May 29 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-2
c8b8fdb
- run tests by pytest, not by tox, there is no tox.ini
c8b8fdb
ddddeed
* Thu May 10 2018 Miroslav Suchý <msuchy@redhat.com> 1.3.0-1
ddddeed
- rebase to distro 1.3.0
88b4aeb
551f530
* Tue Jan 02 2018 Miroslav Suchý <msuchy@redhat.com> 1.2.0-1
551f530
- run tests
551f530
- rebase to distro 1.2.0
f01ac60
6d5f218
* Mon Mar 20 2017 Miroslav Suchý <msuchy@redhat.com> 1.0.3-1
6d5f218
- rebase to 1.0.3
6c65672
5ba6a5e
* Tue Jan 24 2017 Miroslav Suchý <msuchy@redhat.com> 1.0.2-3
5ba6a5e
- typo in license macro
5ba6a5e
ff94660
* Tue Jan 24 2017 Miroslav Suchý <msuchy@redhat.com> 1.0.2-2
ff94660
- add license macro for el6
ff94660
0a64aee
* Tue Jan 24 2017 Miroslav Suchý <msuchy@redhat.com> 1.0.2-1
0a64aee
- update to 1.0.2
0a64aee
- 1415667 - require python-argparse on EL6
0a64aee
0d0cf07
* Tue Jan 03 2017 Miroslav Suchý <msuchy@redhat.com> 1.0.1-2
0d0cf07
- soft deps on lsb_release
0d0cf07
eb29408
* Sun Jan 01 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.0.1-1
eb29408
- Update to 1.0.1
eb29408
- Provide only one copy of $bindir/distro
eb29408
- Cleanups in spec
eb29408
6d06751
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-7
6d06751
- Rebuild for Python 3.6
6d06751
57aea5f
* Thu Oct 06 2016 Miroslav Suchý <msuchy@redhat.com> 1.0.0-6
57aea5f
- polish spec according the package review
57aea5f
57aea5f
* Wed Oct 05 2016 Miroslav Suchý 1.0.0-5
57aea5f
- use python3 in /usr/bin/distro on Fedoras
57aea5f
57aea5f
* Wed Oct 05 2016 Miroslav Suchý 1.0.0-4
57aea5f
- use python3 in /usr/bin/distro on Fedoras
57aea5f
57aea5f
* Wed Oct 05 2016 Miroslav Suchý 1.0.0-3
57aea5f
- python2 subpackages only on rhel
57aea5f
- correct description
57aea5f
57aea5f
* Wed Oct 05 2016 Miroslav Suchý 1.0.0-2
57aea5f
- require lsb_release
57aea5f
57aea5f
* Wed Oct 05 2016 Miroslav Suchý 1.0.0-1
57aea5f
- initial packaging
57aea5f