Compare commits

..

80 Commits
i9ce ... epel9

Author SHA1 Message Date
Jens Petersen f20cf923ae improve %ghc_delete_rpaths to delete leading and trailing %_libdir
5 months ago
Jens Petersen 8f46ab51f2 extra: add %ghc_merge_filelist from ghc*.spec
5 months ago
Fedora Release Engineering 05b135d0fc Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
5 months ago
Jens Petersen 509ff09e05 undefine %debug_package rather than %_enable_debug_packages
7 months ago
Jens Petersen 349de2927a rename no-prof to quick
10 months ago
Jens Petersen 54db49e3b4 tweak some of the messages
10 months ago
Jens Petersen 052f7ef610 no-prof: add ghc_haddocks override
10 months ago
Jens Petersen 05a30bbe06 version 2.6.8
10 months ago
Jens Petersen 1cc9ba6378 os: define %ghc_haddocks for %haskell_setup
10 months ago
Jens Petersen 33536e7869 %cabal_configure: drop cabal --version
10 months ago
Jens Petersen ecda4751eb %ghc_set_gcc_flags: no need to define/export CFLAGS and LDFLAGS again
10 months ago
Jens Petersen 721beebc1c no-prof: add a %ghc_profiling override
10 months ago
Jens Petersen b344bafe9d fixup %cabal_configure: print package build header
10 months ago
Jens Petersen 60b8af07f5 prepare 2.6.7 release
10 months ago
Jens Petersen ab809592a0 fix no-prof subpackage to undefine %with_ghc_prof properly
10 months ago
Jens Petersen 0955ac9203 %cabal_configure: when subpackaging print subpackage header
10 months ago
Jens Petersen c6c144a6c0 cabal_configure: use --enable-library-profiling instead of -p
10 months ago
Jens Petersen ce2d3a11d4 drop fedora lowerbound for obsoletes subpkg
10 months ago
Jens Petersen bb2f1ebea3 add no-prof subpackage: disables building prof subpackages
10 months ago
Jens Petersen 000d471347 %cabal_test: conditional is in cabal-rpm
10 months ago
Fedora Release Engineering 7c9482ee7a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
11 months ago
Fedora Release Engineering 9d75f58f15 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
11 months ago
Jens Petersen c35adbb919 test-rebuild.sh: handle epel
12 months ago
Jens Petersen a8ecfed0e9 prepare 2.6.5
1 year ago
Jens Petersen beafd4c14d improve ghc-info.sh with a show mode
1 year ago
Jens Petersen 52c1a4cf86 ghc-deps.sh: make ghc-version arg cleaner
1 year ago
Jens Petersen e0969bcd81 ghc-deps.sh: ghc-9.8 prof fixes from opensuse (mimi1vx)
1 year ago
Jens Petersen 6de96812b5 append \ to flatpak comments
1 year ago
Jens Petersen 6fc265fb5e add comments about flatpak hardcoding of paths
1 year ago
Yaakov Selkowitz cb06e9e98f Fix flatpak builds
1 year ago
Jens Petersen 0a2fb947eb Revert "ghc_gen_filelists: tweak haddock_dir for ghc-9.8 short hash suffices"
1 year ago
Jens Petersen 1466da90e6 ghc_gen_filelists: tweak haddock_dir for ghc-9.8 short hash suffices
1 year ago
Jens Petersen 6715b2ec7b %ghc_gen_filelists: tweak pkgdir for ghc-9.8 library short hashes
1 year ago
Jens Petersen 774ae4cf8f add ghc-info.sh to read fields from ghc --info
1 year ago
Jens Petersen 05a5bef533 ghc_set_gcc_flags: only reduce GCC for s390x for ghc < 9.2
1 year ago
Jens Petersen 4c6ae99d0a move iwlib obsoletes to f32
1 year ago
Jens Petersen 8731e3a669 remove old f29-f31 obsoletes
1 year ago
Jens Petersen 6c7a63072f bump release
1 year ago
Jens Petersen a7c0dc9731 migrate license tag to SPDX
1 year ago
Jens Petersen 2a7dea60de f39: obsoletes data-array-byte
1 year ago
Jens Petersen 007effd691 ghc-deps.sh: ShellCheck use for loop instead of [ -f -o -f -o ...]
1 year ago
Jens Petersen 0cc079600d fixup! ghc-deps.sh: correctly map library id to internal package .conf
1 year ago
Jens Petersen d53aa8ff45 2.5.3 changelog entries
1 year ago
Jens Petersen 413bc084eb remove deprecated comment from %ghclibplatform
1 year ago
Jens Petersen 1775999b4f ghc-pkg-wrapper: use $( )
1 year ago
Jens Petersen 677bd4cd6b F39: obsolete geniplate-mirror
1 year ago
Jens Petersen 10d6e38a6f ghc-deps.sh: correctly map library id to internal package .conf
1 year ago
Jens Petersen 42479e3691 tweak cabal_configure to only set --htmldir once for subpackaging
1 year ago
Jens Petersen 105fd8ed86 add %ghc_major_version
1 year ago
Fedora Release Engineering 13c177cf0f Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1 year ago
Jens Petersen da8b6a2c9f f38: also obsolete regex-compat-tdfa
2 years ago
Jens Petersen b918424076 add obsoletes for F38
2 years ago
Jens Petersen 3a116c6a29 ghc.attr: include Hadrian lib/ subdir in .conf regex
2 years ago
Jens Petersen 6d69503ff3 ghc-dep.sh: check for *_p.a under Hadrian platform subdir as well
2 years ago
Jens Petersen fa4c615f86 2.5.1
2 years ago
Jens Petersen 2e806acfa1 ghc-deps.sh: remove whitespace before package name
2 years ago
Jens Petersen 18fd461ac2 make ghc-dep.sh and ghc-pkg-wrapper error if error occurs
2 years ago
Jens Petersen 90f14946a1 add %ghc_merge_filelist
2 years ago
Jens Petersen e429bfe81c macros.ghc: move ghc_*_build, ghc_*_install, cabal_pkg_conf earlier
2 years ago
Jens Petersen e71475ee24 changelog for 2.5.0
2 years ago
Jens Petersen 58f3979109 %ghc_delete_rpaths: need to remove local RPATH for subpackaged libs
2 years ago
Jens Petersen ce204c6b81 %cabal_configure: non-core shared libs go to %ghcliblib
2 years ago
Jens Petersen 7d2510b141 move with_ghc_prof to ghc-srpm-macros
2 years ago
Jens Petersen 0017f57fc4 setup _ghcdynlibdir from spec file for current releases
2 years ago
Jens Petersen 323880f227 only %ghc_delete_rpaths for _ghcdynlibdir
2 years ago
Jens Petersen 8400579198 handle hadrian lib/ subdir consistently for packages
2 years ago
Jens Petersen dfacabb0d6 %ghc_lib_subpackage: with %ghc_obsoletes_name obsolete ghc%{ghc_major}-*
2 years ago
Jens Petersen e7cc30b58f %ghc_bin_build -W to ignore %ghc_name version in %cabal_configure
2 years ago
Jens Petersen 44501cb02b disable _ghcdynlibdir as default
2 years ago
Jens Petersen c6ebe00c11 use upstream paths for libHS*.so unless _ghcdynlibdir
2 years ago
Jens Petersen 3c68a12dbb remove ghc-info.sh again
2 years ago
Jens Petersen 030e119f14 cabal_configure: default dynlibdir to libdir/ghc-version
2 years ago
Jens Petersen fc5fb26e31 ghc_gen_filelists: define basepkg later
2 years ago
Jens Petersen 7e3e6494e2 ghc_gen_filelists: error if no .so file and not metapkg
2 years ago
Jens Petersen 668dd10c99 base ghc_version on compiler subpackage
2 years ago
Jens Petersen 4ac79fbdbd drop old rhel6 extra deps lines from ghc-deps.sh
2 years ago
Jens Petersen acff114c1d add ghc-info.sh to handle hadrian %ghclibdir/lib
2 years ago
Jens Petersen 1e680edbc7 ghc_configure and ghc_version now respect ghc_name for ghcX.Y
2 years ago
Jens Petersen dfe7e03c1c define ghc_smp_mflags to speed up package builds
2 years ago
Jens Petersen d5f701318c F36 obsoletes regex-applicative-text
2 years ago

1
.gitignore vendored

@ -0,0 +1 @@
/ghc-rpm-macros-*/

@ -261,9 +261,6 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
- obsolete ghc-data-array-byte - obsolete ghc-data-array-byte
- migrate to SPDX license tag - migrate to SPDX license tag
* Fri Aug 18 2023 Alexey Lyubimov <a.lyubimov@msvsphere.ru> - 2.5.3-1
- Rebuilt for MSVSphere 9.2
* Fri Aug 4 2023 Jens Petersen <petersen@redhat.com> - 2.5.3-1 * Fri Aug 4 2023 Jens Petersen <petersen@redhat.com> - 2.5.3-1
- ghc-deps.sh: correctly map internal library id to internal package .conf - ghc-deps.sh: correctly map internal library id to internal package .conf
- tweak cabal_configure to only set --htmldir once for subpackaging - tweak cabal_configure to only set --htmldir once for subpackaging

@ -0,0 +1,79 @@
#!/bin/sh
# for testing updates to ghc-rpm-macros etc
# In a pkg dir run
# $ ./test-rebuild.sh
# or clone a pkg branch:
# $ ./test-rebuild.sh [pkg]
set -e
PKG=${1:-$(fedpkg gimmespec | sed -e "s/.spec//")}
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
[ -d "$PKG" ] && cd $PKG
ARCH=$(arch)
#if [ -d $ARCH ]; then
# echo Please move existing $ARCH/
# exit 1
#fi
if [ -f /etc/os-release ]; then
eval $(grep VERSION_ID /etc/os-release)
if rpm -q --quiet epel-release; then
PREFIX=epel
else
PREFIX=f
fi
if git branch -a | grep -q $PREFIX$VERSION_ID; then
BRANCH=$PREFIX$VERSION_ID
else
case $VERSION_ID in
7.*) BRANCH=epel7 ;;
*) BRANCH=rawhide ;;
esac
fi
fi
if [ "* $BRANCH" != "$(git branch | grep '^*')" ]; then
fedpkg switch-branch $BRANCH
fi
if [ "* $BRANCH" != "$(git branch | grep '^*')" ]; then
echo "Git branch does not match Fedora installation!"
exit 1
fi
git pull
if [ "$UID" != "0" ]; then
SUDO="sudo"
else
SUDO=""
fi
echo Running dnf builddep:
$SUDO dnf builddep $PKG.spec
fedpkg local
VERREL=$(fedpkg verrel | sed -e "s/^$PKG-//")
TMP=test-tmp
mkdir -p $TMP/
PKGS=$(cd $ARCH; rpm -qp *-$VERREL.*.rpm)
for i in $PKGS; do
# FIXME: should check NVR is same before building
rpm -q --quiet $i || $SUDO dnf install -q $i
for k in list requires provides scripts; do
rpm -qp --$k $ARCH/$i.rpm | grep -v rpmlib > $TMP/$i.$k.test || :
rpm -q --$k $i | grep -v rpmlib > $TMP/$i.$k.installed || :
diff -u $TMP/$i.$k.installed $TMP/$i.$k.test -I /usr/lib/.build-id || :
done
done
Loading…
Cancel
Save