import rpm-local-generator-support-1-3.el10

i10cf changed/i10cf/rpm-local-generator-support-1-3.el10
Sergey Cherevko 1 month ago
commit 1cb4a0f4a0
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -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,54 @@
Summary: RPM local_generator support
Name: rpm-local-generator-support
Version: 1
Release: 3%{?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
* Mon Dec 16 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1-3
- Rebuilt for MSVSphere 10
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Oct 06 2023 Vít Ondruch <vondruch@redhat.com> - 1-1
- Initial version.
Loading…
Cancel
Save