[ghc-rpm-macros] fix new requires, build on all archs and make hscolour conditional on arch
Jens Petersen
petersen at fedoraproject.org
Wed Apr 30 03:44:15 UTC 2014
commit 48199c851a2c672494e295b3cbfc4eded20c3a11
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Apr 30 12:44:15 2014 +0900
fix new requires, build on all archs and make hscolour conditional on arch
- ghc-srpm-macros subpackage noarch
- set Url field when generating subpackages
ghc-rpm-macros.ghc-extra | 1 +
ghc-rpm-macros.spec | 21 +++++++++++++++------
2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/ghc-rpm-macros.ghc-extra b/ghc-rpm-macros.ghc-extra
index 3cfc35a..554c57d 100644
--- a/ghc-rpm-macros.ghc-extra
+++ b/ghc-rpm-macros.ghc-extra
@@ -11,6 +11,7 @@
Summary: Haskell %{pkgname} library\
%{?1:Version: %{pkgver}}\
%{-l:License: %{-l*}}\
+Url: http://hackage.haskell.org/package/%{pkgname}\
%{?ghc_pkg_obsoletes:Obsoletes: %(echo "%{ghc_pkg_obsoletes}" | sed -e "s/\\(ghc-[^, ]*\\)-devel/\\1/g")}\
\
%description -n %{basepkg}\
diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec
index 08e5f6d..b1996a3 100644
--- a/ghc-rpm-macros.spec
+++ b/ghc-rpm-macros.spec
@@ -6,7 +6,7 @@
#%%global without_hscolour 1
Name: ghc-rpm-macros
-Version: 1.2.6
+Version: 1.2.7
Release: 1%{?dist}
Summary: RPM macros for building packages for GHC
@@ -25,13 +25,14 @@ 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
+Requires: ghc-srpm-macros = %{version}-%{release}
+# macros.ghc-srpm moved out from redhat-rpm-config-21
+Requires: redhat-rpm-config > 20-1.fc21
%if %{undefined without_hscolour}
-BuildRequires: redhat-rpm-config
-ExclusiveArch: %{ix86} x86_64 ppc ppc64 alpha sparcv9 armv7hl armv5tel s390 s390x
+%ifarch %{ix86} %{ix86} x86_64 ppc ppc64 alpha sparcv9 armv7hl armv5tel s390 s390x
Requires: hscolour
%endif
+%endif
# for execstack
Requires: prelink
@@ -52,7 +53,8 @@ for example in ghc and haskell-platform.
%package -n ghc-srpm-macros
Summary: RPM macros for building Haskell source packages
-Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
%description -n ghc-srpm-macros
Macros used when generating source Haskell rpm packages.
@@ -106,6 +108,13 @@ EOF
%changelog
+* Wed Apr 30 2014 Jens Petersen <petersen at redhat.com> - 1.2.7-1
+- ghc-rpm-macros requires ghc-srpm-macros
+- ghc-srpm-macros does not require ghc-rpm-macros
+- drop ExclusiveArch and make hscolour requires arch conditional
+- make ghc-srpm-macros subpackage noarch
+- set Url field when generating subpackages
+
* 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)
More information about the scm-commits
mailing list