[ghc-rpm-macros] move macros.ghc-srpm from redhat-rpm-config to new ghc-srpm-macros

Jens Petersen petersen at fedoraproject.org
Mon Apr 28 10:16:35 UTC 2014


commit eaa615f94882ccb472aa5817bf78a9105670ff08
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Apr 28 19:16:03 2014 +0900

    move macros.ghc-srpm from redhat-rpm-config to new ghc-srpm-macros
    
    update license tag to GPLv3+

 ghc-rpm-macros.ghc-srpm |    3 +++
 ghc-rpm-macros.spec     |   29 +++++++++++++++++++++++++----
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/ghc-rpm-macros.ghc-srpm b/ghc-rpm-macros.ghc-srpm
new file mode 100644
index 0000000..80b8468
--- /dev/null
+++ b/ghc-rpm-macros.ghc-srpm
@@ -0,0 +1,3 @@
+# Macros needed for building srpms of Haskell packages
+
+%ghc_arches_with_ghci %{ix86} x86_64 ppc sparcv9 armv7hl armv5tel
diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec
index 53b2a70..08e5f6d 100644
--- a/ghc-rpm-macros.spec
+++ b/ghc-rpm-macros.spec
@@ -6,11 +6,11 @@
 #%%global without_hscolour 1
 
 Name:           ghc-rpm-macros
-Version:        1.2.5
+Version:        1.2.6
 Release:        1%{?dist}
 Summary:        RPM macros for building packages for GHC
 
-License:        GPLv3
+License:        GPLv3+
 URL:            https://fedoraproject.org/wiki/Packaging:Haskell
 
 # This is a Fedora maintained package, originally made for
@@ -24,11 +24,12 @@ Source3:        ghc-deps.sh
 Source4:        cabal-tweak-dep-ver
 Source5:        cabal-tweak-flag
 Source6:        ghc-rpm-macros.ghc-extra
+Source7:        ghc-rpm-macros.ghc-srpm
 # ver-rel for unversioned docdir
 Requires:       redhat-rpm-config >= 9.1.0-50.fc20
 %if %{undefined without_hscolour}
 BuildRequires:  redhat-rpm-config
-ExclusiveArch:  %{ghc_arches}
+ExclusiveArch:  %{ix86} x86_64 ppc ppc64 alpha sparcv9 armv7hl armv5tel s390 s390x
 Requires:       hscolour
 %endif
 # for execstack
@@ -41,10 +42,20 @@ these macros.
 
 
 %package extra
-Summary:        Extra RPM macros for building Haskell packages with several libs
+Summary:        Extra RPM macros for building Haskell library subpackages
 Requires:       %{name} = %{version}-%{release}
 
 %description extra
+Extra macros used for subpackaging of Haskell libraries,
+for example in ghc and haskell-platform.
+
+
+%package -n ghc-srpm-macros
+Summary:        RPM macros for building Haskell source packages
+Requires:       %{name} = %{version}-%{release}
+
+%description -n ghc-srpm-macros
+Macros used when generating source Haskell rpm packages.
 
 
 %prep
@@ -59,6 +70,7 @@ echo no build stage needed
 %install
 install -p -D -m 0644 %{SOURCE0} %{buildroot}/%{macros_dir}/macros.ghc
 install -p -D -m 0644 %{SOURCE6} %{buildroot}/%{macros_dir}/macros.ghc-extra
+install -p -D -m 0644 %{SOURCE7} %{buildroot}/%{macros_dir}/macros.ghc-srpm
 
 install -p -D -m 0755 %{SOURCE3} %{buildroot}/%{_prefix}/lib/rpm/ghc-deps.sh
 
@@ -89,7 +101,16 @@ EOF
 %{macros_dir}/macros.ghc-extra
 
 
+%files -n ghc-srpm-macros
+%{macros_dir}/macros.ghc-srpm
+
+
 %changelog
+* Mon Apr 28 2014 Jens Petersen <petersen at redhat.com> - 1.2.6-1
+- move macros.ghc-srpm from redhat-rpm-config to new ghc-srpm-macros subpackage:
+  defines ghc_arches_with_ghci and drops no longer used ghc_arches (#1089102)
+- update license tag to GPLv3+
+
 * Fri Mar 28 2014 Jens Petersen <petersen at redhat.com> - 1.2.5-1
 - handle no _pkgdocdir in RHEL7 and docdir path different to F20+
 


More information about the scm-commits mailing list