rpms/ghc/devel ghc-6.8.3-libraries-config.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 ghc.spec, 1.36, 1.37 sources, 1.14, 1.15

Bryan O'Sullivan (bos) fedora-extras-commits at redhat.com
Wed Jun 18 16:45:26 UTC 2008


Author: bos

Update of /cvs/extras/rpms/ghc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23309

Modified Files:
	.cvsignore ghc.spec sources 
Added Files:
	ghc-6.8.3-libraries-config.patch 
Log Message:
First cut at ghc 6.8.3 spec file

ghc-6.8.3-libraries-config.patch:

--- NEW FILE ghc-6.8.3-libraries-config.patch ---
--- ghc-6.8.3/libraries/Makefile~	2008-06-17 23:10:28.000000000 -0700
+++ ghc-6.8.3/libraries/Makefile	2008-06-17 23:21:21.000000000 -0700
@@ -256,6 +256,9 @@
 	           --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace \
 	           --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
 	           --with-ld=$(LD) \
+	           --with-alex=$(ALEX) \
+	           --with-haddock=$(HADDOCK) \
+	           --with-happy=$(HAPPY) \
 	           --haddock-options="--use-contents=../index.html \
 	                           --use-index=../doc-index.html" \
 	           $(FLAGGED_CONFIGURE_ARGS) \


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/.cvsignore,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- .cvsignore	28 May 2008 18:25:23 -0000	1.12
+++ .cvsignore	18 Jun 2008 16:44:34 -0000	1.13
@@ -1,2 +1,2 @@
-ghc-6.8.2.20080527-src-extralibs.tar.bz2
-ghc-6.8.2.20080527-src.tar.bz2
+ghc-6.8.3-src-extralibs.tar.bz2
+ghc-6.8.3-src.tar.bz2


Index: ghc.spec
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/ghc.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- ghc.spec	8 Apr 2008 06:46:15 -0000	1.36
+++ ghc.spec	18 Jun 2008 16:44:34 -0000	1.37
@@ -1,4 +1,4 @@
-%define ghcver ghc682
+%define ghcver ghc683
 
 # speed up test builds by not building profiled libraries
 %define build_prof 1
@@ -17,15 +17,16 @@
 %define package_debugging 0
 
 Name:		ghc
-Version:	6.8.2
-Release:	10%{?dist}
+Version:	6.8.3
+Release:	1%{?dist}
 Summary:	Glasgow Haskell Compilation system
 # See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239713
 ExcludeArch:	alpha ppc64
 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
+Source0:	http://www.haskell.org/ghc/dist/stable/dist/ghc-%{version}-src.tar.bz2
+Source1:	http://www.haskell.org/ghc/dist/stable/dist/ghc-%{version}-src-extralibs.tar.bz2
+Patch0:		ghc-6.8.3-libraries-config.patch
 URL:		http://haskell.org/ghc/
 Requires:	%{ghcver} = %{version}-%{release}, chkconfig
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -35,8 +36,8 @@
 #BuildRequires:  libX11-devel, libXt-devel
 BuildRequires:  freeglut-devel, openal-devel
 %if %{build_doc}
-# haddock generates docs in libraries
-BuildRequires: libxslt, docbook-style-xsl, haddock >= 0.8
+# haddock generates docs in libraries, but haddock 2.0 is not compatible
+BuildRequires: libxslt, docbook-style-xsl, haddock09
 %endif
 
 %description
@@ -96,6 +97,8 @@
 %prep
 %setup -q -n %{name}-%{version} -b1
 
+%patch0 -p1 -b .hdkl
+
 %build
 %if %{package_debugging}
 cd ..
@@ -110,6 +113,7 @@
 echo "GhcRTSWays=thr debug" >> mk/build.mk
 %endif
 
+HaddockCmd=%{_bindir}/haddock-0.9 \
 ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
   --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \
   --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} \
@@ -118,16 +122,16 @@
 
 cat <<HADDOCK_PATH_HACK >> mk/build.mk
 docdir  := %{_docdir}/%{name}-%{version}
-htmldir := $(docdir)
-dvidir  := $(docdir)
-pdfdir  := $(docdir)
-psdir   := $(docdir)
+htmldir := \$(docdir)
+dvidir  := \$(docdir)
+pdfdir  := \$(docdir)
+psdir   := \$(docdir)
 HADDOCK_PATH_HACK
 
 # drop truncated copy of header (#222865)
 rm libraries/network/include/Typeable.h
 
-make %{_smp_mflags} all
+make %{_smp_mflags} all libexecdir=%{_libexecdir}
 %if %{build_doc}
 make %{_smp_mflags} html
 make %{_smp_mflags} -C libraries HADDOCK_DOCS=YES
@@ -137,7 +141,8 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make DESTDIR=${RPM_BUILD_ROOT} libdir=%{_libdir}/%{name}-%{version} install
+make DESTDIR=${RPM_BUILD_ROOT} libdir=%{_libdir}/%{name}-%{version} \
+  libexecdir=%{_libexecdir}/%{name}-%{version} install
 
 %if %{build_doc}
 make DESTDIR=${RPM_BUILD_ROOT} XMLDocWays="html" HADDOCK_DOCS=YES install-docs
@@ -151,7 +156,7 @@
 SRC_TOP=$PWD
 rm -f rpm-*-filelist 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 .%{_libdir}/%{name}-%{version} .%{_libexecdir}/%{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 \)
 )
 
 # make paths absolute (filter "./usr" to "/usr")
@@ -170,10 +175,7 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %post
-/usr/bin/chcon -t unconfined_execmem_exec_t %{_bindir}/{hasktags,runghc,runhaskell} >/dev/null 2>&1 || :
-
 # Alas, GHC, Hugs, and nhc all come with different set of tools in
 # addition to a runFOO:
 #
@@ -191,10 +193,6 @@
 update-alternatives --install %{_bindir}/hsc2hs hsc2hs \
   %{_bindir}/hsc2hs-ghc 500
 
-%post -n %{ghcver}
-/usr/bin/chcon -t unconfined_execmem_exec_t %{_libdir}/ghc-%{version}/{ghc-%{version},ghc-pkg.bin,hsc2hs-bin} >/dev/null 2>&1 || :
-
-
 %preun
 if test "$1" = 0; then
   update-alternatives --remove runhaskell %{_bindir}/runghc


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/sources,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- sources	28 May 2008 18:25:23 -0000	1.14
+++ sources	18 Jun 2008 16:44:34 -0000	1.15
@@ -1,2 +1,2 @@
-5b4fd263f4ae3c16ee97c5587f0f108e  ghc-6.8.2.20080527-src-extralibs.tar.bz2
-fc57e6e290d0d6531a5e081b164fed78  ghc-6.8.2.20080527-src.tar.bz2
+5ac72f5d5433151cf6b718dc6601dc41  ghc-6.8.3-src-extralibs.tar.bz2
+dfa31028b4d06d1d226f55fe3a2ab7b3  ghc-6.8.3-src.tar.bz2




More information about the fedora-extras-commits mailing list