%define debug_package %{nil} %if 0%{?fedora} < 41 %global ghc_major 9.6 %global ghc_name ghc%{?ghc_major} %endif Name: unison Version: 0.5.29 Release: 1%{?dist} Summary: Unison language License: MIT URL: https://www.unison-lang.org/ Source0: https://github.com/unisonweb/unison/archive/refs/tags/release/%{version}.tar.gz#/unison-release-%{version}.tar.gz Patch0: unison-version.patch BuildRequires: stack BuildRequires: ghc%{?ghc_major} BuildRequires: ghc-rpm-macros BuildRequires: zlib-devel Recommends: fzf %description Unison programming language. %prep %setup -q -n unison-release-%{version} sed s/@VERSION@/%{version}/ %{PATCH0} | patch -p1 %build %install stack-symlink-distro-ghc %{ghc_version} || : if [ -d "$HOME/.stack/programs/ppc64le-linux" ]; then mv $HOME/.stack/programs/{ppc64le,ppc64}-linux fi stack update LANG=C.utf8 stack --resolver lts-22 --no-install-ghc install mkdir -p %{buildroot}%{_bindir} cp -p ~/.local/bin/unison %{buildroot}%{_bindir} ln -s unison %{buildroot}%{_bindir}/ucm %files %license LICENSE %doc CONTRIBUTORS.markdown CREDITS.md README.md %{_bindir}/unison %{_bindir}/ucm %changelog * Fri Nov 15 2024 Jens Petersen - 0.5.28-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.28 * Thu Aug 1 2024 Jens Petersen - 0.5.25-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.25 - build with ghc9.6 * Mon May 27 2024 Jens Petersen - 0.5.20-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.19 - https://github.com/unisonweb/unison/releases/tag/release/0.5.20 * Thu Feb 29 2024 Jens Petersen - 0.5.18-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.18 * Tue Feb 20 2024 Jens Petersen - 0.5.17-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.17 * Wed Feb 14 2024 Jens Petersen - 0.5.16-1 - https://github.com/unisonweb/unison/releases/tag/release/0.5.16 * Fri Dec 15 2023 Jens Petersen - 0.5.11-2 - add ucm symlink * Fri Dec 15 2023 Jens Petersen - 0.5.11-1 - update to 0.5.11 (new upstream version format instead of M5k) - https://github.com/unisonweb/unison/releases/tag/release/0.5.11 * Sun Nov 19 2023 Jens Petersen - M5h-1 - update to M5h * Sat Aug 19 2023 Jens Petersen - M5c-1 - initial package