Commit Graph

15 Commits

Author SHA1 Message Date
Jens Petersen
43b24a206d - define ghc_version in macros.ghc in place of ghcrequires
- drop ghc-requires script for now
2009-04-24 07:28:14 +00:00
Jens Petersen
7b1f4da984 - add ghc-requires rpm script to generate ghc version dependencies (thanks
to Till Maas)
- update macros.ghc:
- add %%ghcrequires to call above script
- pkg_libdir and pkg_docdir no longer to appear in packages and replaced by
    ghcpkgdir and ghcdocdir inside macros.ghc
- make filelist also for docs
2009-04-19 04:28:22 +00:00
Jens Petersen
a5fa326f81 - drop ghc_archs since it breaks koji
- fix missing -devel in ghc_gen_filelists
- change from ExclusiveArch to ExcludeArch ppc64 since alpha was
    bootstrapped by oliver
2009-02-27 01:05:09 +00:00
Jens Petersen
7debd90bb1 - use %%ix86 for change from i386 to i586 in rawhide
- add ghc_archs macro in macros.ghc for other packages
- obsolete haddock09
- use %%global instead of %%define
- use bcond for doc and prof
- rename ghc_gen_filelists lib filelist to -devel.files
--------------------------------------------------------------------
2009-02-25 06:51:56 +00:00
Jens Petersen
0eea3c51b5 - require and buildrequire libedit-devel > 2.11-2
- move top doc dirs to main package for better sharing
- move gen_contents_index and ghost index files to main package
- protect ghc_register_pkg and ghc_unregister_pkg
2009-02-10 08:15:40 +00:00
Jens Petersen
ad8913e5ff - update macros.ghc to latest proposed revised packaging guidelines:
- use runghc
- drop trivial cabal_build and cabal_haddock macros
- ghc_register_pkg and ghc_unregister_pkg replace ghc_preinst_script,
    ghc_postinst_script, ghc_preun_script, and ghc_postun_script
- lib templates' prof subpackage requires main library again
- make cabal2spec work on .cabal files too, and read and check name and
    version directly from .cabal file
- ghc-prof does not need to own libraries/ dirs owned by main package
2008-12-01 05:46:36 +00:00
Jens Petersen
0682b80a1d - add cabal2spec and cabal-lib-template.spec for easy Cabal library
packaging
- simplify script macros: make ghc_preinst_script and ghc_postun_script
    no-ops and ghc_preun_script only unregister for uninstall
2008-11-25 02:52:10 +00:00
Jens Petersen
49ce8a29d1 make ghc_reindex_haddock safer when ghc-doc not installed 2008-10-23 08:31:20 +00:00
Jens Petersen
ab507b7b80 - cabal_configure does not need redundant --haddockdir
- actually ghc-pkg no longer seems to create package.conf.old backups
- include LICENSE in doc
2008-10-23 06:40:25 +00:00
Jens Petersen
c7ae1a2bd5 - use gen_contents_index to re-index haddock
- add %%pkg_docdir to cabal_configure
- requires(post) ghc for haddock for doc
- improve doc file lists
- no longer need to create ghost package.conf.old
- remove or rename alternatives files more consistently
2008-10-23 03:00:41 +00:00
Bryan O'Sullivan
4b8e6f699e Remove accidental bogosity experiment 2008-10-15 03:52:24 +00:00
Bryan O'Sullivan
cb5a89f23c Update macros to put haddock bits in the right place 2008-10-15 03:42:23 +00:00
Bryan O'Sullivan
8a484b3e87 Try to fix doc indexing 2008-10-14 21:32:36 +00:00
Bryan O'Sullivan
354d10e225 Generate haddocks after installing ghc-doc 2008-10-14 18:55:27 +00:00
Jens Petersen
d85f6b0a84 - add macros.ghc for new Haskell Packaging Guidelines (#460304) 2008-09-17 06:00:51 +00:00