66 lines
2.3 KiB
RPMSpec
66 lines
2.3 KiB
RPMSpec
|
%define commit %(echo %version | cut -d~ -f2)
|
||
|
Name: ghc-rpm-macros
|
||
|
Version: 2.5.3~007effd
|
||
|
Release: 1mamba
|
||
|
Summary: RPM macros for building Haskell packages for GHC
|
||
|
Group: Development/Tools
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://src.fedoraproject.org/rpms/ghc-rpm-macros/
|
||
|
Source: https://github.com/fedora-riscv/ghc-rpm-macros.git/main@%{commit}/ghc-rpm-macros-%{version}.tar.bz2
|
||
|
Patch0: ghc-rpm-macros-2.5.3-openmamba.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
|
||
|
%description
|
||
|
RPM macros for building Haskell packages for GHC.
|
||
|
|
||
|
#% debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch 0 -p1
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
install -p -D -m 0644 macros.ghc %{buildroot}%{_rpmmacrodir}/macros.ghc
|
||
|
install -p -D -m 0644 macros.ghc-extra %{buildroot}%{_rpmmacrodir}/macros.ghc-extra
|
||
|
install -p -D -m 0644 macros.ghc-os %{buildroot}%{_rpmmacrodir}/macros.ghc-os
|
||
|
install -p -D -m 0755 ghc-deps.sh %{buildroot}%{_rpmconfigdir}/ghc-deps.sh
|
||
|
install -p -D -m 0644 ghc.attr %{buildroot}%{_fileattrsdir}/ghc.attr
|
||
|
install -p -D -m 0644 Setup.hs %{buildroot}%{_datadir}/%{name}/Setup.hs
|
||
|
install -p -D -m 0755 cabal-tweak-dep-ver %{buildroot}%{_bindir}/cabal-tweak-dep-ver
|
||
|
install -p -D -m 0755 cabal-tweak-flag %{buildroot}%{_bindir}/cabal-tweak-flag
|
||
|
install -p -D -m 0755 cabal-tweak-drop-dep %{buildroot}%{_bindir}/cabal-tweak-drop-dep
|
||
|
install -p -D -m 0755 cabal-tweak-remove-upperbound %{buildroot}%{_bindir}/cabal-tweak-remove-upperbound
|
||
|
install -p -D -m 0755 ghc-pkg-wrapper %{buildroot}%{_rpmconfigdir}/ghc-pkg-wrapper
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/cabal-tweak-dep-ver
|
||
|
%{_bindir}/cabal-tweak-drop-dep
|
||
|
%{_bindir}/cabal-tweak-flag
|
||
|
%{_bindir}/cabal-tweak-remove-upperbound
|
||
|
%{_fileattrsdir}/ghc.attr
|
||
|
%{_rpmconfigdir}/ghc-deps.sh
|
||
|
%{_rpmconfigdir}/ghc-pkg-wrapper
|
||
|
%{_rpmmacrodir}/macros.ghc
|
||
|
%{_rpmmacrodir}/macros.ghc-extra
|
||
|
%{_rpmmacrodir}/macros.ghc-os
|
||
|
%dir %{_datadir}/ghc-rpm-macros
|
||
|
%{_datadir}/ghc-rpm-macros/Setup.hs
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Sun Nov 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.3~007effd-1mamba
|
||
|
- package created using the webbuild interface
|