Drop unnecessary files in package

Resolves: RHEL-54049
This commit is contained in:
Akira TAGOH 2024-08-13 10:44:13 +09:00
parent 39dd1ce9c2
commit aac0bbe0ca

View File

@ -18,7 +18,7 @@ Version: 2.0.5
BuildArch: noarch
Name: fonts-rpm-macros
Release: 16%{?dist}
Release: 17%{?dist}
Summary: Build-stage rpm automation for fonts packages
License: GPL-3.0-or-later
@ -103,11 +103,11 @@ for template in templates/rpm/*\.spec ; do
grep -v '^%%dnl' "${template}" > "${target}"
touch -r "${template}" "${target}"
done
%patch -P0 -p1 -b .0-omit-foundry-in-family
%patch -P0 -p1
%if 0%{?rhel} >= 10
%patch -P1 -p1 -b .1-drop-yaml
%patch -P1 -p1
%endif
%patch -P2 -p1 -b .2-epoch-in-req
%patch -P2 -p1
%install
install -m 0755 -d %{buildroot}%{_fontbasedir} \
@ -137,7 +137,8 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}
%files
%license LICENSE.txt
%{_bindir}/*
%{_bindir}/fc-weight
%{_bindir}/gen-fontconf
%{rpmmacrodir}/macros.fonts-rpm*
%{_rpmluadir}/fedora/rpm/*.lua
@ -163,6 +164,11 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}
%doc %{ftcgtemplatedir}/*txt
%changelog
* Tue Aug 13 2024 Akira TAGOH <tagoh@redhat.com> - 1:2.0.5-17
- Add exact binary name in the file list.
- Do not package backup files.
Resolves: RHEL-54049
* Wed Jun 19 2024 Akira TAGOH <tagoh@redhat.com> - 1:2.0.5-16
- Add %%{epoch} in Requires line if needed
- Support fontpkgheader macro for meta packages.