compile Setup to help speed up builds
This commit is contained in:
parent
4d6720d40f
commit
0f8bb5330b
@ -1,5 +1,5 @@
|
|||||||
# "cabal"
|
# "cabal"
|
||||||
%cabal %{_bindir}/runghc Setup
|
%cabal ./Setup
|
||||||
|
|
||||||
# configure
|
# configure
|
||||||
%cabal_configure\
|
%cabal_configure\
|
||||||
@ -199,12 +199,14 @@ find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'
|
|||||||
|
|
||||||
# ghc_bin_build
|
# ghc_bin_build
|
||||||
%ghc_bin_build\
|
%ghc_bin_build\
|
||||||
|
ghc --make -dynamic Setup\
|
||||||
%cabal_configure\
|
%cabal_configure\
|
||||||
%cabal build
|
%cabal build
|
||||||
|
|
||||||
# ghc_lib_build [name] [version]
|
# ghc_lib_build [name] [version]
|
||||||
%ghc_lib_build()\
|
%ghc_lib_build()\
|
||||||
%{?1:cd %1-%2}\
|
%{?1:cd %1-%2}\
|
||||||
|
ghc --make -dynamic Setup\
|
||||||
%cabal_configure -p %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghcdocbasedir}/libraries/%1-%2}\
|
%cabal_configure -p %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghcdocbasedir}/libraries/%1-%2}\
|
||||||
%cabal build\
|
%cabal build\
|
||||||
%cabal haddock %{!?without_hscolour:--hyperlink-source}\
|
%cabal haddock %{!?without_hscolour:--hyperlink-source}\
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 0.11.2
|
Version: 0.11.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Macros for building packages for GHC
|
Summary: Macros for building packages for GHC
|
||||||
|
|
||||||
@ -47,6 +47,9 @@ install -p %{SOURCE3} ${RPM_BUILD_ROOT}/%{_prefix}/lib/rpm
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 21 2011 Jens Petersen <petersen@redhat.com> - 0.11.3-1
|
||||||
|
- compile Setup to help speed up builds
|
||||||
|
|
||||||
* Thu Jan 20 2011 Jens Petersen <petersen@redhat.com> - 0.11.2-1
|
* Thu Jan 20 2011 Jens Petersen <petersen@redhat.com> - 0.11.2-1
|
||||||
- put docdir (license) also into shared lib subpackage
|
- put docdir (license) also into shared lib subpackage
|
||||||
- add ghc_binlib_package option to exclude package from ghc_packages_list
|
- add ghc_binlib_package option to exclude package from ghc_packages_list
|
||||||
|
Loading…
Reference in New Issue
Block a user