# generated by cabal-rpm-2.1.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %bcond_without tests Name: rhbzquery Version: 0.4.4 Release: 6%{?dist} Summary: Bugzilla query tool License: GPL-2.0-or-later 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-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-config-ini-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-email-validate-devel BuildRequires: ghc-extra-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-http-types-devel BuildRequires: ghc-optparse-applicative-devel BuildRequires: ghc-simple-cmd-devel BuildRequires: ghc-simple-cmd-args-devel BuildRequires: ghc-text-devel # End cabal-rpm deps BuildRequires: help2man %description A CLI tool for creating bugzilla queries for bugzilla.redhat.com. %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 help2man --no-info %{buildroot}%{_bindir}/%{name} > %{name}.man install -pm 644 -D %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1 %check %if %{with tests} # remove for next release PATH=%{buildroot}%{_bindir}:$PATH %cabal_test %endif %files # Begin cabal-rpm files: %license LICENSE %doc ChangeLog.md README.md TODO %{_bindir}/%{name} %{_datadir}/bash-completion/completions/%{name} # End cabal-rpm files %{_mandir}/man1/%{name}.1* %changelog * Thu Feb 16 2023 Jens Petersen - 0.4.4-6 - refresh to cabal-rpm-2.1.0 with SPDX migration * Sat Jul 23 2022 Fedora Release Engineering - 0.4.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen - 0.4.4-4 - rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Miro HronĨok - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 * Mon Sep 06 2021 Jens Petersen - 0.4.4-1 - '--list-fields' now also shows field aliases - add 'arch'/'platform' aliases - experimental '--reverse' command: converts url to args * Fri Aug 06 2021 Jens Petersen - 0.4.3-3 - rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Feb 15 2021 Jens Petersen - 0.4.3-1 - support status with 'STATE' - Bugzilla uses 'notequals' (not 'notequal') - fix missing EPEL version prefix * Wed Jan 27 2021 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 8 18:54:42 +08 2021 Jens Petersen - 0.4.2-1 - new --query command - new --server option * Thu Dec 17 2020 Jens Petersen - 0.4.1-1 - change license from BSD to GPLv2+ - set no stdout buffering (#1906493) - generate basic manpage with help2man * Sat Dec 12 2020 Jens Petersen - 0.4-1 - add --list-operators - rename longer operators to be easier * Thu Dec 10 2020 Jens Petersen - 0.3-1 - add --list-fields option - field validation: error for unknown fields - map content' field '~'/'!~' to matches/notmatches * Wed Dec 9 2020 Jens Petersen - 0.2-1 - support most search types (regexp, allwords, etc and negatives) * Fri Dec 4 23:29:02 +08 2020 Jens Petersen - 0.1.1-1 - --file a bug - --help: do not format FIELDS * Wed Dec 2 2020 Jens Petersen - 0.1.0-1 - initial package