2c0b10d
%global debug_package %{nil}
2c0b10d
232d016
%global macros_file %{_sysconfdir}/rpm/macros.ghc
4b65f2f
b95424a
# uncomment to bootstrap without hscolour
4add392
#%%global without_hscolour 1
b95424a
e6a0b6c
Name:           ghc-rpm-macros
11c364e
Version:        0.98.1
6153b67
Release:        2%{?dist}
e6a0b6c
Summary:        Macros for building packages for GHC
Yaakov Meir Nemoy b640c1a
e6a0b6c
Group:          Development/Libraries
e6a0b6c
License:        GPLv3
e6a0b6c
URL:            https://fedoraproject.org/wiki/Haskell_SIG
Yaakov Meir Nemoy b640c1a
ae161ab
# This is a Fedora maintained package, originally made for
ae161ab
# the distribution.  Hence the source is currently only available
ae161ab
# from this package.  But it could be hosted on fedorahosted.org
ae161ab
# for example if other rpm distros would prefer that.
e6a0b6c
Source0:        ghc-rpm-macros.ghc
e6a0b6c
Source1:        COPYING
e6a0b6c
Source2:        AUTHORS
e6a0b6c
Source3:        ghc-deps.sh
7cdea6f
Source4:        cabal-tweak-dep-ver
6af89aa
Source5:        cabal-tweak-flag
283779d
Requires:       redhat-rpm-config
b95424a
%if %{undefined without_hscolour}
bda56fd
BuildRequires:  redhat-rpm-config
b95424a
ExclusiveArch:  %{ghc_arches}
b95424a
Requires:       hscolour
b95424a
%endif
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
%description
Yaakov Meir Nemoy b640c1a
A set of macros for building GHC packages following the Haskell Guidelines
4b65f2f
of the Fedora Haskell SIG.  ghc needs to be installed in order to make use of
4b65f2f
these macros.
Yaakov Meir Nemoy b640c1a
e6a0b6c
Yaakov Meir Nemoy b640c1a
%prep
Yaakov Meir Nemoy b640c1a
%setup -c -T
Yaakov Meir Nemoy b640c1a
cp %{SOURCE1} %{SOURCE2} .
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
%build
Yaakov Meir Nemoy b640c1a
echo no build stage needed
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
%install
ed9a00f
install -p -D -m 0644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{macros_file}
4b65f2f
ed9a00f
install -p -D -m 0755 %{SOURCE3} %{buildroot}/%{_prefix}/lib/rpm/ghc-deps.sh
Yaakov Meir Nemoy b640c1a
7cdea6f
install -p -D -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/cabal-tweak-dep-ver
6af89aa
install -p -D -m 0755 %{SOURCE5} %{buildroot}/%{_bindir}/cabal-tweak-flag
7cdea6f
2c0b10d
# this is why this package is now arch-dependent:
2c0b10d
# turn off shared libs and dynamic linking on secondary archs
2c0b10d
%ifnarch %{ix86} x86_64
4b65f2f
cat >> %{buildroot}/%{macros_file} <
2c0b10d
b2d74ba
# shared libraries are only supported on primary intel archs
b2d74ba
%%ghc_without_dynamic 1
b2d74ba
%%ghc_without_shared 1
2c0b10d
EOF
2c0b10d
%endif
2c0b10d
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
%files
Yaakov Meir Nemoy b640c1a
%doc COPYING AUTHORS
4b65f2f
%config(noreplace) %{macros_file}
876ea62
%{_prefix}/lib/rpm/ghc-deps.sh
7cdea6f
%{_bindir}/cabal-tweak-dep-ver
6af89aa
%{_bindir}/cabal-tweak-flag
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
%changelog
6153b67
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.1-2
6153b67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6153b67
11c364e
* Tue Jan 22 2013 Jens Petersen <petersen@redhat.com> - 0.98.1-1
11c364e
- simplify cabal-tweak-flag script to take one flag value
11c364e
436bfaf
* Mon Jan 21 2013 Jens Petersen <petersen@redhat.com> - 0.98-1
436bfaf
- new ghc_fix_dynamic_rpath macro for cleaning up package executables
436bfaf
  linked against their own libraries
436bfaf
59daf96
* Fri Jan 18 2013 Jens Petersen <petersen@redhat.com> - 0.97.6-1
59daf96
- be more careful about library pkgdir ownership (#893777)
59daf96
6af89aa
* Mon Dec  3 2012 Jens Petersen <petersen@redhat.com> - 0.97.5-1
6af89aa
- add cabal-tweak-flag script for toggling flag default
6af89aa
4add392
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.97.4-1
4add392
- enable hscolour again
4add392
548aff6
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.97.3.1-1
548aff6
- bootstrap hscolour
548aff6
bda56fd
* Thu Oct 25 2012 Jens Petersen <petersen@redhat.com> - 0.97.3-1
bda56fd
- BR redhat-rpm-config instead of ghc-rpm-macros
bda56fd
- no longer set without_hscolour in macros.ghc for bootstrapping
bda56fd
20b1088
* Tue Oct  9 2012 Jens Petersen <petersen@redhat.com> - 0.97.2-1
20b1088
- "cabal haddock" needs --html option with --hoogle to output html
20b1088
5d116cb
* Thu Sep 20 2012 Jens Petersen <petersen@redhat.com> - 0.97.1-2
5d116cb
- no need to BR hscolour
5d116cb
a233764
* Wed Sep 19 2012 Jens Petersen <petersen@redhat.com> - 0.97.1-1
a233764
- fix broken duplicate hash output for haskell-platform binaries buildhack
a233764
  when haskell-platform locally installed
a233764
b95424a
* Sat Sep  8 2012 Jens Petersen <petersen@redhat.com> - 0.97-1
b95424a
- ghc-rpm-macros now requires hscolour so packages no longer need to BR it
b95424a
- this can be disabled for bootstrapping by setting without_hscolour
b95424a
befa5e1
* Fri Aug 24 2012 Jens Petersen <petersen@redhat.com> - 0.96-1
befa5e1
- make haddock build hoogle files
befa5e1
- Fedora ghc-7.4.2 Cabal will not build ghci lib files by default
befa5e1
1d2eebf
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95.6-2
1d2eebf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1d2eebf
ac776c3
* Mon Jun 25 2012 Jens Petersen <petersen@redhat.com> - 0.95.6-1
ac776c3
- provide doc from devel a little longer to silence rpmlint
ac776c3
20cbe43
* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.5.1-1
20cbe43
- cabal-tweak-dep-ver: be careful only to match complete dep name and
20cbe43
  do not match beyond ","
20cbe43
59008ed
* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.5-1
59008ed
- some cabal-tweak-dep-ver improvements:
59008ed
- show file name when no match
59008ed
- backslash quote . and * in the match string
59008ed
- create a backup file if none exists
1cb0fba
8a8de3a
* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.4-1
7cdea6f
- new cabal-tweak-dep-ver script to tweak depends version bounds in .cabal
8a8de3a
8e22621
* Sat Jun  9 2012 Jens Petersen <petersen@redhat.com> - 0.95.3-1
8e22621
- ghc-dep.sh: only use buildroot package.conf.d if it exists
8e22621
1b8536a
* Fri Jun  8 2012 Jens Petersen <petersen@redhat.com> - 0.95.2-1
1b8536a
- ghc-deps.sh: look in buildroot package.conf.d for program deps
1b8536a
c013051
* Fri Jun  8 2012 Jens Petersen <petersen@redhat.com> - 0.95.1-1
c013051
- add a meta-package option to ghc_devel_package and use in ghc_devel_requires
c013051
dae8fa2
* Thu Jun  7 2012 Jens Petersen <petersen@redhat.com> - 0.95-1
dae8fa2
- let ghc_bin_install take an arg to disable implicit stripping for subpackages
dae8fa2
fa247e6
* Thu Jun  7 2012 Jens Petersen <petersen@redhat.com> - 0.94-1
fa247e6
- allow ghc_description, ghc_devel_description, ghc_devel_post_postun
fa247e6
  to take args
fa247e6
bbc5f8f
* Thu Jun  7 2012 Jens Petersen <petersen@redhat.com> - 0.93-1
bbc5f8f
- fix doc handling of subpackages for ghc_without_shared
bbc5f8f
64b3d67
* Thu Jun  7 2012 Jens Petersen <petersen@redhat.com> - 0.92-1
64b3d67
- move --disable-library-for-ghci to ghc_lib_build
64b3d67
- revert back to fallback behaviour for common_summary and common_description
64b3d67
  since it is needed for ghc and haskell-platform subpackaging
8fc16e2
- without ghc_exclude_docdir include doc dir also for subpackages
64b3d67
5abcaac
* Tue Jun  5 2012 Jens Petersen <petersen@redhat.com> - 0.91-1
88a603f
- no longer build redundant ghci .o library files
6b6cf52
- support meta packages like haskell-platform without base lib files
6b6cf52
- make it possible not to have to use common_summary and common_description
89972ec
- rename ghc_binlib_package to ghc_lib_subpackage
5abcaac
- add ghc_lib_build_without_haddock
5abcaac
- no longer drop into package dirs when subpackaging with ghc_lib_build and
5abcaac
  ghc_lib_install
88a603f
- add shell variable cabal_configure_extra_options to cabal_configure for
88a603f
  local configuration
6b6cf52
7ffdbdc
* Mon Mar 19 2012 Jens Petersen <petersen@redhat.com> - 0.90-1
7ffdbdc
- use new rpm metadata hash format for ghc-7.4
7ffdbdc
- drop prof meta hash data
7ffdbdc
- no longer include doc files automatically by default
7ffdbdc
- no longer provide doc subpackage
7ffdbdc
- do not provide prof when without_prof set
7ffdbdc
8cf968c
* Thu Feb 23 2012 Jens Petersen <petersen@redhat.com> - 0.15.5-1
8cf968c
- fix handling of devel docdir for non-shared builds
8cf968c
- simplify ghc_bootstrap
8cf968c
ab41e2f
* Thu Jan 19 2012 Jens Petersen <petersen@redhat.com> - 0.15.4-1
ab41e2f
- allow dynamic linking of Setup with ghc_without_shared set
ab41e2f
fe1a0f2
* Fri Jan  6 2012 Jens Petersen <petersen@redhat.com> - 0.15.3-1
488948b
- new ghc_add_basepkg_file to add a path to base lib package filelist
fe1a0f2
2089fc7
* Wed Dec 28 2011 Jens Petersen <petersen@redhat.com> - 0.15.2-1
2089fc7
- add ghc_devel_post_postun to help koji/mock with new macros
2089fc7
19872dc
* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15.1-1
19872dc
- add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description
19872dc
19872dc
* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15-1
683aba9
- new ghc_files wrapper macro for files which takes base doc files as args
683aba9
  and uses new ghc_shared_files and ghc_devel_files macros
227b33e
- when building for non-shared archs move installed docfiles to devel docdir
683aba9
72e5db3
* Fri Dec  2 2011 Jens Petersen <petersen@redhat.com> - 0.14.3-1
72e5db3
- do not use ghc user config by default when compiling Setup
72e5db3
- do not setup hscolour if without_hscolour defined
72e5db3
d32b457
* Thu Nov 17 2011 Jens Petersen <petersen@redhat.com> - 0.14.2-1
d32b457
- test for HsColour directly when running "cabal haddock" instead of
72e5db3
  check hscolour is available (reported by Giam Teck Choon, #753833)
d32b457
b1204c4
* Sat Nov 12 2011 Jens Petersen <petersen@redhat.com> - 0.14.1-1
b1204c4
- fix double listing of docdir in base lib package
b1204c4
7229f10
* Tue Nov  1 2011 Jens Petersen <petersen@redhat.com> - 0.14-1
7229f10
- replace devel ghc requires with ghc-compiler
fb65ca3
- disable testsuite in ghc_bootstrap
7229f10
0b163b3
* Mon Oct 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.13-1
0b163b3
- add ghc_bootstrapping to ghc_bootstrap for packages other than ghc
0b163b3
- make ghc-deps.sh also work when bootstrapping a new ghc version
0b163b3
bd7f38e
* Sat Oct 15 2011 Jens Petersen <petersen@redhat.com> - 0.13.12-1
bd7f38e
- add ghc_exclude_docdir to exclude docdir from filelists
bd7f38e
fb19847
* Fri Sep 30 2011 Jens Petersen <petersen@redhat.com> - 0.13.11-1
fb19847
- fix devel subpackage's prof and doc obsoletes and provides versions
fb19847
  for multiple lib packages like ghc (reported by Henrik Nordström)
fb19847
5995766
* Tue Sep 13 2011 Jens Petersen <petersen@redhat.com> - 0.13.10-1
5995766
- do not setup ghc-deps.sh when ghc_bootstrapping
5995766
- add ghc_test build config
5995766
dfb8f01
* Wed Aug  3 2011 Jens Petersen <petersen@redhat.com> - 0.13.9-1
dfb8f01
- drop without_testsuite from ghc_bootstrap since it breaks koji
dfb8f01
f0b5c1b
* Fri Jul  1 2011 Jens Petersen <petersen@redhat.com> - 0.13.8-1
f0b5c1b
- drop redundant defattr from filelists
f0b5c1b
- move dependency generator setup from ghc_package_devel to ghc_lib_install
f0b5c1b
  in line with ghc_bin_install
f0b5c1b
283779d
* Mon Jun 27 2011 Jens Petersen <petersen@redhat.com> - 0.13.7-1
283779d
- add requires for redhat-rpm-config for ghc_arches
283779d
- drop ghc_bootstrapping from ghc_bootstrap: doesn't work for koji
283779d
4773ef1
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.6-1
4773ef1
- also set ghc_without_dynamic for ghc_bootstrap
4773ef1
- drop without_hscolour from ghc_bootstrap: doesn't work for koji
4773ef1
e6a0b6c
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.5-1
e6a0b6c
- ghc_bootstrap is now a macro which sets ghc_bootstrapping,
e6a0b6c
  ghc_without_shared, without_prof, without_haddock, without_hscolour,
e6a0b6c
  without_manual, without_testsuite
e6a0b6c
- tweaks to ghc_check_bootstrap
e6a0b6c
ed9a00f
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.4-1
ed9a00f
- add ghc_check_bootstrap
ed9a00f
232d016
* Thu Jun  2 2011 Jens Petersen <petersen@redhat.com> - 0.13.3-1
232d016
- rename macros.ghc-pkg back to macros.ghc
232d016
- move the devel summary prefix back to a suffix
232d016
4b65f2f
* Sat May 28 2011 Jens Petersen <petersen@redhat.com> - 0.13.2-1
4b65f2f
- macros need to live in /etc/rpm
4b65f2f
- use macro_file for macros.ghc filepath
4b65f2f
da128f9
* Sat May 28 2011 Jens Petersen <petersen@redhat.com> - 0.13.1-1
da128f9
- move macros.ghc to /usr/lib/rpm to avoid conflict with redhat-rpm-config
da128f9
1bc67af
* Wed May 11 2011 Jens Petersen <petersen@redhat.com> - 0.13-1
1bc67af
- merge prof subpackages into devel to simplify packaging
1bc67af
eab5583
* Mon May  9 2011 Jens Petersen <petersen@redhat.com> - 0.12.1-1
eab5583
- include ghc_pkg_c_deps even when -c option used
eab5583
8af86b7
* Sat May  7 2011 Jens Petersen <petersen@redhat.com> - 0.12.0-1
8af86b7
- drop ghc_pkg_deps from ghc_package_devel and ghc_package_prof since
8af86b7
  ghc-deps.sh generates better inter-package dependencies already
8af86b7
- condition --htmldir on pkg_name
8af86b7
cbf3d70
* Fri Apr  1 2011 Jens Petersen <petersen@redhat.com> - 0.11.14-1
cbf3d70
- provides ghc-*-doc still needed for current lib templates
cbf3d70
cd30bb3
* Mon Mar 28 2011 Jens Petersen <petersen@redhat.com> - 0.11.13-1
cd30bb3
- ghc-deps.sh: check PKGBASEDIR exists to avoid warning for bin package
cd30bb3
- abort cabal_configure if ghc is not self-bootstrapped
cbf3d70
- make ghc_reindex_haddock a safe no-op
cd30bb3
- no longer provide ghc-*-doc
cd30bb3
- no longer run ghc_reindex_haddock in ghc-*-devel scripts
cd30bb3
82b34c5
* Thu Mar 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.12-1
82b34c5
- add ghc_pkg_obsoletes to binlib base lib package too
82b34c5
30ceea2
* Wed Mar  9 2011 Jens Petersen <petersen@redhat.com> - 0.11.11-1
30ceea2
- add docdir when subpackaging packages too
30ceea2
2c0b10d
* Sun Feb 13 2011 Jens Petersen <petersen@redhat.com> - 0.11.10-1
2c0b10d
- this package is now arch-dependent
2c0b10d
- rename without_shared to ghc_without_shared and without_dynamic
2c0b10d
  to ghc_without_dynamic so that they can be globally defined for
2c0b10d
  secondary archs without shared libs
2c0b10d
- use %%undefined macro
2c0b10d
- disable debug_package in ghc_bin_build and ghc_lib_build
2c0b10d
- set ghc_without_shared and ghc_without_dynamic on secondary
cd30bb3
  (ie non main intel) archs
2c0b10d
- disable debuginfo for self
2c0b10d
2600540
* Fri Feb 11 2011 Jens Petersen <petersen@redhat.com> - 0.11.9-1
2600540
- revert "set without_shared and without_dynamic by default on secondary archs
2600540
  in cabal_bin_build and cabal_lib_build" change, since happening for all archs
2600540
30f51fc
* Thu Feb 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.8-1
30f51fc
- only link Setup dynamically if without_shared and without_dynamic not set
30f51fc
- set without_shared and without_dynamic by default on secondary archs
30f51fc
  in cabal_bin_build and cabal_lib_build
2600540
- add cabal_configure_options to pass extra options to cabal_configure
30f51fc
1f4312a
* Thu Feb 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.7-1
1f4312a
- fix ghc-deps.sh for without_shared libraries
1f4312a
ee9ff3e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-2
ee9ff3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ee9ff3e
876ea62
* Sat Jan 29 2011 Jens Petersen <petersen@redhat.com> - 0.11.6-1
876ea62
- simplify adding shared subpackage license file
876ea62
- own ghc-deps.sh not /usr/lib/rpm
876ea62
a1abcaa
* Sun Jan 23 2011 Jens Petersen <petersen@redhat.com> - 0.11.5-1
a1abcaa
- add rpm hash requires for dynamic executables in ghc-deps.sh
a1abcaa
- compile Setup in cabal macro
a1abcaa
- use _rpmconfigdir
a1abcaa
b13abae
* Sat Jan 22 2011 Jens Petersen <petersen@redhat.com> - 0.11.4-1
b13abae
- drop deprecated ghcdocdir and ghcpkgdir
b13abae
- new ghclibdocdir
b13abae
- replace some missed RPM_BUILD_ROOT's
b13abae
- bring back ghc requires in ghc_devel_requires
b13abae
- improve prof summary and description
b13abae
- add without_prof and without_haddock option macros
b13abae
0f8bb53
* Fri Jan 21 2011 Jens Petersen <petersen@redhat.com> - 0.11.3-1
0f8bb53
- compile Setup to help speed up builds
0f8bb53
4d6720d
* Thu Jan 20 2011 Jens Petersen <petersen@redhat.com> - 0.11.2-1
4d6720d
- put docdir (license) also into shared lib subpackage
4d6720d
- add ghc_binlib_package option to exclude package from ghc_packages_list
4d6720d
- condition lib base package additional description for srpm
4d6720d
086f1bc
* Mon Jan  3 2011 Jens Petersen <petersen@redhat.com> - 0.11.1-1
086f1bc
- use buildroot instead of RPM_BUILD_ROOT
086f1bc
- rename ghcpkgbasedir to ghclibdir
086f1bc
- split "[name-version]" args into "[name] [version]" args
086f1bc
- move remaining name and version macro options (-n and -v) to args
086f1bc
- drop deprecated -o options
086f1bc
abebb6d
* Thu Dec 30 2010 Jens Petersen <petersen@redhat.com> - 0.11.0-1
c6c20a5
- add support for subpackaging ghc's libraries:
c6c20a5
- deprecate ghcpkgdir and ghcdocdir from now on
c6c20a5
- ghc_gen_filelists optional arg is now name-version
c6c20a5
- ghc_lib_build, ghc_lib_install, cabal_pkg_conf now take optional
c6c20a5
  name-version arg
c6c20a5
7d50a02
* Mon Dec 20 2010 Jens Petersen <petersen@redhat.com> - 0.10.3-1
7d50a02
- revert disabling debug_package, since with redhat-rpm-config installed
7d50a02
  the behaviour depended on the position of ghc_lib_package in the spec file
4d6720d
  (reported by narasim)
7d50a02
21e17e3
* Fri Nov 26 2010 Jens Petersen <petersen@redhat.com>
21e17e3
- drop with_devhelp since --html-help option gone from haddock-2.8.0
21e17e3
2f1663e
* Tue Nov 23 2010 Jens Petersen <petersen@redhat.com> - 0.10.2-1
2f1663e
- ignore ghc's builtin pseudo-libs
2f1663e
3ca7af7
* Tue Nov 23 2010 Jens Petersen <petersen@redhat.com> - 0.10.1-1
3ca7af7
- bring back the explicit n-v-r internal package requires for devel and prof packages
3ca7af7
7232a81
* Mon Nov 22 2010 Jens Petersen <petersen@redhat.com> - 0.10.0-1
3ca7af7
- turn on pkg hash metadata (for ghc-7 builds)
3ca7af7
- ghc-deps.sh now requires an extra buildroot/ghcpkgbasedir arg
3ca7af7
- automatic internal package deps from prof to devel to base
3ca7af7
- rename ghc_requires to ghc_devel_requires
3ca7af7
- drop ghc_doc_requires
3ca7af7
- ghc_reindex_haddock is deprecated and now a no-op
7232a81
02c69a3
* Thu Sep 30 2010 Jens Petersen <petersen@redhat.com> - 0.9.1-1
02c69a3
- fix without_shared build so it actually works
02c69a3
02c69a3
* Thu Sep 30 2010 Jens Petersen <petersen@redhat.com> - 0.9.0-1
02c69a3
- add rpm provides and requires script ghc-deps.sh for package hash metadata
742ca58
- turn on hash provides and disable debuginfo by default
742ca58
- make shared and hscolour default
02c69a3
- use without_shared and without_hscolour to disable them
742ca58
- add ghc_pkg_obsoletes for obsoleting old packages
742ca58
- use ghcpkgbasedir
742ca58
- always obsolete -doc packages, but keep -o for now for backward compatibility
742ca58
601aa5f
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.8.1-1
17c8f12
- fix ghc_strip_dynlinked when no dynlinked files
601aa5f
- devel should provide doc also when not obsoleting
601aa5f
4e21230
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-1
4e21230
- merge -doc into -devel and provide -o obsoletes doc subpackage option
4e21230
428e0de
* Mon Jun 28 2010 Jens Petersen <petersen@redhat.com> - 0.7.1-1
428e0de
- support hscolour'ing of src from haddock
428e0de
- really remove redundant summary and description option flags
428e0de
28ead10
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 0.7.0-1
28ead10
- new ghc_bin_build, ghc_bin_install, ghc_lib_build, ghc_lib_install
28ead10
85dddb6
* Thu Jun 24 2010 Jens Petersen <petersen@redhat.com> - 0.6.2-1
85dddb6
- a couple more fallback summary tweaks
85dddb6
f7eafbf
* Thu Jun 24 2010 Jens Petersen <petersen@redhat.com> - 0.6.1-1
f7eafbf
- drop the summary -s and description -d package options since rpm does not
f7eafbf
  seem to allow white\ space in macro option args anyway
f7eafbf
4e07127
* Wed Jun 23 2010 Jens Petersen <petersen@redhat.com> - 0.6.0-1
4e07127
- make ghc_strip_dynlinked conditional on no debug_package
4e07127
07f858e
* Wed Jun 23 2010 Jens Petersen <petersen@redhat.com> - 0.5.9-1
07f858e
- replace ghc_strip_shared with ghc_strip_dynlinked
07f858e
eaf2421
* Sun Jun 20 2010 Jens Petersen <petersen@redhat.com> - 0.5.8-1
eaf2421
- add ghc_strip_shared to strip shared libraries
eaf2421
a0e7ada
* Sun Jun 20 2010 Jens Petersen <petersen@redhat.com> - 0.5.7-1
a0e7ada
- add comments over macros
a0e7ada
- drop unused cabal_makefile
a0e7ada
d9a9b5f
* Mon Apr 12 2010 Jens Petersen <petersen@redhat.com> - 0.5.6-1
d9a9b5f
- drop unused ghc_pkg_ver macro
d9a9b5f
- add ghc_pkg_recache macro
d9a9b5f
4393386
* Fri Jan 15 2010 Jens Petersen <petersen@redhat.com> - 0.5.5-1
191657b
- drop optional 2nd version arg from ghcdocdir, ghcpkgdir, and
4393386
  ghc_gen_filelists: multiversion subpackages are not supported
4393386
- add ghcpkgbasedir
4393386
- bring back some shared conditions which were dropped temporarily
4393386
- test for ghcpkgdir and ghcdocdir in ghc_gen_filelists
4393386
- allow optional pkgname arg for cabal_pkg_conf
4393386
- can now package gtk2hs
4393386
a0bbde9
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.4-1
a0bbde9
- use -v in ghc_requires and ghc_prof_requires for version
a0bbde9
9d7c9ae
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.3-1
9d7c9ae
- drop "Library for" from base lib summary
9d7c9ae
5f3759a
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.2-1
5f3759a
- use -n in ghc_requires and ghc_prof_requires for when no pkg_name
5f3759a
c97ee70
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.1-1
c97ee70
- add ghcdocbasedir
c97ee70
- revert ghcdocdir to match upstream ghc
c97ee70
- ghcdocdir and ghcpkgdir now take optional name version args
c97ee70
- update ghc_gen_filelists to new optional name version args
c97ee70
- handle docdir in ghc_gen_filelists
c97ee70
- ghc_reindex_haddock uses ghcdocbasedir
c97ee70
- summary and description options to ghc_binlib_package, ghc_package_devel,
c97ee70
  ghc_package_doc, and ghc_package_prof
c97ee70
23340a3
* Sun Jan 10 2010 Jens Petersen <petersen@redhat.com> - 0.5.0-1
23340a3
- pkg_name must be set now for binlib packages too
23340a3
- new ghc_lib_package and ghc_binlib_package macros make packaging too easy
23340a3
- ghc_package_devel, ghc_package_doc, and ghc_package_prof helper macros
23340a3
- ghc_gen_filelists now defaults to ghc-%%{pkg_name}
23340a3
- add dynamic bcond to cabal_configure instead of cabal_configure_dynamic
23340a3
dffc2c5
* Thu Dec 24 2009 Jens Petersen <petersen@redhat.com> - 0.4.0-1
dffc2c5
- add cabal_configure_dynamic
dffc2c5
- add ghc_requires, ghc_doc_requires, ghc_prof_requires
dffc2c5
8b0ec9d
* Tue Dec 15 2009 Jens Petersen <petersen@redhat.com> - 0.3.1-1
8b0ec9d
- use ghc_version_override to override ghc_version
8b0ec9d
- fix pkg .conf filelist match
8b0ec9d
b22ec88
* Sat Dec 12 2009 Jens Petersen <petersen@redhat.com> - 0.3.0-1
b22ec88
- major updates for ghc-6.12, package.conf.d, and shared libraries
b22ec88
- add shared support to cabal_configure, ghc_gen_filelists
b22ec88
- version ghcdocdir
b22ec88
- replace ghc_gen_scripts, ghc_install_scripts, ghc_register_pkg, ghc_unregister_pkg
b22ec88
  with cabal_pkg_conf
b22ec88
- allow (ghc to) override ghc_version
b22ec88
d007836
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.5-1
d007836
- make ghc_pkg_ver only return pkg version
d007836
b8f63cf
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.4-1
b8f63cf
- change GHCRequires to ghc_pkg_ver
b8f63cf
32ffe2c
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.3-1
32ffe2c
- use the latest installed pkg version for %%GHCRequires
32ffe2c
5edaabc
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.2-1
5edaabc
- add %%GHCRequires for automatically versioned library deps
5edaabc
87815fa
* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 0.2.1-2
87815fa
- no, revert versioned ghcdocdir again!
87815fa
082b15a
* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 0.2.1-1
082b15a
- version ghcdocdir to allow multiple doc versions like ghcpkgdir
082b15a
86afb6d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2
86afb6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
86afb6d
c938f3b
* Tue Jun  9 2009 Jens Petersen <petersen@redhat.com> - 0.2-1
c938f3b
- drop version from ghcdocdir since it breaks haddock indexing
c938f3b
Yaakov Meir Nemoy fb06b40
* Wed May 13 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-7
Yaakov Meir Nemoy fb06b40
- specifies the macros file as a %%conf
Yaakov Meir Nemoy fb06b40
Yaakov Meir Nemoy b640c1a
* Sat May  9 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-6
Yaakov Meir Nemoy b640c1a
- removes archs and replaces with noarch
Yaakov Meir Nemoy b640c1a
- bumps to avoid conflicts with jens
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
* Fri May  8 2009 Jens Petersen <petersen@redhat.com> - 0.1-5
Yaakov Meir Nemoy b640c1a
- make it arch specific to fedora ghc archs
Yaakov Meir Nemoy b640c1a
- setup a build dir so it can build from the current working dir
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
* Wed May  6 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-4
Yaakov Meir Nemoy b640c1a
- renamed license file
Yaakov Meir Nemoy b640c1a
- removed some extraneous comments needed only at review time
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
* Wed May  6 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-3
Yaakov Meir Nemoy b640c1a
- updated license to GPLv3
Yaakov Meir Nemoy b640c1a
- added AUTHORS file
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
* Tue May  5 2009 Yaakov M. Nemoy <ghc@hexago.nl> - 0.1-2
Yaakov Meir Nemoy b640c1a
- moved copying license from %%build to %%prep
Yaakov Meir Nemoy b640c1a
Yaakov Meir Nemoy b640c1a
* Mon May  4 2009 Yaakov M. Nemoy <ghc@hexago.nl> - 0.1-1
Yaakov Meir Nemoy b640c1a
- creation of package
Yaakov Meir Nemoy b640c1a