c9-beta-stream-3.3
imports/c9-beta-stream-3.3/rpm-local-generator-support-1-1.module_el9+862+220991ec
commit
c4402c189b
@ -0,0 +1,23 @@
|
||||
# rpm-local-generator-support
|
||||
|
||||
This package ships `%{_fileattrsdir}/local_generator.attr` file, which enables
|
||||
`local_generator` for RPM. This is useful in cases, where package ships
|
||||
generators and wants to use them internally. In such case, it is possible to
|
||||
redefine the generator macros:
|
||||
|
||||
~~~
|
||||
... snip ...
|
||||
|
||||
Source1: generator.req
|
||||
BuildRequires: rpm-local-generator-support
|
||||
|
||||
%global __local_generator_requires bash %{SOURCE9}"
|
||||
|
||||
... snip ...
|
||||
~~~
|
||||
|
||||
More details about the idea and purpose of this file can be find here:
|
||||
|
||||
https://github.com/rpm-software-management/rpm/issues/782#issuecomment-1747200612
|
||||
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3MHROKOM53HM6NF7RGGLFBIQFG5IEIQG/
|
||||
|
@ -0,0 +1,45 @@
|
||||
Summary: RPM local_generator support
|
||||
Name: rpm-local-generator-support
|
||||
Version: 1
|
||||
Release: 1%{?dist}
|
||||
|
||||
# It is not really clear if the one empty file shipped by this package is even
|
||||
# copyrightable. But let's go with GPLv2+ which is the license used by RPM,
|
||||
# where this file should ideally come from or be replaced by different
|
||||
# implementation.
|
||||
#
|
||||
# The license was discussed in this thread:
|
||||
# https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/X6RUQK5R6KIMVIQ6FQPNVGTJJXSNRD4V/
|
||||
License: GPLv2+
|
||||
URL: https://src.fedoraproject.org/rpms/rpm-local-generator-support
|
||||
Source1: README.md
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
local_generator.attr file enabling RPM dependency generator to be used on .spec
|
||||
files, which ships them.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
install %{SOURCE1} %{basename:%{SOURCE1}}
|
||||
|
||||
install -d %{buildroot}%{_fileattrsdir}
|
||||
touch %{buildroot}%{_fileattrsdir}/local_generator.attr
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_fileattrsdir}/local_generator.attr
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 06 2023 Vít Ondruch <vondruch@redhat.com> - 1-1
|
||||
- Initial version.
|
Loading…
Reference in new issue