Compare commits

...

1 Commits
i9cf ... i10ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/license-expression-30.1.0.tar.gz SOURCES/license-expression-30.3.0.tar.gz

@ -1 +1 @@
decadf8aa90903a036b246bf596081de28e1d3d7 SOURCES/license-expression-30.1.0.tar.gz 49ced51d7cce57c77941608e9cedb5d8c7ebaf0f SOURCES/license-expression-30.3.0.tar.gz

@ -1,3 +0,0 @@
# python-license-expression
The python-license-expression package

@ -1,61 +1,129 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 3;
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
Name: python-license-expression Name: python-license-expression
Version: 30.1.0 Version: 30.3.0
Release: 3%{?dist} Release: %autorelease
Summary: Library to parse, compare, simplify and normalize license expressions Summary: Library to parse, compare, simplify and normalize license expressions
# `irc-notify.py` in the tarball is licensed under GPL, but not re-distributed # `irc-notify.py` in the tarball is licensed under GPL, but not re-distributed
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/nexB/license-expression/ URL: https://github.com/nexB/license-expression
Source0: %{pypi_source license-expression} Source: %url/archive/v%{version}/license-expression-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(sphinxcontrib-apidoc)
BuildRequires: python3dist(sphinx-rtd-theme)
%global _description \ %global common_description %{expand:
This module defines a mini language to parse, validate, simplify, normalize and\ This module defines a mini language to parse, validate, simplify, normalize and
compare license expressions using a boolean logic engine.\ compare license expressions using a boolean logic engine.
\
This supports SPDX license expressions and also accepts other license naming\
conventions and license identifiers aliases to resolve and normalize licenses.\
\
Using boolean logic, license expressions can be tested for equality,\
containment, equivalence and can be normalized or simplified.
%description %{_description} This supports SPDX license expressions and also accepts other license naming
conventions and license identifiers aliases to resolve and normalize licenses.
%package -n python3-license-expression Using boolean logic, license expressions can be tested for equality,
containment, equivalence and can be normalized or simplified.}
%description %{common_description}
%package -n python3-license-expression
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel
%description -n python3-license-expression %{_description} %description -n python3-license-expression %{common_description}
%package -n python-license-expression-doc
Summary: Documentation for python-license-expression
# BSD-2-Clause: Sphinx javascript
# MIT: jquery
License: Apache-2.0 AND BSD-2-Clause AND MIT
BuildArch: noarch
Requires: python3-license-expression = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: bundled(js-sphinx_javascript_frameworks_compat)
Provides: bundled(js-doctools)
Provides: bundled(js-jquery)
Provides: bundled(js-language_data)
Provides: bundled(js-searchtools)
%description -n python-license-expression-doc
%{common_description}
This package is providing the documentation for license-expression.
%prep %prep
%autosetup -n license-expression-%{version} %autosetup -p1 -n license-expression-%{version}
# Remove bundled egg-info sed -i 's|\(fallback_version = "\)[^"]*|\1%{version}|' pyproject.toml
rm -r src/*.egg-info/ sed -i 's|setuptools_scm\[toml\]|setuptools_scm|' pyproject.toml
rm PKG-INFO sed -i 's|setuptools_scm\[toml\]|setuptools_scm|' setup.cfg
# Set fallback_version sed -i '/sphinx_reredirects/d' setup.cfg
sed -i 's/^fallback_version.*/fallback_version = "%{version}"/' pyproject.toml sed -i '/sphinx_reredirects/d' docs/source/conf.py
sed -i '/sphinx_rtd_dark_mode/d' docs/source/conf.py
sed -i '/sphinx_copybutton/d' docs/source/conf.py
%generate_buildrequires %generate_buildrequires
%pyproject_buildrequires -t %pyproject_buildrequires
%build %build
%pyproject_wheel %pyproject_wheel
# generate html docs
sphinx-build-3 -b html docs/source html
# remove the sphinx-build-3 leftovers
rm -rf html/.{doctrees,buildinfo}
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files license_expression %pyproject_save_files license_expression
%check %check
%pytest %pytest
%files -n python3-license-expression -f %{pyproject_files} %files -n python3-license-expression -f %{pyproject_files}
%license apache-2.0.LICENSE NOTICE %doc AUTHORS.rst CHANGELOG.rst CODE_OF_CONDUCT.rst README.rst
%doc README.rst
%files -n python-license-expression-doc
%doc html
%changelog %changelog
* Thu Jul 18 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 30.1.0-3 * Fri Jan 10 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 30.3.0-3
- Rebuilt for MSVSphere 9.4 - Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 30.3.0-2
- Rebuilt for Python 3.13
* Tue Mar 19 2024 Packit <hello@packit.dev> - 30.3.0-1
- [packit] 30.3.0 upstream release
- Resolves rhbz#2270328
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 13 2024 Miroslav Suchý <msuchy@redhat.com> - 30.2.0-2
- ignore new modules that are not in Fedora and not needed for runtime
* Sun Dec 03 2023 Packit <hello@packit.dev> - 30.2.0-1
- [packit] 30.2.0 upstream release
- Resolves rhbz#2210385
* Thu Nov 16 2023 Miroslav Suchý <msuchy@redhat.com> - 30.1.1-3
- remove issue_repository
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 30.1.0-3 * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 30.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
@ -104,3 +172,5 @@ sed -i 's/^fallback_version.*/fallback_version = "%{version}"/' pyproject.toml
* Mon Sep 02 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.999-1 * Mon Sep 02 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.999-1
- New package. - New package.
## END: Generated by rpmautospec

Loading…
Cancel
Save