From daf32363a0ec2fa87d98cc7b756fee19977afa6c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 27 Jun 2014 10:20:13 +0900 Subject: [PATCH] import (#1093541) --- ghc-srpm-macros.spec | 38 ++++++++++++++++++++++++++++++++++++++ macros.ghc-srpm | 4 ++++ 2 files changed, 42 insertions(+) create mode 100644 ghc-srpm-macros.spec create mode 100644 macros.ghc-srpm diff --git a/ghc-srpm-macros.spec b/ghc-srpm-macros.spec new file mode 100644 index 0000000..b8d8631 --- /dev/null +++ b/ghc-srpm-macros.spec @@ -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 - 1.3-1 +- separate from ghc-rpm-macros diff --git a/macros.ghc-srpm b/macros.ghc-srpm new file mode 100644 index 0000000..e79f0cc --- /dev/null +++ b/macros.ghc-srpm @@ -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