projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-11-06 12:49:47 by simonpj]
[ghc-hetmet.git]
/
ghc
/
ghc.spec.in
diff --git
a/ghc/ghc.spec.in
b/ghc/ghc.spec.in
index
974712d
..
482dc94
100644
(file)
--- a/
ghc/ghc.spec.in
+++ b/
ghc/ghc.spec.in
@@
-1,4
+1,4
@@
-# RPM spec file for GHC
+# RPM spec file for GHC -*-rpm-spec-*-
#
# Copyright [1998..2002] The GHC Team
#
#
# Copyright [1998..2002] The GHC Team
#
@@
-26,7
+26,7
@@
URL: http://haskell.org/ghc/
BuildRoot: /var/tmp/ghc-%{version}-%{release}-root
Requires: gmp-devel
Provides: haskell
BuildRoot: /var/tmp/ghc-%{version}-%{release}-root
Requires: gmp-devel
Provides: haskell
-BuildRequires: happy >= 1.13, ghc >= 4.08, docbook-utils
+BuildRequires: happy >= 1.13, ghc >= 4.08, haddock, docbook-utils
%description
Haskell is the standard purely functional programming language; the
%description
Haskell is the standard purely functional programming language; the
@@
-130,22
+130,9
@@
END
%build
./configure --prefix=%{prefix}
make boot
%build
./configure --prefix=%{prefix}
make boot
-make -C glafp-utils sgmlverb
-make all
-make -C docs ps html
-make -C ghc/docs ps html
-
+make all ps html
+
%install
%install
-# compress the non-html docs
-#
-for j in docs ghc/docs; do
- dir=`pwd`
- cd $j
- for i in ps dvi sgml verb idx; do
- find . -name '*.'$i -exec gzip -9 '{}' ';' -print
- done
- cd $dir
-done
rm -rf $RPM_BUILD_ROOT
# FIXME: this is necessary due to brokenness in ghc-5.00/mk/target.mk
rm -rf $RPM_BUILD_ROOT
# FIXME: this is necessary due to brokenness in ghc-5.00/mk/target.mk
@@
-153,6
+140,11
@@
make prefix=$RPM_BUILD_ROOT%{prefix} install-dirs
make prefix=$RPM_BUILD_ROOT%{prefix} install
make prefix=$RPM_BUILD_ROOT%{prefix} install
+mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version}
+cp ghc/ANNOUNCE ghc/README $RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version}
+
+make prefix=$RPM_BUILD_ROOT%{prefix} datadir=$RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version} SGMLDocWays="html ps" install-docs
+
# generate the file list for lib/ _excluding_ all files needed for profiling
# only
#
# generate the file list for lib/ _excluding_ all files needed for profiling
# only
#
@@
-169,19
+161,23
@@
cd $RPM_BUILD_ROOT
libdir=`echo %{prefix}/lib | sed 's|^/||'`
find $libdir ! -type d ! -name '*.p_hi' ! -name '*_p.a' -print | sed 's|^|/|'\
>$dir/rpm-noprof-lib-files
libdir=`echo %{prefix}/lib | sed 's|^/||'`
find $libdir ! -type d ! -name '*.p_hi' ! -name '*_p.a' -print | sed 's|^|/|'\
>$dir/rpm-noprof-lib-files
+find $libdir ! -type d \( -name '*.p_hi' -or -name '*_p.a' \) -print | sed 's|^|/|'\
+ >$dir/rpm-prof-lib-files
cd $dir
%clean
rm -rf $RPM_BUILD_ROOT
%files -f rpm-noprof-lib-files
cd $dir
%clean
rm -rf $RPM_BUILD_ROOT
%files -f rpm-noprof-lib-files
-%doc ghc/ANNOUNCE ghc/README
+%defattr(-,root,root)
+%doc %{prefix}/share/doc/ghc-%{version}/ANNOUNCE
+%doc %{prefix}/share/doc/ghc-%{version}/README
%{prefix}/bin/*
%{prefix}/bin/*
-%files prof
-%{prefix}/lib/ghc-%{version}/imports/*/*.p_hi
-%{prefix}/lib/ghc-%{version}/libHS*_p.a
+%files prof -f rpm-prof-lib-files
+%defattr(-,root,root)
%files doc
%files doc
-%doc docs/
-%doc ghc/docs/
+%defattr(-,root,root)
+%doc %{prefix}/share/doc/ghc-%{version}/*.ps
+%doc %{prefix}/share/doc/ghc-%{version}/html