change ghc_bootstrap to a macro that disables shared and prof libs, docs, and testsuite
- ghc_bootstrap is now a macro which sets ghc_bootstrapping, ghc_without_shared, without_prof, without_haddock, without_hscolour, without_manual, without_testsuite - tweaks to ghc_check_bootstrap
This commit is contained in:
parent
ed9a00f761
commit
e6a0b6cbfe
@ -8,11 +8,11 @@
|
||||
# check ghc version was rebuilt against self
|
||||
%ghc_check_bootstrap\
|
||||
if [ ! "$(ghc --info | grep \\"Booter\\ version\\",\\"%{ghc_version}\\")" ]; then\
|
||||
echo "Warning: this ghc build is not self-bootstrapped.\
|
||||
The ghc package should be rebuilt against its current version first\
|
||||
to prevent dependency ABI breakage from a future ghc rebuild.\
|
||||
(This can be overridden understanding this risk, by defining ghc_bootstrap.)"\
|
||||
%if %{undefined ghc_bootstrap}\
|
||||
echo "Warning: this ghc build is not self-bootstrapped."\
|
||||
%if %{undefined ghc_bootstrapping}\
|
||||
echo "The ghc package should be rebuilt against its current version before\
|
||||
proceeding, to avoid dependency ABI breakage from a future ghc rebuild."\
|
||||
echo "To override set ghc_bootstrapping.
|
||||
echo "Aborting."\
|
||||
exit 1\
|
||||
%endif\
|
||||
@ -213,3 +213,13 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
|
||||
%ghc_gen_filelists\
|
||||
%{!?1:%ghc_strip_dynlinked}\
|
||||
%{nil}
|
||||
|
||||
# skip shared and prof libs, documentation, and testsuite
|
||||
%ghc_bootstrap\
|
||||
%global ghc_bootstrapping 1\
|
||||
%global ghc_without_shared 1\
|
||||
%global without_prof 1\
|
||||
%global without_haddock 1\
|
||||
%global without_hscolour 1\
|
||||
%global without_manual 1\
|
||||
%global without_testsuite 1
|
||||
|
@ -2,28 +2,29 @@
|
||||
|
||||
%global macros_file %{_sysconfdir}/rpm/macros.ghc
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 0.13.4
|
||||
Release: 1%{?dist}
|
||||
Summary: Macros for building packages for GHC
|
||||
Name: ghc-rpm-macros
|
||||
Version: 0.13.5
|
||||
Release: 1%{?dist}
|
||||
Summary: Macros for building packages for GHC
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPLv3
|
||||
URL: https://fedoraproject.org/wiki/Haskell_SIG
|
||||
Group: Development/Libraries
|
||||
License: GPLv3
|
||||
URL: https://fedoraproject.org/wiki/Haskell_SIG
|
||||
|
||||
# This is a Fedora maintained package which is specific to
|
||||
# our distribution. Thus the source is only available from
|
||||
# within this srpm.
|
||||
Source0: ghc-rpm-macros.ghc
|
||||
Source1: COPYING
|
||||
Source2: AUTHORS
|
||||
Source3: ghc-deps.sh
|
||||
Source0: ghc-rpm-macros.ghc
|
||||
Source1: COPYING
|
||||
Source2: AUTHORS
|
||||
Source3: ghc-deps.sh
|
||||
|
||||
%description
|
||||
A set of macros for building GHC packages following the Haskell Guidelines
|
||||
of the Fedora Haskell SIG. ghc needs to be installed in order to make use of
|
||||
these macros.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -c -T
|
||||
cp %{SOURCE1} %{SOURCE2} .
|
||||
@ -58,6 +59,12 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.5-1
|
||||
- ghc_bootstrap is now a macro which sets ghc_bootstrapping,
|
||||
ghc_without_shared, without_prof, without_haddock, without_hscolour,
|
||||
without_manual, without_testsuite
|
||||
- tweaks to ghc_check_bootstrap
|
||||
|
||||
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.4-1
|
||||
- add ghc_check_bootstrap
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user