From d84870187551b9d57c4cddc5628f393e2aead0c8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 24 Oct 2024 02:47:13 +0000 Subject: automatic import of python-rpm-generators --- python-rpm-generators.spec | 2 -- pythonname.attr | 18 ------------------ 2 files changed, 20 deletions(-) delete mode 100644 pythonname.attr diff --git a/python-rpm-generators.spec b/python-rpm-generators.spec index c7aced2..84a200d 100644 --- a/python-rpm-generators.spec +++ b/python-rpm-generators.spec @@ -10,8 +10,6 @@ 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 -# This was crafted in-place as a fork of python.attr, hence also GPL-2.0-or-later -Source3: pythonname.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: diff --git a/pythonname.attr b/pythonname.attr deleted file mode 100644 index b2862b1..0000000 --- a/pythonname.attr +++ /dev/null @@ -1,18 +0,0 @@ -%__pythonname_provides() %{lua: - local python = require 'openEuler.python' - local name = rpm.expand('%{name}') - local evr = rpm.expand('%{?epoch:%{epoch}:}%{version}-%{release}') - local provides = python.python_altprovides_once(name, evr) - -- provides is either an array/table or nil - -- nil means the function was already called with the same arguments: - -- either with another file in %1 or manually via %py_provides - if provides then - for i, provide in ipairs(provides) do - print(provide .. ' ') - end - end -} - -%__pythonname_obsoletes() %{nil} - -%__pythonname_path ^/ -- cgit v1.2.3