diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-24 02:47:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-24 02:47:13 +0000 |
commit | d84870187551b9d57c4cddc5628f393e2aead0c8 (patch) | |
tree | 1673ca249d4b377ad0e138b37280bf8930b8348e | |
parent | ec5c241f096a79ba1671d80e580bc9fadc3ca8e0 (diff) |
automatic import of python-rpm-generators
-rw-r--r-- | python-rpm-generators.spec | 2 | ||||
-rw-r--r-- | pythonname.attr | 18 |
2 files changed, 0 insertions, 20 deletions
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 ^/ |