rpms/ghc/devel ghc-rpm-macros.ghc,1.2,1.3 ghc.spec,1.50,1.51
Bryan O'Sullivan
bos at fedoraproject.org
Tue Oct 14 21:33:06 UTC 2008
- Previous message (by thread): rpms/bluez/devel 0001-Update-udev-rules-for-udev-098-and-newer.patch, NONE, 1.1 0002-Better-debug-when-failing-to-probe-a-device.patch, NONE, 1.1 bluez.spec, 1.17, 1.18
- Next message (by thread): rpms/xorg-x11-drv-i810/devel intel-2.4.2-macmini-fix.patch, NONE, 1.1 xorg-x11-drv-i810.spec, 1.111, 1.112
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: bos
Update of /cvs/extras/rpms/ghc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26676
Modified Files:
ghc-rpm-macros.ghc ghc.spec
Log Message:
Try to fix doc indexing
Index: ghc-rpm-macros.ghc
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/ghc-rpm-macros.ghc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ghc-rpm-macros.ghc 14 Oct 2008 18:55:26 -0000 1.2
+++ ghc-rpm-macros.ghc 14 Oct 2008 21:32:36 -0000 1.3
@@ -20,6 +20,9 @@
%cabal copy --destdir=${RPM_BUILD_ROOT} \
%{nil}
+%ghc_cabal_configure \
+%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/ghc/libraries/%{name} --libsubdir='$compiler/$pkgid'
+
%ghc_gen_filelists() \
rm -f %1.files %1-prof.files \
echo '%defattr(-,root,root,-)' > %1-prof.files \
@@ -56,8 +59,8 @@
%{nil}
%ghc_haddock_reindex \
-if [ -f /usr/bin/haddock -a -d /usr/share/doc/ghc/libraries ]; then \
-cd /usr/share/doc/ghc/libraries && \
+if [ -f %{_bindir}/haddock -a -d %{_docdir}/ghc/libraries ]; then \
+cd %{_docdir}/ghc/libraries && \
haddock --gen-index --gen-contents -o . -t 'Haskell Hierarchical Libraries' \
$(find . \( \( -path ./ghc -o -path ./ghc-prim \) -prune \) -o \( -name '*.haddock' -print \) \
| sed 's!.*/\([^/]*\).haddock!--read-interface=\1,\0!'); \
Index: ghc.spec
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/ghc.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- ghc.spec 14 Oct 2008 18:55:27 -0000 1.50
+++ ghc.spec 14 Oct 2008 21:32:36 -0000 1.51
@@ -16,7 +16,7 @@
Name: ghc
Version: 6.10.0.20081007
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Glasgow Haskell Compilation system
# See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239713
ExcludeArch: alpha ppc64
@@ -170,7 +170,10 @@
%post doc
-%ghc_haddock_reindex
+cd %{_docdir}/ghc/libraries && \
+haddock --gen-index --gen-contents -o . -t 'Haskell Hierarchical Libraries' \
+$(find . \( \( -path ./ghc -o -path ./ghc-prim \) -prune \) -o \( -name '*.haddock' -print \) \
+| sed 's!.*/\([^/]*\).haddock!--read-interface=\1,\0!')
%preun
@@ -211,7 +214,10 @@
%changelog
-* Sun Oct 14 2008 Bryan O'Sullivan <bos at serpentine.com> - 6.10.0.20081007-4
+* Tue Oct 14 2008 Bryan O'Sullivan <bos at serpentine.com> - 6.10.0.20081007-5
+- Don't use a macro to update the docs for the main doc package
+
+* Tue Oct 14 2008 Bryan O'Sullivan <bos at serpentine.com> - 6.10.0.20081007-4
- Add ghc_haddock_reindex macro
- Generate haddock index after installing ghc-doc package
- Previous message (by thread): rpms/bluez/devel 0001-Update-udev-rules-for-udev-098-and-newer.patch, NONE, 1.1 0002-Better-debug-when-failing-to-probe-a-device.patch, NONE, 1.1 bluez.spec, 1.17, 1.18
- Next message (by thread): rpms/xorg-x11-drv-i810/devel intel-2.4.2-macmini-fix.patch, NONE, 1.1 xorg-x11-drv-i810.spec, 1.111, 1.112
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list