%undefine _enable_debug_packages Name: unison Version: 0.5.20 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: ghc9.2 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 9.2.8 || : if [ -d "$HOME/.stack/programs/ppc64le-linux" ]; then mv $HOME/.stack/programs/{ppc64le,ppc64}-linux fi LANG=C.utf8 stack --no-install-ghc --system-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 * 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