Compare commits

...

No commits in common. 'f39' and 'cs10' have entirely different histories.
f39 ... cs10

7
.gitignore vendored

@ -1,6 +1 @@
/semantic_version-2.4.1.tar.gz
/semantic_version-2.4.2.tar.gz
/semantic_version-2.5.0.tar.gz
/semantic_version-2.6.0.tar.gz
/semantic_version-2.8.4.tar.gz
/python-semanticversion-2.10.0.tar.gz
SOURCES/python-semanticversion-2.10.0.tar.gz

@ -0,0 +1 @@
ab1c55dead22473b0beaa76d3eb790f1abdb4381 SOURCES/python-semanticversion-2.10.0.tar.gz

@ -1,3 +1,112 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 10;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global pypi_name semantic_version
%global srcname python-semanticversion
Name: python-%{pypi_name}
Version: 2.10.0
Release: %autorelease
Summary: Library implementing the 'SemVer' scheme
License: BSD
URL: https://github.com/rbarrois/python-semanticversion
Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: sed
%global _description %{expand:
This small python library provides a few tools to handle semantic versioning in
Python.}
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name} %{_description}
%package doc
Summary: Documentation for python-%{pypi_name}
%description doc
%{summary}.
%prep
%autosetup -p1 -n %{srcname}-%{version}
# Drop unnecessary dependency
sed -i '/zest\.releaser\[recommended\]/d' setup.cfg
%generate_buildrequires
%pyproject_buildrequires -x doc
%build
%pyproject_wheel
# generate html docs
make -C docs html
# remove the sphinx-build leftovers
rm -rf docs/_build/html/.{doctrees,buildinfo}
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%check
%pytest
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst ChangeLog CREDITS
%files doc
%license LICENSE
%doc docs/_build/html
%changelog
## START: Generated by rpmautospec
* Thu Dec 05 2024 Francisco Trivino <ftrivino@redhat.com> - 2.10.0-10
- Bump release for inclusion of the package in CRB10
* Thu Dec 05 2024 Francisco Trivino <ftrivino@redhat.com> - 2.10.0-9
- Add gating.yaml and tests
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.10.0-8
- Bump release for October 2024 mass rebuild:
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.10.0-7
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.10.0-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 30 2022 Davide Cavalca <dcavalca@fedoraproject.org> - 2.10.0-1
- Update to 2.10.0 and switch to pyproject macros; Fixes: RHBZ#1747105
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
@ -99,3 +208,5 @@
* Mon Mar 30 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.3.1-1
- Initial package.
## END: Generated by rpmautospec

@ -1,69 +0,0 @@
%global pypi_name semantic_version
%global srcname python-semanticversion
Name: python-%{pypi_name}
Version: 2.10.0
Release: %autorelease
Summary: Library implementing the 'SemVer' scheme
License: BSD
URL: https://github.com/rbarrois/python-semanticversion
Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: sed
%global _description %{expand:
This small python library provides a few tools to handle semantic versioning in
Python.}
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name} %{_description}
%package doc
Summary: Documentation for python-%{pypi_name}
%description doc
%{summary}.
%prep
%autosetup -p1 -n %{srcname}-%{version}
# Drop unnecessary dependency
sed -i '/zest\.releaser\[recommended\]/d' setup.cfg
%generate_buildrequires
%pyproject_buildrequires -x doc
%build
%pyproject_wheel
# generate html docs
make -C docs html
# remove the sphinx-build leftovers
rm -rf docs/_build/html/.{doctrees,buildinfo}
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%check
%pytest
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst ChangeLog CREDITS
%files doc
%license LICENSE
%doc docs/_build/html
%changelog
%autochangelog

@ -1 +0,0 @@
SHA512 (python-semanticversion-2.10.0.tar.gz) = e060dd60db62663c6ebf21fdca33b2390d9bbad15fbdfa504221ab646426f09168caf00e79cee7ed4ef442c23fd587c9e421aa744990101ea626b58f4e320242
Loading…
Cancel
Save