# generated by cabal-rpm-2.1.5 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ # requires network %bcond_with tests Name: fedora-composes Version: 0.2.1 Release: 1%{?dist} Summary: Query Fedora composes License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-ansi-terminal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-extra-devel BuildRequires: ghc-http-conduit-devel BuildRequires: ghc-http-directory-devel BuildRequires: ghc-simple-cmd-args-devel BuildRequires: ghc-simple-prompt-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel %if %{with tests} BuildRequires: ghc-simple-cmd-devel %endif # End cabal-rpm deps %description CLI tool to list and check status of Fedora composes. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_bin_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_bin_install mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ %{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name} # End cabal-rpm install %check %if %{with tests} %cabal_test %endif %files # Begin cabal-rpm files: %license LICENSE %doc ChangeLog.md README.md %{_bindir}/%{name} %{_datadir}/bash-completion/completions/%{name} # End cabal-rpm files %changelog * Mon Sep 9 2024 Jens Petersen - 0.2.1-1 - https://hackage.haskell.org/package/fedora-composes-0.2.1/changelog * Wed Feb 14 2024 Jens Petersen - 0.2-1 - https://hackage.haskell.org/package/fedora-composes-0.2/changelog * Fri Aug 12 2022 Jens Petersen - 0.1-1 - spec file generated by cabal-rpm-2.0.12