This commit is contained in:
Jens Petersen 2014-06-27 10:20:13 +09:00
parent 3fed2f1b91
commit daf32363a0
2 changed files with 42 additions and 0 deletions

38
ghc-srpm-macros.spec Normal file
View File

@ -0,0 +1,38 @@
# ghc has been bootstrapped on all Fedora archs except aarch64.
# The ghc interpreter ghci is only supported on a subset of archs.
%global macros_dir %{_rpmconfigdir}/macros.d
Name: ghc-srpm-macros
Version: 1.3
Release: 1%{?dist}
Summary: RPM macros for building Haskell source packages
License: GPLv3+
BuildArch: noarch
Source0: macros.ghc-srpm
%description
Macros used when generating Haskell source RPM packages.
%prep
%{nil}
%build
echo no build stage needed
%install
install -p -D -m 0644 %{SOURCE0} %{buildroot}/%{macros_dir}/macros.ghc-srpm
%files
%{macros_dir}/macros.ghc-srpm
%changelog
* Fri May 2 2014 Jens Petersen <petersen@redhat.com> - 1.3-1
- separate from ghc-rpm-macros

4
macros.ghc-srpm Normal file
View File

@ -0,0 +1,4 @@
# Macros needed for building srpms of Haskell packages
# ghci is currently only supported on the following archs
%ghc_arches_with_ghci %{ix86} x86_64 ppc sparcv9 armv7hl armv5tel