extra: add %ghc_merge_filelist from ghc*.spec

epel9
Jens Petersen 5 months ago
parent 05b135d0fc
commit 8f46ab51f2

@ -7,8 +7,8 @@
%endif %endif
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 2.7.1 Version: 2.7.2
Release: 2%{?dist} Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC Summary: RPM macros for building Haskell packages for GHC
License: GPL-3.0-or-later License: GPL-3.0-or-later
@ -205,6 +205,9 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
%changelog %changelog
* Mon Jul 29 2024 Jens Petersen <petersen@redhat.com> - 2.7.2-1
- extra: add ghc_merge_filelist from ghc.spec
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2 * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

@ -123,3 +123,19 @@ ver=$(echo $i | sed -e "s/.*-\\(.*\\)/\\1/")\
cd ..\ cd ..\
done\ done\
%{nil} %{nil}
# ghc_merge_filelist lib base
%ghc_merge_filelist()\
cat %{name}-%1.files >> %{name}-%2.files\
cat %{name}-%1-devel.files >> %{name}-%2-devel.files\
%if %{with haddock}\
cat %{name}-%1-doc.files >> %{name}-%2-doc.files\
%endif\
%if %{with ghc_prof}\
cat %{name}-%1-prof.files >> %{name}-%2-prof.files\
%endif\
if [ "%1" != "rts" ]; then\
cp -p libraries/%1/LICENSE libraries/LICENSE.%1\
echo "%%license libraries/LICENSE.%1" >> %{name}-%2.files\
fi\
%{nil}

Loading…
Cancel
Save