import #2010172
This commit is contained in:
parent
c4a737bc5e
commit
b4606d9611
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/hwk-0.6.tar.gz
|
76
hwk.spec
Normal file
76
hwk.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# generated by cabal-rpm-2.0.10
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||||
|
|
||||||
|
Name: hwk
|
||||||
|
Version: 0.6
|
||||||
|
Release: 3%{?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-static
|
||||||
|
BuildRequires: ghc-directory-static
|
||||||
|
BuildRequires: ghc-extra-static
|
||||||
|
BuildRequires: ghc-filepath-static
|
||||||
|
BuildRequires: ghc-hint-static
|
||||||
|
BuildRequires: ghc-simple-cmd-args-static
|
||||||
|
# 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
|
||||||
|
* 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
|
Loading…
Reference in New Issue
Block a user