From 70330d4816cf308bb9b852bb1513c0a17082572b Mon Sep 17 00:00:00 2001 From: tigro Date: Fri, 10 Jan 2025 18:58:44 +0300 Subject: [PATCH] import python-license-expression-30.3.0-3.el10 --- .gitignore | 2 +- .python-license-expression.metadata | 2 +- SOURCES/README.md | 3 - SPECS/python-license-expression.spec | 128 +++++++++++++++++++++------ 4 files changed, 101 insertions(+), 34 deletions(-) delete mode 100644 SOURCES/README.md diff --git a/.gitignore b/.gitignore index 294e26b..f551808 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/license-expression-30.1.0.tar.gz +SOURCES/license-expression-30.3.0.tar.gz diff --git a/.python-license-expression.metadata b/.python-license-expression.metadata index e5eeaf8..7a607ea 100644 --- a/.python-license-expression.metadata +++ b/.python-license-expression.metadata @@ -1 +1 @@ -decadf8aa90903a036b246bf596081de28e1d3d7 SOURCES/license-expression-30.1.0.tar.gz +49ced51d7cce57c77941608e9cedb5d8c7ebaf0f SOURCES/license-expression-30.3.0.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md deleted file mode 100644 index 1ec0c77..0000000 --- a/SOURCES/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-license-expression - -The python-license-expression package \ No newline at end of file diff --git a/SPECS/python-license-expression.spec b/SPECS/python-license-expression.spec index ab2692a..6ac8317 100644 --- a/SPECS/python-license-expression.spec +++ b/SPECS/python-license-expression.spec @@ -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 -Version: 30.1.0 -Release: 3%{?dist} +Version: 30.3.0 +Release: %autorelease 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/ -Source0: %{pypi_source license-expression} +URL: https://github.com/nexB/license-expression +Source: %url/archive/v%{version}/license-expression-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(sphinxcontrib-apidoc) +BuildRequires: python3dist(sphinx-rtd-theme) -%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. +%global common_description %{expand: +This module defines a mini language to parse, validate, simplify, normalize and +compare license expressions using a boolean logic engine. -%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} -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 -%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 +%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 %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %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} -%license apache-2.0.LICENSE NOTICE -%doc README.rst +%doc AUTHORS.rst CHANGELOG.rst CODE_OF_CONDUCT.rst README.rst + +%files -n python-license-expression-doc +%doc html %changelog -* Thu Jul 18 2024 Sergey Cherevko - 30.1.0-3 -- Rebuilt for MSVSphere 9.4 +* Fri Jan 10 2025 Arkady L. Shane - 30.3.0-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 30.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 30.3.0-2 +- Rebuilt for Python 3.13 + +* Tue Mar 19 2024 Packit - 30.3.0-1 +- [packit] 30.3.0 upstream release +- Resolves rhbz#2270328 + +* Fri Jan 26 2024 Fedora Release Engineering - 30.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 30.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 13 2024 Miroslav Suchý - 30.2.0-2 +- ignore new modules that are not in Fedora and not needed for runtime + +* Sun Dec 03 2023 Packit - 30.2.0-1 +- [packit] 30.2.0 upstream release +- Resolves rhbz#2210385 + +* Thu Nov 16 2023 Miroslav Suchý - 30.1.1-3 +- remove issue_repository * Fri Jul 21 2023 Fedora Release Engineering - 30.1.0-3 - 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 - 0.999-1 - New package. + +## END: Generated by rpmautospec