- update to 6.10.3

- macros.ghc moved to ghc-rpm-macros package
- fix handling of hscolor files in filelist generation
- give up ppc unregisterized build since it failed
This commit is contained in:
Jens Petersen 2009-05-13 07:17:04 +00:00
parent 773bb46c70
commit 4d88e55f20
3 changed files with 11 additions and 22 deletions

View File

@ -1,2 +1,2 @@
ghc-6.10.2-src.tar.bz2
ghc-6.10.2-src-extralibs.tar.bz2
ghc-6.10.3-src.tar.bz2
ghc-6.10.3-src-extralibs.tar.bz2

View File

@ -21,8 +21,8 @@
%global package_debugging 0
Name: ghc
Version: 6.10.2
Release: 5%{?dist}
Version: 6.10.3
Release: 1%{?dist}
Summary: Glasgow Haskell Compilation system
# fedora ghc has only been bootstrapped on the following archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha
@ -30,8 +30,6 @@ License: BSD
Group: Development/Languages
Source0: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2
Source1: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src-extralibs.tar.bz2
# /etc/rpm/macros.ghc
Source2: ghc-rpm-macros.ghc
URL: http://haskell.org/ghc/
# libedit-devel > 2.11-2 correctly requires ncurses-devel
Requires: gcc, gmp-devel, libedit-devel > 2.11-2
@ -119,12 +117,6 @@ popd
exit 0
%endif
%ifarch ppc
echo "GhcUnregisterised=YES" >> mk/build.mk
echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
echo "SplitObjs=NO" >> mk/build.mk
%endif
%if %{without prof}
echo "GhcLibWays=%{?with_shared:dyn}" >> mk/build.mk
%endif
@ -161,15 +153,11 @@ mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/ld.so.conf.d
echo %{_libdir}/%{name}-%{version} > ${RPM_BUILD_ROOT}/%{_sysconfdir}/ld.so.conf.d/ghc-%{_arch}.conf
%endif
# install rpm macros
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/rpm
cp -p %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/rpm/macros.ghc
SRC_TOP=$PWD
rm -f rpm-*.files
( cd $RPM_BUILD_ROOT
find .%{_libdir}/%{name}-%{version} \( -type d -fprintf $SRC_TOP/rpm-dir.files "%%%%dir %%p\n" \) -o \( -type f \( -name '*.p_hi' -o -name '*_p.a' \) -fprint $SRC_TOP/rpm-prof.files \) -o \( -not -name 'package.conf*' -fprint $SRC_TOP/rpm-lib.files \)
find .%{_docdir}/%{name}/* -type d ! -name libraries %{?with_hscolour:! -name src} > $SRC_TOP/rpm-doc-dir.files
find .%{_docdir}/%{name}/* -type d ! -name libraries ! -name src > $SRC_TOP/rpm-doc-dir.files
)
# make paths absolute (filter "./usr" to "/usr")
@ -249,7 +237,6 @@ fi
%if %{with doc}
%{_mandir}/man1/ghc.*
%endif
%{_sysconfdir}/rpm/macros.ghc
%config(noreplace) %{_libdir}/ghc-%{version}/package.conf
%files doc -f rpm-doc-dir.files
@ -283,8 +270,10 @@ fi
%endif
%changelog
* Sat May 2 2009 Jens Petersen <petersen@redhat.com> - 6.10.2-5
- try unregisterised ppc to see if that stops the segfaulting with runghc
* Wed May 13 2009 Jens Petersen <petersen@redhat.com> - 6.10.3-1
- update to 6.10.3
- macros.ghc moved to ghc-rpm-macros package
- fix handling of hscolor files in filelist generation
* Tue Apr 28 2009 Jens Petersen <petersen@redhat.com> - 6.10.2-4
- add experimental bcond hscolour

View File

@ -1,2 +1,2 @@
243d5857e5aa5f2f86e5e4c4437973fb ghc-6.10.2-src.tar.bz2
9415604386ca69ebe15f1054653aefaf ghc-6.10.2-src-extralibs.tar.bz2
3de6a6d434c2b43def10c4cc613b265e ghc-6.10.3-src.tar.bz2
d0fe09625556ea274df11d601c1b2a15 ghc-6.10.3-src-extralibs.tar.bz2