Compare commits

..

No commits in common. 'i10ce' and 'i9cf' have entirely different histories.
i10ce ... i9cf

2
.gitignore vendored

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

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

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

@ -1,129 +1,61 @@
## 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
Version: 30.3.0
Release: %autorelease
Version: 30.1.0
Release: 3%{?dist}
Summary: Library to parse, compare, simplify and normalize license expressions
# `irc-notify.py` in the tarball is licensed under GPL, but not re-distributed
License: Apache-2.0
URL: https://github.com/nexB/license-expression
Source: %url/archive/v%{version}/license-expression-%{version}.tar.gz
URL: https://github.com/nexB/license-expression/
Source0: %{pypi_source license-expression}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(sphinxcontrib-apidoc)
BuildRequires: python3dist(sphinx-rtd-theme)
%global common_description %{expand:
This module defines a mini language to parse, validate, simplify, normalize and
compare license expressions using a boolean logic engine.
%global _description \
This module defines a mini language to parse, validate, simplify, normalize and\
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.
This supports SPDX license expressions and also accepts other license naming
conventions and license identifiers aliases to resolve and normalize licenses.
%description %{_description}
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
%package -n python3-license-expression
Summary: %{summary}
BuildRequires: python3-devel
%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.
%description -n python3-license-expression %{_description}
%prep
%autosetup -p1 -n license-expression-%{version}
sed -i 's|\(fallback_version = "\)[^"]*|\1%{version}|' pyproject.toml
sed -i 's|setuptools_scm\[toml\]|setuptools_scm|' pyproject.toml
sed -i 's|setuptools_scm\[toml\]|setuptools_scm|' setup.cfg
sed -i '/sphinx_reredirects/d' setup.cfg
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
%autosetup -n license-expression-%{version}
# Remove bundled egg-info
rm -r src/*.egg-info/
rm PKG-INFO
# Set fallback_version
sed -i 's/^fallback_version.*/fallback_version = "%{version}"/' pyproject.toml
%generate_buildrequires
%pyproject_buildrequires
%pyproject_buildrequires -t
%build
%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
%pyproject_install
%pyproject_save_files license_expression
%check
%pytest
%files -n python3-license-expression -f %{pyproject_files}
%doc AUTHORS.rst CHANGELOG.rst CODE_OF_CONDUCT.rst README.rst
%files -n python-license-expression-doc
%doc html
%license apache-2.0.LICENSE NOTICE
%doc README.rst
%changelog
* Fri Jan 10 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 30.3.0-3
- 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
* Thu Jul 18 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 30.1.0-3
- Rebuilt for MSVSphere 9.4
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 30.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
@ -172,5 +104,3 @@ rm -rf html/.{doctrees,buildinfo}
* Mon Sep 02 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.999-1
- New package.
## END: Generated by rpmautospec

Loading…
Cancel
Save