Blame SPECS/python-semantic_version.spec

rdobuilder ef3cee
## START: Set by rpmautospec
rdobuilder ef3cee
## (rpmautospec version 0.3.5)
rdobuilder ef3cee
## RPMAUTOSPEC: autorelease, autochangelog
rdobuilder ef3cee
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
rdobuilder ef3cee
    release_number = 4;
rdobuilder ef3cee
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
rdobuilder ef3cee
    print(release_number + base_release_number - 1);
rdobuilder ef3cee
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
rdobuilder ef3cee
## END: Set by rpmautospec
rdobuilder ef3cee
00afc5
%global pypi_name semantic_version
rdobuilder ef3cee
%global srcname python-semanticversion
00afc5
00afc5
Name:           python-%{pypi_name}
rdobuilder ef3cee
Version:        2.10.0
rdobuilder ef3cee
Release:        %autorelease
00afc5
Summary:        Library implementing the 'SemVer' scheme
00afc5
00afc5
License:        BSD
00afc5
URL:            https://github.com/rbarrois/python-semanticversion
rdobuilder ef3cee
Source:         %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
00afc5
rdobuilder ef3cee
BuildArch:      noarch
rdobuilder ef3cee
BuildRequires:  make
rdobuilder ef3cee
BuildRequires:  python3-devel
rdobuilder ef3cee
BuildRequires:  pyproject-rpm-macros
rdobuilder ef3cee
BuildRequires:  python3-pytest
rdobuilder ef3cee
BuildRequires:  sed
00afc5
rdobuilder ef3cee
%global _description %{expand:
rdobuilder ef3cee
This small python library provides a few tools to handle semantic versioning in
rdobuilder ef3cee
Python.}
00afc5
00afc5
%description %{_description}
00afc5
00afc5
%package -n     python3-%{pypi_name}
00afc5
Summary:        %{summary}
00afc5
00afc5
%description -n python3-%{pypi_name} %{_description}
00afc5
00afc5
%package doc
00afc5
Summary:        Documentation for python-%{pypi_name}
00afc5
00afc5
%description doc
00afc5
%{summary}.
00afc5
00afc5
%prep
rdobuilder ef3cee
%autosetup -p1 -n %{srcname}-%{version}
rdobuilder ef3cee
rdobuilder ef3cee
# Drop unnecessary dependency
rdobuilder ef3cee
sed -i '/zest\.releaser\[recommended\]/d' setup.cfg
rdobuilder ef3cee
rdobuilder ef3cee
%generate_buildrequires
rdobuilder ef3cee
%pyproject_buildrequires -x doc
00afc5
00afc5
%build
rdobuilder ef3cee
%pyproject_wheel
rdobuilder ef3cee
00afc5
# generate html docs
rdobuilder ef3cee
make -C docs html
00afc5
# remove the sphinx-build leftovers
rdobuilder ef3cee
rm -rf docs/_build/html/.{doctrees,buildinfo}
00afc5
00afc5
%install
rdobuilder ef3cee
%pyproject_install
rdobuilder ef3cee
%pyproject_save_files %{pypi_name}
00afc5
00afc5
%check
rdobuilder ef3cee
%pytest
00afc5
rdobuilder ef3cee
%files -n python3-%{pypi_name} -f %{pyproject_files}
00afc5
%license LICENSE
rdobuilder ef3cee
%doc README.rst ChangeLog CREDITS
00afc5
00afc5
%files doc
00afc5
%license LICENSE
rdobuilder ef3cee
%doc docs/_build/html
00afc5
00afc5
%changelog
rdobuilder ef3cee
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-4
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.10.0-3
rdobuilder ef3cee
- Rebuilt for Python 3.12
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-2
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Dec 30 2022 Davide Cavalca <dcavalca@fedoraproject.org> - 2.10.0-1
rdobuilder ef3cee
- Update to 2.10.0 and switch to pyproject macros; Fixes: RHBZ#1747105
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-11
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.8.4-10
rdobuilder ef3cee
- Rebuilt for Python 3.11
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-9
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-8
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
00afc5
rdobuilder ef3cee
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.8.4-7
rdobuilder ef3cee
- Rebuilt for Python 3.10
rdobuilder ef3cee
rdobuilder ef3cee
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-6
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-5
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.8.4-4
rdobuilder ef3cee
- Rebuilt for Python 3.9
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Feb 20 2020 Javier Peña <jpena@redhat.com> - 2.8.4-3
rdobuilder ef3cee
- Add sphinx_rtd_theme as a buld dependency
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Feb 20 2020 Javier Peña <jpena@redhat.com> - 2.8.4-2
rdobuilder ef3cee
- Fix name in autosetup
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Feb 20 2020 Javier Peña <jpena@redhat.com> - 2.8.4-1
rdobuilder ef3cee
- Update to latest upstream version
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-14
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-13
rdobuilder ef3cee
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder ef3cee
rdobuilder ef3cee
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-12
rdobuilder ef3cee
- Rebuilt for Python 3.8
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-11
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-10
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Thu Jan 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.6.0-9
rdobuilder ef3cee
- Drop python2 subpackage
rdobuilder ef3cee
rdobuilder ef3cee
* Tue Jan 08 2019 Petr Viktorin <pviktori@redat.com> - 2.6.0-8
rdobuilder ef3cee
- Remove Fedora build dependency on a compatibility build of Django
rdobuilder ef3cee
- Use python3-sphinx on Fedora
rdobuilder ef3cee
rdobuilder ef3cee
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-7
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder ef3cee
rdobuilder ef3cee
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-6
rdobuilder ef3cee
- Rebuilt for Python 3.7
rdobuilder ef3cee
rdobuilder ef3cee
* Tue May 29 2018 Javier Peña <jpena@redhat.com> - 2.6.0-5
rdobuilder ef3cee
- Fix build due to Django dependency (bz#1556267)
rdobuilder ef3cee
rdobuilder ef3cee
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4
rdobuilder ef3cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
00afc5
00afc5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
00afc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
00afc5
00afc5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
00afc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
00afc5
00afc5
* Sat Jan 28 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.6.0-1
00afc5
- Update to 2.6.0
00afc5
- Make package to comply guidelines
00afc5
00afc5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-3
00afc5
- Rebuild for Python 3.6
00afc5
00afc5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-2
00afc5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
00afc5
00afc5
* Wed Feb 24 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 2.5.0-1
00afc5
- Upstream 2.5.0
00afc5
- Add python3 subpackage
00afc5
00afc5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2
00afc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
00afc5
00afc5
* Fri Jul 03 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.4.2-1
00afc5
- Upstream 2.4.2
00afc5
00afc5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
00afc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
00afc5
00afc5
* Wed Apr 01 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.4.1-1
00afc5
- Upstream 2.4.1
00afc5
00afc5
* Mon Mar 30 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.3.1-1
00afc5
- Initial package.
rdobuilder ef3cee