From 37a490945e9a72ca7911a98b48aa176bb91884ea Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 4 Feb 2025 07:51:09 +0000 Subject: automatic import of python-rpm-generators --- python-rpm-generators.spec | 18 +++++++----------- pythonbundles.py | 0 pythondist.attr | 4 ++-- 3 files changed, 9 insertions(+), 13 deletions(-) mode change 100644 => 100755 pythonbundles.py diff --git a/python-rpm-generators.spec b/python-rpm-generators.spec index 532c2ae..048578e 100644 --- a/python-rpm-generators.spec +++ b/python-rpm-generators.spec @@ -1,20 +1,16 @@ -%undefine py_auto_byte_compile - Name: python-rpm-generators Version: 14 Release: 1 Summary: Dependency generators for Python RPMs -License: GPL-2.0-or-later AND LGPL-2.1-or-later AND (Public Domain OR LGPL-2.1-or-later OR GPL-2.0-or-later) +License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://src.fedoraproject.org/rpms/python-rpm-generators Source0: https://raw.githubusercontent.com/rpm-software-management/rpm/102eab50b3d0d6546dfe082eac0ade21e6b3dbf1/COPYING -Source1: python.attr -Source2: pythondist.attr +Source1: python.attr +Source2: pythondist.attr # This one is also originally from RPM, but it has its own license declaration: LGPL-2.1-or-later -Source4: pythondistdeps.py -# This was crafted in-place with the following license declaration: -# Public-Domain OR CC0-1.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later -Source5: pythonbundles.py +Source3: pythondistdeps.py +Source4: pythonbundles.py BuildArch: noarch @@ -23,8 +19,8 @@ Fedora's dependency generators for Python RPMS. %package -n python3-rpm-generators Summary: %{summary} +Requires: python3-packaging Requires: rpm > 4.15.90 -Requires: python3dist(packaging) Conflicts: rpm-build < 4.13.0.1-2 Conflicts: python-rpm-macros < 3-35 @@ -47,7 +43,7 @@ install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} *.py %{_rpmconfigdir}/pythonbundles.py %changelog -* Sat Oct 19 2024 Funda Wang - 14-1 +* Fri Jan 03 2025 Funda Wang - 14-1 - update to latest upstream version * Tue Aug 06 2024 chenhuihan - 9-5 diff --git a/pythonbundles.py b/pythonbundles.py old mode 100644 new mode 100755 diff --git a/pythondist.attr b/pythondist.attr index ede3a51..7efbe88 100644 --- a/pythondist.attr +++ b/pythondist.attr @@ -1,3 +1,3 @@ -%__pythondist_provides %{_rpmconfigdir}/pythondistdeps.py --provides --normalized-names-format pep503 --package-name %{name} --majorver-provides-versions %{__default_python3_version} %{?!_python_dist_allow_version_zero:--fail-if-zero} -%__pythondist_requires %{_rpmconfigdir}/pythondistdeps.py --requires --normalized-names-format pep503 --package-name %{name} %{?!_python_no_extras_requires:--require-extras-subpackages} --console-scripts-nodep-setuptools-since 3.10 +%__pythondist_provides %{_rpmconfigdir}/pythondistdeps.py --provides --normalized-names-format legacy-dots --normalized-names-provide-both --package-name %{name} --majorver-provides %{?!_python_dist_allow_version_zero:--fail-if-zero} +%__pythondist_requires %{_rpmconfigdir}/pythondistdeps.py --requires --normalized-names-format legacy-dots --normalized-names-provide-both --package-name %{name} %{?!_python_no_extras_requires:--require-extras-subpackages} --console-scripts-nodep-setuptools-since 3.10 %__pythondist_path ^%{?!flatpak:/usr}%{?flatpak:/app}/lib(64)?/python[3-9]\\.[[:digit:]]+/site-packages/[^/]+\\.(dist-info|egg-info|egg-link)$ -- cgit v1.2.3