80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
# generated by cabal-rpm-2.1.0
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
Name: hwk
|
|
Version: 0.6
|
|
Release: 4%{?dist}
|
|
Summary: Commandline text processing with Haskell functions
|
|
|
|
License: MIT
|
|
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-directory-devel
|
|
BuildRequires: ghc-extra-devel
|
|
BuildRequires: ghc-filepath-devel
|
|
BuildRequires: ghc-hint-devel
|
|
BuildRequires: ghc-simple-cmd-args-devel
|
|
# End cabal-rpm deps
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
Recommends: ghc-extra-devel
|
|
|
|
%description
|
|
A commandline tool for text processing with Haskell functions, complementing
|
|
unix-style tools like awk, grep, and sed. 'hwk' applies the function supplied
|
|
on the commandline using 'hint' to lines of input and outputs the results.
|
|
|
|
|
|
%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} |
|
|
# do not restrict completion to only files
|
|
sed s/filenames/default/ > \
|
|
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
# End cabal-rpm install
|
|
|
|
|
|
%files
|
|
# Begin cabal-rpm files:
|
|
%license LICENSE
|
|
%doc ChangeLog.md README.md
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}-%{version}
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
# End cabal-rpm files
|
|
|
|
|
|
%changelog
|
|
* Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 0.6-4
|
|
- refresh to cabal-rpm-2.1.0 with SPDX migration
|
|
|
|
* Mon Aug 22 2022 Jens Petersen <petersen@redhat.com> - 0.6-3
|
|
- use the final 0.6 release tarball (#2010172, Jakub Kadlčík)
|
|
|
|
* Mon Aug 22 2022 Jens Petersen <petersen@redhat.com> - 0.6-2
|
|
- format and comment on bash-completion pipeline (#2010172, Jakub Kadlčík)
|
|
|
|
* Mon Jun 14 2021 Jens Petersen <petersen@redhat.com> - 0.6-1
|
|
- spec file generated by cabal-rpm-2.0.10
|
|
- require built ghc version
|