Hello community, here is the log from the commit of package ghc-rpm-macros for openSUSE:Factory checked in at 2019-12-30 12:34:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-rpm-macros (Old) and /work/SRC/openSUSE:Factory/.ghc-rpm-macros.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-rpm-macros" Mon Dec 30 12:34:38 2019 rev:38 rq:759906 version:1.9.90 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-rpm-macros/ghc-rpm-macros.changes 2018-07-21 10:22:57.102990350 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-rpm-macros.new.6675/ghc-rpm-macros.changes 2019-12-30 12:34:45.983802441 +0100 @@ -1,0 +2,8 @@ +Fri Dec 20 07:44:37 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com> + +- update to 1.9.90 + * backport upstream changes + * workaround for packages without Setup.hs file + - drop no-selfbootstrap-check.patch + +------------------------------------------------------------------- Old: ---- ghc-rpm-macros-1.7.4.tar.xz no-selfbootstrap-check.patch New: ---- ghc-rpm-macros-1.9.90.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-rpm-macros.spec ++++++ --- /var/tmp/diff_new_pack.HNp7F9/_old 2019-12-30 12:34:46.595802769 +0100 +++ /var/tmp/diff_new_pack.HNp7F9/_new 2019-12-30 12:34:46.595802769 +0100 @@ -19,7 +19,7 @@ %global macros_dir %{_sysconfdir}/rpm %global without_hscolour 1 Name: ghc-rpm-macros -Version: 1.7.4 +Version: 1.9.90 Release: 0 Summary: RPM Macros for building packages for GHC License: GPL-3.0-or-later @@ -27,10 +27,8 @@ Url: https://fedoraproject.org/wiki/Haskell_SIG # source gets updated with osc service dr Source0: %{name}-%{version}.tar.xz -Patch: no-selfbootstrap-check.patch BuildRequires: xz Requires: rpm -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if %{undefined without_hscolour} Requires: hscolour @@ -60,7 +58,6 @@ %prep %setup -q -%patch -p1 %build echo no build stage needed @@ -76,9 +73,7 @@ install -p -D -m 0755 ghc-pkg-wrapper %{buildroot}/%{_prefix}/lib/rpm/ghc-pkg-wrapper install -p -D -m 0644 ghc.attr %{buildroot}/%{_prefix}/lib/rpm/fileattrs/ghc.attr install -p -D -m 0755 ghc-dirs.sh %{buildroot}/%{_prefix}/lib/rpm/ghc-dirs.sh -%if 0%{?suse_version} <= 1320 -install -d -D -m 0755 %{buildroot}%{_datadir}/licenses -%endif +install -p -D -m 0644 Setup.hs %{buildroot}/%{_datadir}/%{name}/Setup.hs %files %doc AUTHORS @@ -92,11 +87,8 @@ %{_prefix}/lib/rpm/ghc-pkg-wrapper %{_prefix}/lib/rpm/fileattrs/ghc.attr %{_prefix}/lib/rpm/ghc-dirs.sh -# With 1.7.4 of ghc-rpm-macros license files are installed here -# but rpm does not own this directory on older openSUSE. -%if 0%{?suse_version} <= 1320 -%dir %{_datadir}/licenses -%endif +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/Setup.hs %files extra %config %{macros_dir}/macros.ghc-extra ++++++ ghc-rpm-macros-1.7.4.tar.xz -> ghc-rpm-macros-1.9.90.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/Setup.hs new/ghc-rpm-macros-1.9.90/Setup.hs --- old/ghc-rpm-macros-1.7.4/Setup.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/ghc-rpm-macros-1.9.90/Setup.hs 2019-09-19 10:57:34.749926669 +0200 @@ -0,0 +1,3 @@ +import Distribution.Simple + +main = defaultMain diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/ghc-deps.sh new/ghc-rpm-macros-1.9.90/ghc-deps.sh --- old/ghc-rpm-macros-1.7.4/ghc-deps.sh 2018-04-17 21:52:07.173717212 +0200 +++ new/ghc-rpm-macros-1.9.90/ghc-deps.sh 2019-12-19 16:06:33.204054633 +0100 @@ -23,30 +23,19 @@ ghc_ver=$(basename $pkgbasedir | sed -e s/ghc-//) files=$(cat) -#cabal_ver=$(ghc-pkg --global --simple-output list Cabal | sed -e "s/Cabal-//") -declare -a exclude_dep -all_files=$(ls $pkgconfdir/*) -for x in $all_files; do - if grep -q 'name: z-.*-z-.*' $x; then - exclude_dep+=($(sed -rn '/id: /s/id: (.*)/\1/ p' <$x)) - fi -done for i in $files; do case $i in # exclude builtin_rts.conf $pkgconfdir/*-*.conf) - id=$(grep "id: " $i | sed -e "s/id: //") - ids=$($ghc_pkg field $id $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//") - + name=$(grep "^name: " $i | sed -e "s/name: //") + ids=$($ghc_pkg field $name $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//") for d in $ids; do - if [[ ! " ${exclude_dep[@]} " =~ " ${d} " ]]; then - case $d in + case $d in *-*) echo "ghc-devel($d)" ;; *) ;; - esac - fi + esac done ;; *) ;; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/ghc-dirs.sh new/ghc-rpm-macros-1.9.90/ghc-dirs.sh --- old/ghc-rpm-macros-1.7.4/ghc-dirs.sh 2017-07-07 14:16:59.000000000 +0200 +++ new/ghc-rpm-macros-1.9.90/ghc-dirs.sh 2019-12-19 21:58:59.823362957 +0100 @@ -22,6 +22,9 @@ 1.18.*) pkglibdir="${ghclibdir}/${pkgver}" ;; + *) + pkglibdir="${ghclibdir}/${pkgver}-*" + ;; esac case $3 in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/ghc-pkg-wrapper new/ghc-rpm-macros-1.9.90/ghc-pkg-wrapper --- old/ghc-rpm-macros-1.7.4/ghc-pkg-wrapper 2018-04-17 22:03:49.928834806 +0200 +++ new/ghc-rpm-macros-1.9.90/ghc-pkg-wrapper 2019-12-19 16:19:24.442026646 +0100 @@ -18,4 +18,4 @@ GHC_PKG="/usr/bin/ghc-pkg-${GHC_VER} -f ${PKGCONFDIR}" fi -${GHC_PKG} -v0 --simple-output --global $* | uniq +${GHC_PKG} -v0 --simple-output $* | uniq diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/ghc-rpm-macros.spec new/ghc-rpm-macros-1.9.90/ghc-rpm-macros.spec --- old/ghc-rpm-macros-1.7.4/ghc-rpm-macros.spec 2018-03-19 20:56:05.531256409 +0100 +++ new/ghc-rpm-macros-1.9.90/ghc-rpm-macros.spec 1970-01-01 01:00:00.000000000 +0100 @@ -1,909 +0,0 @@ -%global debug_package %{nil} - -%if 0%{?fedora} || 0%{?rhel} >= 7 -%global macros_dir %{_rpmconfigdir}/macros.d -%else -%global macros_dir %{_sysconfdir}/rpm -%endif - -# uncomment to bootstrap without hscolour -#%%global without_hscolour 1 - -Name: ghc-rpm-macros -Version: 1.7.4 -Release: 1%{?dist} -Summary: RPM macros for building Haskell packages for GHC - -License: GPLv3+ -URL: https://github.com/fedora-haskell/ghc-rpm-macros -# Currently source is only in git but tarballs could be made if it helps -Source0: macros.ghc -Source1: COPYING -Source2: AUTHORS -Source3: ghc-deps.sh -Source4: cabal-tweak-dep-ver -Source5: cabal-tweak-flag -Source6: macros.ghc-extra -Source7: ghc.attr -Source8: ghc-pkg-wrapper -# put your distro macros here -%if 0%{?fedora} || 0%{?rhel} -Source9: macros.ghc-fedora -%else -Source9: macros.ghc-suse -%endif -Source10: ghc-dirs.sh -Source11: cabal-tweak-drop-dep -Requires: redhat-rpm-config -# for ghc_version -Requires: ghc-compiler -%if %{undefined without_hscolour} -Requires: hscolour -%endif -BuildArch: noarch - -%description -A set of macros for building GHC packages following the Haskell Guidelines -of the Fedora Haskell SIG. ghc needs to be installed in order to make use of -these macros. - - -%package extra -Summary: Extra RPM macros for building Haskell library subpackages -Requires: %{name} = %{version}-%{release} -Requires: chrpath - -%description extra -Extra macros used for subpackaging of Haskell libraries, -for example in ghc and haskell-platform. - - -%prep -%setup -c -T -cp %{SOURCE1} %{SOURCE2} . - - -%build -echo no build stage needed - - -%install -install -p -D -m 0644 %{SOURCE0} %{buildroot}/%{macros_dir}/macros.ghc -install -p -D -m 0644 %{SOURCE6} %{buildroot}/%{macros_dir}/macros.ghc-extra -install -p -D -m 0644 %{SOURCE9} %{buildroot}/%{macros_dir}/macros.ghc-os - -install -p -D -m 0755 %{SOURCE3} %{buildroot}/%{_prefix}/lib/rpm/ghc-deps.sh -install -p -D -m 0755 %{SOURCE10} %{buildroot}/%{_prefix}/lib/rpm/ghc-dirs.sh - -%if 0%{?fedora} || 0%{?rhel} >= 7 -install -p -D -m 0644 %{SOURCE7} %{buildroot}/%{_prefix}/lib/rpm/fileattrs/ghc.attr -%endif - -install -p -D -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/cabal-tweak-dep-ver -install -p -D -m 0755 %{SOURCE5} %{buildroot}/%{_bindir}/cabal-tweak-flag -install -p -D -m 0755 %{SOURCE11} %{buildroot}/%{_bindir}/cabal-tweak-drop-dep -install -p -D -m 0755 %{SOURCE8} %{buildroot}/%{_prefix}/lib/rpm/ghc-pkg-wrapper - -%if 0%{?rhel} && 0%{?rhel} < 7 -cat >> %{buildroot}/%{_prefix}/lib/rpm/ghc-deps.sh <<EOF - -echo \$files | tr [:blank:] '\n' | %{_rpmconfigdir}/rpmdeps --requires -EOF -%endif - - -%files -%license COPYING -%doc AUTHORS -%{macros_dir}/macros.ghc -%{macros_dir}/macros.ghc-os -%if 0%{?fedora} || 0%{?rhel} >= 7 -%{_prefix}/lib/rpm/fileattrs/ghc.attr -%endif -%{_prefix}/lib/rpm/ghc-deps.sh -%{_prefix}/lib/rpm/ghc-dirs.sh -%{_prefix}/lib/rpm/ghc-pkg-wrapper -%{_bindir}/cabal-tweak-dep-ver -%{_bindir}/cabal-tweak-drop-dep -%{_bindir}/cabal-tweak-flag - - -%files extra -%{macros_dir}/macros.ghc-extra - - -%changelog -* Thu Dec 14 2017 Jens Petersen <petersen@redhat.com> - 1.7.4-1 -- add ghc_set_cflags macro -- rename macros.ghc-fedora to macros.ghc-os -- use shell variable instead of macro to carry licensedir version -- ghc_gen_filelists: check package.conf exists -- make package noarch - -* Sun Jul 30 2017 Jens Petersen <petersen@redhat.com> - 1.7.3-1 -- fix haddock generation -- Group and defattr are only needed for rhel5 -- ghc_bin_install and ghc_lib_install now run ghc_fix_rpath on subpkgs - -* Thu Jun 22 2017 Jens Petersen <petersen@redhat.com> - 1.7.2-1 -- add _ghclicensedir macro -- add ghc_smp_mflags macro, since -j4 breaks reproducible-builds.org completely - (report by Bernhard Wiedemann) - -* Tue Feb 14 2017 Jens Petersen <petersen@redhat.com> - 1.7.1-1 -- add -d option to ghc_lib_subpackage to use .files in topdir - -* Fri Feb 10 2017 Jens Petersen <petersen@redhat.com> - 1.7.0-1 -- if ghc_subpackaging set configure with --user otherwise --global - -* Tue Feb 7 2017 Jens Petersen <petersen@redhat.com> - 1.6.99-1 -- cabal-tweak-drop-dep now checks if safe to remove matching lines - -* Sun Jan 29 2017 Jens Petersen <petersen@redhat.com> - 1.6.98-1 -- no longer use a topdir for subpackage building - -* Sat Jan 28 2017 Jens Petersen <petersen@redhat.com> - 1.6.97-1 -- autopackage license if subpackaging -- add new cabal-tweak-drop-dep script for excluding trivial deps - -* Thu Jan 19 2017 Jens Petersen <petersen@redhat.com> - 1.6.96-1 -- move uniq to ghc-pkg-wrapper -- drop dynlibdir override for now -- do not also add LICENSE to files file - -* Thu Dec 22 2016 Jens Petersen <petersen@fedoraproject.org> - 1.6.95-1 -- move gen_contents_index back to macros.ghc and use it again for lib - installs for now for back compatibility with existing spec files -- rename cabal_*_verbose to cabal_*_options - -* Mon Dec 19 2016 Jens Petersen <petersen@redhat.com> - 1.6.94-1 -- check Cabal version for dynlibdir and ghc-dirs.sh - -* Wed Dec 14 2016 Jens Petersen <petersen@redhat.com> - 1.6.93-1 -- add macros.ghc-fedora for Fedora specific config -- replace cabal_verbose with cabal_configure_verbose, cabal_build_verbose, - cabal_install_verbose, cabal_haddock_verbose, and cabal_test_verbose -- for ghc-8.0.2 install dynlibs in _libdir -- new _ghcdocdir -- new _ghcdynlibdir and _ghcpkglibdir defined by ghc-dirs.sh -- move ghc_gen_filelists to macros.ghc-extra and no longer use by default - -* Sat Nov 12 2016 Jens Petersen <petersen@redhat.com> - 1.6.92-1 -- a few more forward ports from Fedora: -- make ghc_lib_subpackage backward compatible with older 2 args form -- only pass CFLAGS and LDFLAGS to ghc if set - -* Wed Oct 5 2016 Jens Petersen <petersen@redhat.com> - 1.6.91-1 -- forward port changes from Fedora 25: -- macros.ghc-extra requires chrpath -- ghc-pkg-wrapper is now quiet with simple output -- install and package license file under _defaultlicensedir when available -- new ghc_fix_rpath macro deprecates ghc_fix_dynamic_rpath -- ghc_lib_subpackage now takes name-version -- new ghc_libs_build and ghc_libs_install extra macros - -* Mon Jun 13 2016 Jens Petersen <petersen@redhat.com> - 1.6.90-1 -- ghc_gen_filelists: uniq keyname to prevent build failure for installed version - -* Wed Mar 2 2016 Jens Petersen <petersen@redhat.com> - 1.5.3-1 -- ghc_gen_filelists: determine keyname with pkgnamever not just pkgname - (fixes building newer version of installed package) - -* Tue Feb 23 2016 Jens Petersen <petersen@redhat.com> - 1.5.2-1 -- ghc-deps.sh no longer filter out ghc-prim and integer-gmp - -* Mon Feb 22 2016 Jens Petersen <petersen@redhat.com> - 1.5.1-1 -- ghc-deps.sh hopefully working right now - -* Wed Feb 3 2016 Jens Petersen <petersen@redhat.com> - 1.5.0-1 -- update for ghc-8.0 -- ghc-deps uses --provides and --requires again - -* Wed Nov 11 2015 Jens Petersen <petersen@redhat.com> - 1.4.98-1 -- move ghc-pkg-wrapper to /usr/lib/rpm (#2) -- just override deps gen when no fileattrs (mimi1vx) -- use _rpmconfigdir macro - -* Tue Nov 10 2015 Jens Petersen <petersen@redhat.com> - 1.4.97-2 -- condition rpmdeps use correctly for rhel < 7 - -* Fri Oct 23 2015 Jens Petersen <petersen@redhat.com> - 1.4.97-1 -- fix some missing quoting for deps generation - -* Fri Oct 23 2015 Jens Petersen <petersen@redhat.com> - 1.4.96-1 -- support el6 (no fileattrs or /usr/lib/rpm/macros.d) -- change url to github - -* Sat Oct 3 2015 Jens Petersen <petersen@fedoraproject.org> - 1.4.95-1 -- add and use ghc-pkg-wrapper script -- use ghc-pkg key field (for ghc-7.10) - -* Wed Sep 16 2015 Jens Petersen <petersen@redhat.com> - 1.4.94-1 -- configure libsubdir using pkgkey like ghc-cabal -- disable debuginfo again - -* Sat May 9 2015 Jens Petersen <petersen@fedoraproject.org> - 1.4.93-2 -- handle no ghc-srpm-macros for fedora < 21 - -* Thu May 7 2015 Jens Petersen <petersen@fedoraproject.org> - 1.4.93-1 -- fix ghc-pkg path in ghc-deps.sh for ghc-7.10 - -* Fri May 1 2015 Jens Petersen <petersen@redhat.com> - 1.4.92-1 -- local pkgdir macro is redundant - -* Fri May 1 2015 Jens Petersen <petersen@redhat.com> - 1.4.91-1 -- use utf8 locale for cabal -- sync with 1.4.14: -- add explicit --enable-shared again for arm64 -- introduce ghc_pkgdocdir since no _pkgdocdir in RHEL 7 and earlier -- allow overriding ghc- prefix with ghc_name (for ghc784 etc) -- version ghc-pkg in ghc_pkg_recache -- have to turn off hardening in cabal_configure: set _hardened_ldflags to nil -- add cabal_test macro -- only run cabal haddock for real libraries with modules -- make sure basepkg.files is also created for meta packages -- fix the R*PATH regexp -- version ghcpkgdocdir -- add new names ghc_html_dir, ghc_html_libraries_dir, and ghc_html_pkg_dir -- correct cabal-tweak-flag error message for missing flag (#1184508) - -* Sat Jan 17 2015 Jens Petersen <petersen@redhat.com> - 1.4.90-1 -- changes needed for ghc-7.10: -- update ghc_gen_filelists to use new keyed library filepaths - and specify libHS*.so more loosely -- ghc-dep.sh now just makes versioned devel reqs -- rename ghc_lib.attr to ghc.attr and drop ghc_bin.attr - -* Sat Jan 17 2015 Jens Petersen <petersen@redhat.com> - 1.4.1-1 -- revert to versioned doc htmldirs - -* Sat Jan 17 2015 Jens Petersen <petersen@redhat.com> - 1.4.0-1 -- enable shared libraries and dynamic linking on all arch's - since ghc-7.8 now supports that - -* Fri Nov 14 2014 Jens Petersen <petersen@redhat.com> - 1.3.10-1 -- split ghc.attr into ghc_lib.attr and ghc_bin.attr for finer grained handling -- require ghc-compiler for ghc_version - -* Mon Oct 27 2014 Jens Petersen <petersen@redhat.com> - 1.3.9-1 -- macros.ghc: cabal_configure now passes CFLAGS and LDFLAGS to ghc (#1138982) - (thanks to Sergei Trofimovich and Ville Skyttä) - -* Thu Oct 23 2014 Jens Petersen <petersen@redhat.com> - 1.3.8-1 -- ghc-deps.sh: support ghc-pkg for ghc builds <= 7.4.2 as well - -* Thu Oct 16 2014 Jens Petersen <petersen@redhat.com> - 1.3.7-1 -- ghc.attr needs to handle requires for /usr/bin files too - -* Wed Sep 10 2014 Jens Petersen <petersen@redhat.com> - 1.3.6-1 -- improve ghc_fix_dynamic_rpath not to assume cwd = pkg_name - -* Fri Aug 29 2014 Jens Petersen <petersen@redhat.com> - 1.3.5-1 -- no longer disable debuginfo by default: - packages now need to explicitly opt out of debuginfo if appropriate - -* Thu Aug 28 2014 Jens Petersen <petersen@redhat.com> - 1.3.4-1 -- drop -O2 for ghc-7.8: it uses too much build mem - -* Fri Aug 22 2014 Jens Petersen <petersen@redhat.com> - 1.3.3-1 -- temporarily revert to ghc-7.6 config for shared libs - until we move to ghc-7.8 - -* Thu Aug 21 2014 Jens Petersen <petersen@redhat.com> - 1.3.2-1 -- add an rpm .attr file for ghc-deps.sh rather than running it - as an external dep generator (#1132275) - (see http://rpm.org/wiki/PackagerDocs/DependencyGenerator) - -* Wed Aug 20 2014 Jens Petersen <petersen@redhat.com> - 1.3.1-1 -- fix warning in macros.ghc-extra about unused pkgnamever - -* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Aug 2 2014 Jens Petersen <petersen@redhat.com> - 1.3.0-1 -- shared libs available for all archs in ghc-7.8 -- cabal_configure --disable-shared with ghc_without_shared -- ghc_clear_execstack no longer needed - -* Fri Jun 27 2014 Jens Petersen <petersen@redhat.com> - 1.2.13-2 -- ghc-srpm-macros is now a separate source package - -* Fri Jun 6 2014 Jens Petersen <petersen@redhat.com> - 1.2.13-1 -- add aarch64 - -* Sun Jun 1 2014 Jens Petersen <petersen@redhat.com> - 1.2.12-1 -- add missing ppc64, s390, and s390x to ghc_arches -- add new ppc64le to ghc_arches - -* Fri May 30 2014 Jens Petersen <petersen@redhat.com> - 1.2.11-1 -- condition use of execstack since no prelink on ppc64le or arm64 - -* Wed May 21 2014 Dennis Gilmore <dennis@ausil.us> - 1.2.10-2 -- add %%ghc_arches back to macros.ghc-srpm to maintain compatability with -- existing specs - -* Fri May 16 2014 Jens Petersen <petersen@redhat.com> - 1.2.10-1 -- do bcond cabal configure --enable-tests also for Bin packages - -* Fri May 16 2014 Jens Petersen <petersen@redhat.com> - 1.2.9-1 -- enable configure bcond check for tests - -* Tue May 13 2014 Jens Petersen <petersen@redhat.com> - 1.2.8-1 -- use -O2 also for executable (Bin) packages and allow it to be overrided - -* Wed Apr 30 2014 Jens Petersen <petersen@redhat.com> - 1.2.7-1 -- ghc-rpm-macros requires ghc-srpm-macros -- ghc-srpm-macros does not require ghc-rpm-macros -- drop ExclusiveArch and make hscolour requires arch conditional -- make ghc-srpm-macros subpackage noarch -- set Url field when generating subpackages - -* Mon Apr 28 2014 Jens Petersen <petersen@redhat.com> - 1.2.6-1 -- move macros.ghc-srpm from redhat-rpm-config to new ghc-srpm-macros subpackage: - defines ghc_arches_with_ghci and drops no longer used ghc_arches (#1089102) -- update license tag to GPLv3+ - -* Fri Mar 28 2014 Jens Petersen <petersen@redhat.com> - 1.2.5-1 -- handle no _pkgdocdir in RHEL7 and docdir path different to F20+ - -* Mon Mar 17 2014 Jens Petersen <petersen@redhat.com> - 1.2.4-1 -- abort ghc_fix_dynamic_rpath if no chrpath - -* Thu Feb 13 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.2.3-2 -- Install macros to %%{_rpmconfigdir}/macros.d. - -* Mon Feb 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.3-1 -- set datasubdir in cabal_configure for ghc-7.8 - -* Fri Jan 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.2-1 -- quote the ghc_fix_dynamic_rpath error message - -* Fri Jan 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.1-1 -- ghc_fix_dynamic_rpath: abort for non-existent executable name -- cabal-tweak-flag: add manual field to enforce flag changes - -* Tue Oct 15 2013 Jens Petersen <petersen@redhat.com> - 1.2-1 -- add ghcpkgdocdir, which like _pkgdocdir allows for unversioned haddock dirs - -* Tue Sep 10 2013 Jens Petersen <petersen@redhat.com> - 1.1.3-1 -- ghc-deps.sh: fix ghc-pkg path when bootstrapping new ghc version - -* Mon Sep 9 2013 Jens Petersen <petersen@redhat.com> - 1.1.2-1 -- fix ghc-deps.sh when bootstrapping a new ghc version - -* Mon Sep 9 2013 Jens Petersen <petersen@redhat.com> - 1.1.1-1 -- use objdump -p instead of ldd to read executable dependencies - -* Sat Sep 7 2013 Jens Petersen <petersen@redhat.com> - 1.1-1 -- update ghc-deps.sh to handling ghc-7.8 rts - -* Tue Aug 27 2013 Jens Petersen <petersen@redhat.com> - 1.0.8-1 -- drop ghc_docdir in favor of _pkgdocdir -- no longer version package htmldirs - -* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.7-1 -- add ghc_docdir for package's docdir since not provided by standard macros - -* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.6-1 -- also make %%ghc_lib_build docdir unversioned -- require redhat-rpm-config >= 9.1.0-50.fc20 for unversioned docdir - -* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 1.0.5-1 -- F20 Change: docdir's are now unversioned - -* Thu Jul 11 2013 Jens Petersen <petersen@redhat.com> - 1.0.4-1 -- check for bindir before looking for executables in ghc_clear_execstack - -* Wed Jul 10 2013 Jens Petersen <petersen@redhat.com> - 1.0.3-1 -- add ghc_clear_execstack and use it also in ghc_lib_install (#973512) - and require prelink for execstack - -* Tue Jul 9 2013 Jens Petersen <petersen@redhat.com> - 1.0.2-1 -- drop doc and prof obsoletes and provides from ghc_lib_subpackage -- clear executable stack flag when installing package executables (#973512) - -* Thu Jun 20 2013 Jens Petersen <petersen@redhat.com> - 1.0.1-1 -- only configure with --global if not subpackaging libs - -* Thu Jun 20 2013 Jens Petersen <petersen@redhat.com> - 1.0-3 -- reenable hscolour - -* Thu Jun 20 2013 Jens Petersen <petersen@redhat.com> - 1.0-2 -- turn off hscolour for bootstrap - -* Wed Jun 19 2013 Jens Petersen <petersen@redhat.com> - 1.0-1 -- add --global to cabal_configure - -* Mon Jun 17 2013 Jens Petersen <petersen@redhat.com> - 0.99.4-1 -- merge remaining extra macros into ghc_lib_subpackage - -* Thu Jun 6 2013 Jens Petersen <petersen@redhat.com> - 0.99.3-1 -- configure builds with ghc -O2 (#880135) - -* Wed Jun 5 2013 Jens Petersen <petersen@redhat.com> - 0.99.2-1 -- drop -h option from extra macros and make -m work again - -* Fri May 17 2013 Jens Petersen <petersen@redhat.com> - 0.99.1-1 -- drop new ghc_compiler macro since it is not good for koji -- ghc_fix_dynamic_rpath: do not assume first RPATH - -* Tue Apr 23 2013 Jens Petersen <petersen@redhat.com> - 0.99-1 -- update for simplified revised Haskell Packaging Guidelines - (https://fedorahosted.org/fpc/ticket/194) -- packaging for without_shared is now done the same way as shared - to make non-shared arch packages same as shared ones: - so all archs will now have base library binary packages -- move spec section metamacros and multiple library packaging macros still - needed for ghc and haskell-platform to new extra subpackage -- drop ghc_add_basepkg_file macro and ghc_exclude_docdir -- for ghc-7.6 --global-package-db replaces --global-conf and - --no-user-package-db deprecates --no-user-package-conf - -* Wed Mar 20 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.98.1-4 -- Remove %%config from %%{_sysconfdir}/rpm/macros.* - (https://fedorahosted.org/fpc/ticket/259). - -* Tue Feb 26 2013 Jens Petersen <petersen@redhat.com> - 0.98.1-3 -- only add lib pkgdir to filelist if it exists - to fix haskell-platform build on secondary archs (no shared libs) -- add ghc_with_lib_for_ghci which re-enables ghci library .o files - (should not normally be necessary since ghci can load .a files) - -* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Tue Jan 22 2013 Jens Petersen <petersen@redhat.com> - 0.98.1-1 -- simplify cabal-tweak-flag script to take one flag value - -* Mon Jan 21 2013 Jens Petersen <petersen@redhat.com> - 0.98-1 -- new ghc_fix_dynamic_rpath macro for cleaning up package executables - linked against their own libraries - -* Fri Jan 18 2013 Jens Petersen <petersen@redhat.com> - 0.97.6-1 -- be more careful about library pkgdir ownership (#893777) - -* Mon Dec 3 2012 Jens Petersen <petersen@redhat.com> - 0.97.5-1 -- add cabal-tweak-flag script for toggling flag default - -* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.97.4-1 -- enable hscolour again - -* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.97.3.1-1 -- bootstrap hscolour - -* Thu Oct 25 2012 Jens Petersen <petersen@redhat.com> - 0.97.3-1 -- BR redhat-rpm-config instead of ghc-rpm-macros -- no longer set without_hscolour in macros.ghc for bootstrapping - -* Tue Oct 9 2012 Jens Petersen <petersen@redhat.com> - 0.97.2-1 -- "cabal haddock" needs --html option with --hoogle to output html - -* Thu Sep 20 2012 Jens Petersen <petersen@redhat.com> - 0.97.1-2 -- no need to BR hscolour - -* Wed Sep 19 2012 Jens Petersen <petersen@redhat.com> - 0.97.1-1 -- fix broken duplicate hash output for haskell-platform binaries buildhack - when haskell-platform locally installed - -* Sat Sep 8 2012 Jens Petersen <petersen@redhat.com> - 0.97-1 -- ghc-rpm-macros now requires hscolour so packages no longer need to BR it -- this can be disabled for bootstrapping by setting without_hscolour - -* Fri Aug 24 2012 Jens Petersen <petersen@redhat.com> - 0.96-1 -- make haddock build hoogle files -- Fedora ghc-7.4.2 Cabal will not build ghci lib files by default - -* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Mon Jun 25 2012 Jens Petersen <petersen@redhat.com> - 0.95.6-1 -- provide doc from devel a little longer to silence rpmlint - -* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.5.1-1 -- cabal-tweak-dep-ver: be careful only to match complete dep name and - do not match beyond "," - -* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.5-1 -- some cabal-tweak-dep-ver improvements: -- show file name when no match -- backslash quote . and * in the match string -- create a backup file if none exists - -* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.95.4-1 -- new cabal-tweak-dep-ver script to tweak depends version bounds in .cabal - -* Sat Jun 9 2012 Jens Petersen <petersen@redhat.com> - 0.95.3-1 -- ghc-dep.sh: only use buildroot package.conf.d if it exists - -* Fri Jun 8 2012 Jens Petersen <petersen@redhat.com> - 0.95.2-1 -- ghc-deps.sh: look in buildroot package.conf.d for program deps - -* Fri Jun 8 2012 Jens Petersen <petersen@redhat.com> - 0.95.1-1 -- add a meta-package option to ghc_devel_package and use in ghc_devel_requires - -* Thu Jun 7 2012 Jens Petersen <petersen@redhat.com> - 0.95-1 -- let ghc_bin_install take an arg to disable implicit stripping for subpackages - -* Thu Jun 7 2012 Jens Petersen <petersen@redhat.com> - 0.94-1 -- allow ghc_description, ghc_devel_description, ghc_devel_post_postun - to take args - -* Thu Jun 7 2012 Jens Petersen <petersen@redhat.com> - 0.93-1 -- fix doc handling of subpackages for ghc_without_shared - -* Thu Jun 7 2012 Jens Petersen <petersen@redhat.com> - 0.92-1 -- move --disable-library-for-ghci to ghc_lib_build -- revert back to fallback behaviour for common_summary and common_description - since it is needed for ghc and haskell-platform subpackaging -- without ghc_exclude_docdir include doc dir also for subpackages - -* Tue Jun 5 2012 Jens Petersen <petersen@redhat.com> - 0.91-1 -- no longer build redundant ghci .o library files -- support meta packages like haskell-platform without base lib files -- make it possible not to have to use common_summary and common_description -- rename ghc_binlib_package to ghc_lib_subpackage -- add ghc_lib_build_without_haddock -- no longer drop into package dirs when subpackaging with ghc_lib_build and - ghc_lib_install -- add shell variable cabal_configure_extra_options to cabal_configure for - local configuration - -* Mon Mar 19 2012 Jens Petersen <petersen@redhat.com> - 0.90-1 -- use new rpm metadata hash format for ghc-7.4 -- drop prof meta hash data -- no longer include doc files automatically by default -- no longer provide doc subpackage -- do not provide prof when without_prof set - -* Thu Feb 23 2012 Jens Petersen <petersen@redhat.com> - 0.15.5-1 -- fix handling of devel docdir for non-shared builds -- simplify ghc_bootstrap - -* Thu Jan 19 2012 Jens Petersen <petersen@redhat.com> - 0.15.4-1 -- allow dynamic linking of Setup with ghc_without_shared set - -* Fri Jan 6 2012 Jens Petersen <petersen@redhat.com> - 0.15.3-1 -- new ghc_add_basepkg_file to add a path to base lib package filelist - -* Wed Dec 28 2011 Jens Petersen <petersen@redhat.com> - 0.15.2-1 -- add ghc_devel_post_postun to help koji/mock with new macros - -* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15.1-1 -- add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description - -* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15-1 -- new ghc_files wrapper macro for files which takes base doc files as args - and uses new ghc_shared_files and ghc_devel_files macros -- when building for non-shared archs move installed docfiles to devel docdir - -* Fri Dec 2 2011 Jens Petersen <petersen@redhat.com> - 0.14.3-1 -- do not use ghc user config by default when compiling Setup -- do not setup hscolour if without_hscolour defined - -* Thu Nov 17 2011 Jens Petersen <petersen@redhat.com> - 0.14.2-1 -- test for HsColour directly when running "cabal haddock" instead of - check hscolour is available (reported by Giam Teck Choon, #753833) - -* Sat Nov 12 2011 Jens Petersen <petersen@redhat.com> - 0.14.1-1 -- fix double listing of docdir in base lib package - -* Tue Nov 1 2011 Jens Petersen <petersen@redhat.com> - 0.14-1 -- replace devel ghc requires with ghc-compiler -- disable testsuite in ghc_bootstrap - -* Mon Oct 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.13-1 -- add ghc_bootstrapping to ghc_bootstrap for packages other than ghc -- make ghc-deps.sh also work when bootstrapping a new ghc version - -* Sat Oct 15 2011 Jens Petersen <petersen@redhat.com> - 0.13.12-1 -- add ghc_exclude_docdir to exclude docdir from filelists - -* Fri Sep 30 2011 Jens Petersen <petersen@redhat.com> - 0.13.11-1 -- fix devel subpackage's prof and doc obsoletes and provides versions - for multiple lib packages like ghc (reported by Henrik Nordström) - -* Tue Sep 13 2011 Jens Petersen <petersen@redhat.com> - 0.13.10-1 -- do not setup ghc-deps.sh when ghc_bootstrapping -- add ghc_test build config - -* Wed Aug 3 2011 Jens Petersen <petersen@redhat.com> - 0.13.9-1 -- drop without_testsuite from ghc_bootstrap since it breaks koji - -* Fri Jul 1 2011 Jens Petersen <petersen@redhat.com> - 0.13.8-1 -- drop redundant defattr from filelists -- move dependency generator setup from ghc_package_devel to ghc_lib_install - in line with ghc_bin_install - -* Mon Jun 27 2011 Jens Petersen <petersen@redhat.com> - 0.13.7-1 -- add requires for redhat-rpm-config for ghc_arches -- drop ghc_bootstrapping from ghc_bootstrap: doesn't work for koji - -* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.6-1 -- also set ghc_without_dynamic for ghc_bootstrap -- drop without_hscolour from ghc_bootstrap: doesn't work for koji - -* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.5-1 -- ghc_bootstrap is now a macro which sets ghc_bootstrapping, - ghc_without_shared, without_prof, without_haddock, without_hscolour, - without_manual, without_testsuite -- tweaks to ghc_check_bootstrap - -* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 0.13.4-1 -- add ghc_check_bootstrap - -* Thu Jun 2 2011 Jens Petersen <petersen@redhat.com> - 0.13.3-1 -- rename macros.ghc-pkg back to macros.ghc -- move the devel summary prefix back to a suffix - -* Sat May 28 2011 Jens Petersen <petersen@redhat.com> - 0.13.2-1 -- macros need to live in /etc/rpm -- use macro_file for macros.ghc filepath - -* Sat May 28 2011 Jens Petersen <petersen@redhat.com> - 0.13.1-1 -- move macros.ghc to /usr/lib/rpm to avoid conflict with redhat-rpm-config - -* Wed May 11 2011 Jens Petersen <petersen@redhat.com> - 0.13-1 -- merge prof subpackages into devel to simplify packaging - -* Mon May 9 2011 Jens Petersen <petersen@redhat.com> - 0.12.1-1 -- include ghc_pkg_c_deps even when -c option used - -* Sat May 7 2011 Jens Petersen <petersen@redhat.com> - 0.12.0-1 -- drop ghc_pkg_deps from ghc_package_devel and ghc_package_prof since - ghc-deps.sh generates better inter-package dependencies already -- condition --htmldir on pkg_name - -* Fri Apr 1 2011 Jens Petersen <petersen@redhat.com> - 0.11.14-1 -- provides ghc-*-doc still needed for current lib templates - -* Mon Mar 28 2011 Jens Petersen <petersen@redhat.com> - 0.11.13-1 -- ghc-deps.sh: check PKGBASEDIR exists to avoid warning for bin package -- abort cabal_configure if ghc is not self-bootstrapped -- make ghc_reindex_haddock a safe no-op -- no longer provide ghc-*-doc -- no longer run ghc_reindex_haddock in ghc-*-devel scripts - -* Thu Mar 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.12-1 -- add ghc_pkg_obsoletes to binlib base lib package too - -* Wed Mar 9 2011 Jens Petersen <petersen@redhat.com> - 0.11.11-1 -- add docdir when subpackaging packages too - -* Sun Feb 13 2011 Jens Petersen <petersen@redhat.com> - 0.11.10-1 -- this package is now arch-dependent -- rename without_shared to ghc_without_shared and without_dynamic - to ghc_without_dynamic so that they can be globally defined for - secondary archs without shared libs -- use %%undefined macro -- disable debug_package in ghc_bin_build and ghc_lib_build -- set ghc_without_shared and ghc_without_dynamic on secondary - (ie non main intel) archs -- disable debuginfo for self - -* Fri Feb 11 2011 Jens Petersen <petersen@redhat.com> - 0.11.9-1 -- revert "set without_shared and without_dynamic by default on secondary archs - in cabal_bin_build and cabal_lib_build" change, since happening for all archs - -* Thu Feb 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.8-1 -- only link Setup dynamically if without_shared and without_dynamic not set -- set without_shared and without_dynamic by default on secondary archs - in cabal_bin_build and cabal_lib_build -- add cabal_configure_options to pass extra options to cabal_configure - -* Thu Feb 10 2011 Jens Petersen <petersen@redhat.com> - 0.11.7-1 -- fix ghc-deps.sh for without_shared libraries - -* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sat Jan 29 2011 Jens Petersen <petersen@redhat.com> - 0.11.6-1 -- simplify adding shared subpackage license file -- own ghc-deps.sh not /usr/lib/rpm - -* Sun Jan 23 2011 Jens Petersen <petersen@redhat.com> - 0.11.5-1 -- add rpm hash requires for dynamic executables in ghc-deps.sh -- compile Setup in cabal macro -- use _rpmconfigdir - -* Sat Jan 22 2011 Jens Petersen <petersen@redhat.com> - 0.11.4-1 -- drop deprecated ghcdocdir and ghcpkgdir -- new ghclibdocdir -- replace some missed RPM_BUILD_ROOT's -- bring back ghc requires in ghc_devel_requires -- improve prof summary and description -- add without_prof and without_haddock option macros - -* Fri Jan 21 2011 Jens Petersen <petersen@redhat.com> - 0.11.3-1 -- compile Setup to help speed up builds - -* Thu Jan 20 2011 Jens Petersen <petersen@redhat.com> - 0.11.2-1 -- put docdir (license) also into shared lib subpackage -- add ghc_binlib_package option to exclude package from ghc_packages_list -- condition lib base package additional description for srpm - -* Mon Jan 3 2011 Jens Petersen <petersen@redhat.com> - 0.11.1-1 -- use buildroot instead of RPM_BUILD_ROOT -- rename ghcpkgbasedir to ghclibdir -- split "[name-version]" args into "[name] [version]" args -- move remaining name and version macro options (-n and -v) to args -- drop deprecated -o options - -* Thu Dec 30 2010 Jens Petersen <petersen@redhat.com> - 0.11.0-1 -- add support for subpackaging ghc's libraries: -- deprecate ghcpkgdir and ghcdocdir from now on -- ghc_gen_filelists optional arg is now name-version -- ghc_lib_build, ghc_lib_install, cabal_pkg_conf now take optional - name-version arg - -* Mon Dec 20 2010 Jens Petersen <petersen@redhat.com> - 0.10.3-1 -- revert disabling debug_package, since with redhat-rpm-config installed - the behaviour depended on the position of ghc_lib_package in the spec file - (reported by narasim) - -* Fri Nov 26 2010 Jens Petersen <petersen@redhat.com> -- drop with_devhelp since --html-help option gone from haddock-2.8.0 - -* Tue Nov 23 2010 Jens Petersen <petersen@redhat.com> - 0.10.2-1 -- ignore ghc's builtin pseudo-libs - -* Tue Nov 23 2010 Jens Petersen <petersen@redhat.com> - 0.10.1-1 -- bring back the explicit n-v-r internal package requires for devel and prof packages - -* Mon Nov 22 2010 Jens Petersen <petersen@redhat.com> - 0.10.0-1 -- turn on pkg hash metadata (for ghc-7 builds) -- ghc-deps.sh now requires an extra buildroot/ghcpkgbasedir arg -- automatic internal package deps from prof to devel to base -- rename ghc_requires to ghc_devel_requires -- drop ghc_doc_requires -- ghc_reindex_haddock is deprecated and now a no-op - -* Thu Sep 30 2010 Jens Petersen <petersen@redhat.com> - 0.9.1-1 -- fix without_shared build so it actually works - -* Thu Sep 30 2010 Jens Petersen <petersen@redhat.com> - 0.9.0-1 -- add rpm provides and requires script ghc-deps.sh for package hash metadata -- turn on hash provides and disable debuginfo by default -- make shared and hscolour default -- use without_shared and without_hscolour to disable them -- add ghc_pkg_obsoletes for obsoleting old packages -- use ghcpkgbasedir -- always obsolete -doc packages, but keep -o for now for backward compatibility - -* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.8.1-1 -- fix ghc_strip_dynlinked when no dynlinked files -- devel should provide doc also when not obsoleting - -* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.8.0-1 -- merge -doc into -devel and provide -o obsoletes doc subpackage option - -* Mon Jun 28 2010 Jens Petersen <petersen@redhat.com> - 0.7.1-1 -- support hscolour'ing of src from haddock -- really remove redundant summary and description option flags - -* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 0.7.0-1 -- new ghc_bin_build, ghc_bin_install, ghc_lib_build, ghc_lib_install - -* Thu Jun 24 2010 Jens Petersen <petersen@redhat.com> - 0.6.2-1 -- a couple more fallback summary tweaks - -* Thu Jun 24 2010 Jens Petersen <petersen@redhat.com> - 0.6.1-1 -- drop the summary -s and description -d package options since rpm does not - seem to allow white\ space in macro option args anyway - -* Wed Jun 23 2010 Jens Petersen <petersen@redhat.com> - 0.6.0-1 -- make ghc_strip_dynlinked conditional on no debug_package - -* Wed Jun 23 2010 Jens Petersen <petersen@redhat.com> - 0.5.9-1 -- replace ghc_strip_shared with ghc_strip_dynlinked - -* Sun Jun 20 2010 Jens Petersen <petersen@redhat.com> - 0.5.8-1 -- add ghc_strip_shared to strip shared libraries - -* Sun Jun 20 2010 Jens Petersen <petersen@redhat.com> - 0.5.7-1 -- add comments over macros -- drop unused cabal_makefile - -* Mon Apr 12 2010 Jens Petersen <petersen@redhat.com> - 0.5.6-1 -- drop unused ghc_pkg_ver macro -- add ghc_pkg_recache macro - -* Fri Jan 15 2010 Jens Petersen <petersen@redhat.com> - 0.5.5-1 -- drop optional 2nd version arg from ghcdocdir, ghcpkgdir, and - ghc_gen_filelists: multiversion subpackages are not supported -- add ghcpkgbasedir -- bring back some shared conditions which were dropped temporarily -- test for ghcpkgdir and ghcdocdir in ghc_gen_filelists -- allow optional pkgname arg for cabal_pkg_conf -- can now package gtk2hs - -* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.4-1 -- use -v in ghc_requires and ghc_prof_requires for version - -* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.3-1 -- drop "Library for" from base lib summary - -* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.2-1 -- use -n in ghc_requires and ghc_prof_requires for when no pkg_name - -* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.1-1 -- add ghcdocbasedir -- revert ghcdocdir to match upstream ghc -- ghcdocdir and ghcpkgdir now take optional name version args -- update ghc_gen_filelists to new optional name version args -- handle docdir in ghc_gen_filelists -- ghc_reindex_haddock uses ghcdocbasedir -- summary and description options to ghc_binlib_package, ghc_package_devel, - ghc_package_doc, and ghc_package_prof - -* Sun Jan 10 2010 Jens Petersen <petersen@redhat.com> - 0.5.0-1 -- pkg_name must be set now for binlib packages too -- new ghc_lib_package and ghc_binlib_package macros make packaging too easy -- ghc_package_devel, ghc_package_doc, and ghc_package_prof helper macros -- ghc_gen_filelists now defaults to ghc-%%{pkg_name} -- add dynamic bcond to cabal_configure instead of cabal_configure_dynamic - -* Thu Dec 24 2009 Jens Petersen <petersen@redhat.com> - 0.4.0-1 -- add cabal_configure_dynamic -- add ghc_requires, ghc_doc_requires, ghc_prof_requires - -* Tue Dec 15 2009 Jens Petersen <petersen@redhat.com> - 0.3.1-1 -- use ghc_version_override to override ghc_version -- fix pkg .conf filelist match - -* Sat Dec 12 2009 Jens Petersen <petersen@redhat.com> - 0.3.0-1 -- major updates for ghc-6.12, package.conf.d, and shared libraries -- add shared support to cabal_configure, ghc_gen_filelists -- version ghcdocdir -- replace ghc_gen_scripts, ghc_install_scripts, ghc_register_pkg, ghc_unregister_pkg - with cabal_pkg_conf -- allow (ghc to) override ghc_version - -* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.5-1 -- make ghc_pkg_ver only return pkg version - -* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.4-1 -- change GHCRequires to ghc_pkg_ver - -* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.3-1 -- use the latest installed pkg version for %%GHCRequires - -* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.2-1 -- add %%GHCRequires for automatically versioned library deps - -* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 0.2.1-2 -- no, revert versioned ghcdocdir again! - -* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 0.2.1-1 -- version ghcdocdir to allow multiple doc versions like ghcpkgdir - -* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Tue Jun 9 2009 Jens Petersen <petersen@redhat.com> - 0.2-1 -- drop version from ghcdocdir since it breaks haddock indexing - -* Wed May 13 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-7 -- specifies the macros file as a %%conf - -* Sat May 9 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-6 -- removes archs and replaces with noarch -- bumps to avoid conflicts with jens - -* Fri May 8 2009 Jens Petersen <petersen@redhat.com> - 0.1-5 -- make it arch specific to fedora ghc archs -- setup a build dir so it can build from the current working dir - -* Wed May 6 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-4 -- renamed license file -- removed some extraneous comments needed only at review time - -* Wed May 6 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 0.1-3 -- updated license to GPLv3 -- added AUTHORS file - -* Tue May 5 2009 Yaakov M. Nemoy <ghc@hexago.nl> - 0.1-2 -- moved copying license from %%build to %%prep - -* Mon May 4 2009 Yaakov M. Nemoy <ghc@hexago.nl> - 0.1-1 -- creation of package - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/macros.ghc new/ghc-rpm-macros-1.9.90/macros.ghc --- old/ghc-rpm-macros-1.7.4/macros.ghc 2018-04-17 21:49:50.521888994 +0200 +++ new/ghc-rpm-macros-1.9.90/macros.ghc 2019-12-21 14:32:49.370616082 +0100 @@ -9,28 +9,21 @@ # compiler version %ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override} -# check ghc version was rebuilt against self -%ghc_check_bootstrap\ -if [ ! "$(ghc --info | grep \\"Booter\\ version\\",\\"%{ghc_version}\\")" ]; then\ - echo "Warning: this ghc build is not self-bootstrapped."\ -%if %{undefined ghc_bootstrapping}\ - echo "The ghc package should be rebuilt against its current version before\ -proceeding, to avoid dependency ABI breakage from a future ghc rebuild."\ - echo "To override set ghc_bootstrapping."\ - echo "Aborting."\ - exit 1\ -%endif\ -fi - # no _pkgdocdir in openSUSE %_pkgdocdir %{_docdir}/%{name} +%ghc_set_gcc_flags\ +%global _hardened_ldflags %{nil}\ +%{nil} + # configure %cabal_configure\ -%ghc_check_bootstrap\ -%global _hardened_ldflags %{nil}\ +%ghc_set_gcc_flags\ +if ! [ -f Setup.hs -o -f Setup.lhs ]; then\ +cp %{_datadir}/ghc-rpm-macros/Setup.hs .\ +fi\ %cabal --version\ -%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options +%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --ghc --dynlibdir=%{_libdir}/'$compiler/$pkgid' %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options # install %cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options} @@ -62,12 +55,6 @@ # top library dir %ghclibdir %{_libdir}/ghc-%{ghc_version} -%_ghcdynlibdir %(%{_rpmconfigdir}/ghc-dirs.sh %{_libdir} %{pkg_name}-%{version} dynlibdir) - -%_ghcpkglibdir %(%{_rpmconfigdir}/ghc-dirs.sh %{_libdir} %{pkg_name}-%{version} pkglibdir) - -%Cabal_version %(ghc-pkg --global --simple-output list Cabal | sed -e "s/Cabal-//") - %_ghclicensedir %{?_defaultlicensedir}%{!?_defaultlicensedir:%_docdir} # ghc_gen_filelists [name] [version] @@ -77,36 +64,27 @@ %define basepkg %{?ghc_name}%{!?ghc_name:ghc}-%{pkgname}\ %define pkgnamever %{pkgname}-%{pkgver}\ %define docdir %{ghclibdocdir}/%{pkgnamever}\ +if [ -z "$(ls %{buildroot}%{ghclibdir}/package.conf.d/)" ]; then\ +echo "%{buildroot}%{ghclibdir}/package.conf.d/*.conf not found"\ +exit 1\ +fi\ rm -f %{basepkg}.files %{basepkg}-devel.files\ touch %{basepkg}.files %{basepkg}-devel.files\ -%if %{undefined has_internal_sub_libraries}\ -keyname=$(%{_rpmconfigdir}/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field %{pkgnamever} key)\ -pkgdir="%{ghclibdir}/${keyname}"\ -echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf" >> %{basepkg}-devel.files\ +ls %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\ +pkgdir="%{ghclibdir}/%{pkgnamever}"\ if [ -d "%{buildroot}${pkgdir}" ]; then\ -echo "%%dir ${pkgdir}" >> %{basepkg}.files\ -%if %{undefined ghc_without_shared}\ -echo "%%attr(755,root,root) ${pkgdir}/libHS*-ghc%{ghc_version}.so" >> %{basepkg}.files\ -%endif\ -find %{buildroot}${pkgdir} -mindepth 1 -type d | sed "s/^/%dir /" >> %{basepkg}-devel.files\ -find %{buildroot}${pkgdir} ! \\( -type d -o -name "libHS*.so" \\) >> %{basepkg}-devel.files\ -fi\ +%if %{defined _ghcdynlibdir}\ +echo "${pkgdir}" >> %{basepkg}-devel.files\ %else\ -echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf" >> %{basepkg}-devel.files\ -for keybase in $(ls %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}* | sed -r -e "s:.conf$::g"); do\ -keyname=$(basename $keybase)\ -echo ${keyname}\ -pkgdir="%{ghclibdir}/${keyname}"\ -if [ -d "%{buildroot}${pkgdir}" ]; then\ echo "%%dir ${pkgdir}" >> %{basepkg}.files\ %if %{undefined ghc_without_shared}\ -echo "%%attr(755,root,root) ${pkgdir}/libHS*-ghc%{ghc_version}.so" >> %{basepkg}.files\ +echo "%%attr(755,root,root) ${pkgdir}/libHS*-*ghc%{ghc_version}.so" >> %{basepkg}.files\ %endif\ find %{buildroot}${pkgdir} -mindepth 1 -type d | sed "s/^/%dir /" >> %{basepkg}-devel.files\ find %{buildroot}${pkgdir} ! \\( -type d -o -name "libHS*.so" \\) >> %{basepkg}-devel.files\ -fi\ -done\ %endif\ +echo "%%attr(755,root,root) %{?_ghcdynlibdir}%{!?_ghcdynlibdir:${pkgdir}}/libHS%{pkgnamever}-*ghc%{ghc_version}.so" >> %{basepkg}.files\ +fi\ if [ -d "%{buildroot}%{docdir}" ]; then\ echo "%{docdir}" >> %{basepkg}-devel.files\ fi\ @@ -122,6 +100,7 @@ done\ %{nil} + # create and install package.conf file # cabal_pkg_conf [name] [version] %cabal_pkg_conf()\ @@ -131,14 +110,15 @@ %cabal register --gen-pkg-config\ if [ -d %{pkgnamever}.conf ]; then\ for i in $(ls "%{pkgnamever}.conf/"); do\ -conf=$(echo $i | sed -r -e "s/^[0-9]+-//g;s/$/.conf/g")\ -install -D --mode=0644 %{pkgnamever}.conf/${i} %{buildroot}%{ghclibdir}/package.conf.d/${conf}\ +sub=$(echo $i | sed -e "s/^[0-9]\\+-//")\ +install -D --mode=0644 %{pkgnamever}.conf/${i} %{buildroot}%{ghclibdir}/package.conf.d/${sub}.conf\ done\ else\ install -D --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}.conf\ fi\ %{nil} + # ghc_bin_build %ghc_bin_build\ %cabal_configure\ @@ -153,12 +133,12 @@ # ghc_lib_build [name] [version] %ghc_lib_build()\ -%ghc_lib_build_without_haddock\ +%ghc_lib_build_without_haddock %{?1} %{?2}\ %if %{undefined without_haddock}\ %define pkgname %{?1}%{!?1:%{pkg_name}}\ %define pkgver %{?2}%{!?2:%{version}}\ if [ -n dist/build/libHS%{pkgname}-%{pkgver}*.so ]; then\ -%cabal haddock --html %{!?without_hscolour:%(if [ -x %{_bindir}/HsColour ]; then echo --hyperlink-source; fi)} --hoogle %{?cabal_haddock_options}\ +%cabal haddock --html --hyperlink-source %{?with_quickjump:--quickjump} --hoogle %{?cabal_haddock_options}\ fi\ %endif\ %{nil} @@ -184,8 +164,8 @@ %{!?_fileattrsdir:%global __find_provides %{_rpmconfigdir}/rpmdeps --provides}\ %{!?_fileattrsdir:%global __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\ %cabal_install\ -%cabal_pkg_conf\ -%ghc_gen_filelists\ +%cabal_pkg_conf %{?1} %{?2}\ +%ghc_gen_filelists %{?1} %{?2}\ %{!?1:%ghc_strip_dynlinked}\ %{?ghc_subpackaging:%ghc_fix_rpath %{subpkgs}}\ %{nil} @@ -201,14 +181,11 @@ case $rpath in\ *$PWD/$lib/dist/build*)\ case %{ghc_version} in\ - 7.10.*)\ - pkgid=$(cd %{buildroot}%{ghclibdir}/package.conf.d; ls ${lib}* | sed -e "s/.conf$//")\ - syspath=$(%{_rpmconfigdir}/ghc-pkg-wrapper %{buildroot}%{ghclibdir} --package-db=%{buildroot}%{ghclibdir}/package.conf.d field $pkgid library-dirs) ;;\ *)\ pkgid=$(cd %{buildroot}%{ghclibdir}; echo ${lib}*)\ - syspath=$(%{_rpmconfigdir}/ghc-pkg-wrapper %{buildroot}%{ghclibdir} --package-db=%{buildroot}%{ghclibdir}/package.conf.d field $lib library-dirs | grep $pkgid) ;;\ + syspath=$(%{_rpmconfigdir}/ghc-pkg-wrapper %{buildroot}%{ghclibdir} --global --package-db=%{buildroot}%{ghclibdir}/package.conf.d field $lib library-dirs | grep $pkgid) ;;\ esac\ - newrpath=$(echo $rpath | sed -e "s@$PWD/$lib/dist/build@${syspath}@g")\ + newrpath=$(echo $rpath | sed -e "s@$PWD/$lib/dist/build@${syspath}@g" -e "s/::/:/" -e "s/^://" -e "s/:$//")\ chrpath -r $newrpath $i\ ;;\ esac\ @@ -258,3 +235,8 @@ %global without_prof 1\ %global without_haddock 1\ %global without_manual 1 + +# skip prof libs and documentation +%ghc_quick_build\ +%global without_prof 1\ +%global without_haddock 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghc-rpm-macros-1.7.4/macros.ghc-extra new/ghc-rpm-macros-1.9.90/macros.ghc-extra --- old/ghc-rpm-macros-1.7.4/macros.ghc-extra 2018-04-17 21:49:50.521888994 +0200 +++ new/ghc-rpm-macros-1.9.90/macros.ghc-extra 2019-12-19 19:19:32.419770595 +0100 @@ -17,7 +17,6 @@ %define basepkg %{ghc_prefix}-%{pkgname}\ %package -n %{basepkg}\ Summary: Haskell %{pkgname} library\ -Group: System/Libraries\ %{?1:Version: %{pkgver}}\ %{-l:License: %{-l*}}\ Url: http://hackage.haskell.org/package/%{pkgname}\ @@ -28,7 +27,6 @@ \ %package -n %{basepkg}-devel\ Summary: Haskell %{pkgname} library development files\ -Group: Development/Languages/Other\ %{?1:Version: %{pkgver}}\ %{-l:License: %{-l*}}\ Requires(post): %{ghc_prefix}-compiler = %{ghc_version}\ @@ -48,15 +46,9 @@ %ghc_pkg_recache\ \ %files -n %{basepkg} -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}.files\ -%if 0%{?rhel} && 0%{?rhel} < 6\ -%defattr(-,root,root,-)\ -%endif\ %{?base_doc_files:%doc %base_doc_files}\ \ %files -n %{basepkg}-devel -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-devel.files\ -%if 0%{?rhel} && 0%{?rhel} < 6\ -%defattr(-,root,root,-)\ -%endif\ %{?devel_doc_files:%doc %devel_doc_files}\ %{nil}