Blame SPECS/python-apipkg.spec

cbcab6
%global srcname apipkg
cbcab6
cbcab6
Name:           python-%{srcname}
cbcab6
Version:        3.0.2
cbcab6
Release:        6%{?dist}
cbcab6
Summary:        A Python namespace control and lazy-import mechanism
cbcab6
cbcab6
License:        MIT
cbcab6
URL:            https://github.com/pytest-dev/apipkg
cbcab6
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
cbcab6
BuildArch:      noarch
cbcab6
BuildRequires:  python3-devel
cbcab6
cbcab6
%global _description %{expand:
cbcab6
With apipkg you can control the exported namespace of a Python package and
cbcab6
greatly reduce the number of imports for your users. It is a small pure Python
cbcab6
module that works on CPython 2.7 and 3.4+, Jython and PyPy. It cooperates well
cbcab6
with Python's help() system, custom importers (PEP302) and common command-line
cbcab6
completion tools.}
cbcab6
cbcab6
%description %_description
cbcab6
cbcab6
%package -n python3-%{srcname}
cbcab6
Summary:        %{summary}
cbcab6
cbcab6
%description -n python3-%{srcname} %_description
cbcab6
cbcab6
%prep
cbcab6
%autosetup -n %{srcname}-%{version}
cbcab6
# https://github.com/pytest-dev/apipkg/issues/43
cbcab6
sed -i '/distribution_version("py")/d' test_apipkg.py
cbcab6
cbcab6
%generate_buildrequires
cbcab6
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
cbcab6
%pyproject_buildrequires -t
cbcab6
cbcab6
%build
cbcab6
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
cbcab6
%pyproject_wheel
cbcab6
cbcab6
%install
cbcab6
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
cbcab6
%pyproject_install
cbcab6
%pyproject_save_files apipkg
cbcab6
cbcab6
%check
cbcab6
%tox
cbcab6
cbcab6
%files -n python3-%{srcname} -f %{pyproject_files}
cbcab6
%doc CHANGELOG README.rst
cbcab6
%license LICENSE
cbcab6
cbcab6
%changelog
cbcab6
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-6
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
cbcab6
cbcab6
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
cbcab6
cbcab6
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.0.2-4
cbcab6
- Rebuilt for Python 3.13
cbcab6
cbcab6
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cbcab6
cbcab6
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cbcab6
cbcab6
* Sat Nov  4 2023 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.2-1
cbcab6
- Update 3.0.2.
cbcab6
cbcab6
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-6
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cbcab6
cbcab6
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 3.0.1-5
cbcab6
- Rebuilt for Python 3.12
cbcab6
cbcab6
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
cbcab6
cbcab6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cbcab6
cbcab6
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.1-2
cbcab6
- Rebuilt for Python 3.11
cbcab6
cbcab6
* Wed Jun  8 2022 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.1-1
cbcab6
- Update to 3.0.1.
cbcab6
cbcab6
* Sat May 28 2022 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
cbcab6
- Update to 2.1.1.
cbcab6
cbcab6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cbcab6
cbcab6
* Tue Jan 18 2022 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
cbcab6
- Run tests in %%check
cbcab6
cbcab6
* Fri Dec 24 2021 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
cbcab6
- Update to 2.1.0.
cbcab6
- Use new Python packaging guidelines.
cbcab6
cbcab6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-14
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cbcab6
cbcab6
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.5-13
cbcab6
- Rebuilt for Python 3.10
cbcab6
cbcab6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-12
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cbcab6
cbcab6
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cbcab6
cbcab6
* Wed Jun 24 2020 Thomas Moschny <thomas.moschny@gmx.de> - 1.5-10
cbcab6
- Add explicit BR on python3-setuptools.
cbcab6
cbcab6
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5-9
cbcab6
- Rebuilt for Python 3.9
cbcab6
cbcab6
* Fri Feb 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.5-8
cbcab6
- Update URLs
cbcab6
cbcab6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-7
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cbcab6
cbcab6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5-6
cbcab6
- Rebuilt for Python 3.8.0rc1 (#1748018)
cbcab6
cbcab6
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5-5
cbcab6
- Rebuilt for Python 3.8
cbcab6
cbcab6
* Mon Aug 12 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5-4
cbcab6
- Subpackage python2-apipkg has been removed
cbcab6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
cbcab6
cbcab6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cbcab6
cbcab6
* Sun Jun 09 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.5-2
cbcab6
- Switch to upstream source
cbcab6
- Add license file
cbcab6
cbcab6
* Tue Feb 05 2019 Ken Dreyer <kdreyer@redhat.com> - 1.5-1
cbcab6
- Update to new upstream version 1.5 (rhbz#1672801)
cbcab6
- Update package URL and Source0
cbcab6
- Use setuptools_scm
cbcab6
- Handle README file rename
cbcab6
cbcab6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-12
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cbcab6
cbcab6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-11
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cbcab6
cbcab6
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4-10
cbcab6
- Rebuilt for Python 3.7
cbcab6
cbcab6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-9
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cbcab6
cbcab6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cbcab6
cbcab6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cbcab6
cbcab6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4-6
cbcab6
- Rebuild for Python 3.6
cbcab6
cbcab6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
cbcab6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cbcab6
cbcab6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cbcab6
cbcab6
* Sat Nov 14 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-3
cbcab6
- Cleanup
cbcab6
cbcab6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cbcab6
cbcab6
* Sat Oct 17 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-1
cbcab6
- Update to new upstream version 1.4 (rhbz#1239818)
cbcab6
cbcab6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cbcab6
cbcab6
* Tue Mar 10 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.3-1
cbcab6
- Update to new upstream version 1.3 (rhbz#1199807)
cbcab6
cbcab6
* Wed Feb 18 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.2-7
cbcab6
- Enable py3 package
cbcab6
cbcab6
* Fri Oct 03 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1.2-6
cbcab6
- Update to match guidelines
cbcab6
cbcab6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cbcab6
cbcab6
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.2-4
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
cbcab6
cbcab6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cbcab6
cbcab6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cbcab6
cbcab6
* Sat Nov 10 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.2-1
cbcab6
- Update to match new guidelines
cbcab6
- Python3
cbcab6
- Update to new upstream version 1.2
cbcab6
cbcab6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
cbcab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cbcab6
cbcab6
* Mon Nov 08 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.0-1
cbcab6
- Initial package