# generated by cabal-rpm-2.0.11 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ # needs installed lsfrom %bcond_with tests Name: lsfrom Version: 0.1.1.1 Release: 3%{?dist} Summary: List directory files starting from a specific name License: BSD 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-filepath-static BuildRequires: ghc-simple-cmd-static BuildRequires: ghc-simple-cmd-args-static %if %{with tests} BuildRequires: ghc-directory-devel %endif # End cabal-rpm deps %description `lsfrom` lists the contents of a directory starting from a particular prefix and those files after it with respect to locale collation. This can be useful for example for continuing a command or script in a directory after a failure. %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 * Thu Jul 21 2022 Fedora Release Engineering - 0.1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen - 0.1.1.1-2 - rebuild * Sun Apr 24 2022 Jens Petersen - 0.1.1.1-1 - use `ls -A` - improve README * Thu Jan 20 2022 Fedora Release Engineering - 0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Miro HronĨok - 0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 * Fri Aug 06 2021 Jens Petersen - 0.1-3 - rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Feb 13 2021 Jens Petersen - 0.1-1 - spec file generated by cabal-rpm-2.0.8