diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f42b5e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hwk-0.6.tar.gz diff --git a/hwk.spec b/hwk.spec new file mode 100644 index 0000000..d79c26a --- /dev/null +++ b/hwk.spec @@ -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 - 0.6-3 +- use the final 0.6 release tarball (#2010172, Jakub Kadlčík) + +* Mon Aug 22 2022 Jens Petersen - 0.6-2 +- format and comment on bash-completion pipeline (#2010172, Jakub Kadlčík) + +* Mon Jun 14 2021 Jens Petersen - 0.6-1 +- spec file generated by cabal-rpm-2.0.10 +- require built ghc version diff --git a/sources b/sources new file mode 100644 index 0000000..e4da686 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hwk-0.6.tar.gz) = 55f5b4aa73b9c061fde7e13aa10e5ed007991e13be0b943f692a0d9accdf089ffee92af0068f7d0f06c3a8a14ae7016539dfd4c56823a808e9adadde4fd8ec26