ghc-simple-cmd/ghc-simple-cmd.spec

220 lines
6.2 KiB
RPMSpec
Raw Normal View History

2023-01-22 17:39:56 +00:00
# generated by cabal-rpm-2.1.0
2020-06-04 11:28:16 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2018-10-02 03:15:52 +00:00
%global pkg_name simple-cmd
%global pkgver %{pkg_name}-%{version}
2022-05-29 14:18:29 +00:00
%bcond_without tests
2018-10-02 03:15:52 +00:00
Name: ghc-%{pkg_name}
2023-01-22 17:39:56 +00:00
Version: 0.2.7
Release: 1%{?dist}
2018-10-02 03:15:52 +00:00
Summary: Simple String-based process commands
2023-01-22 17:39:56 +00:00
License: BSD-3-Clause
2018-10-02 03:15:52 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm sources:
2018-10-02 03:15:52 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:47:07 +00:00
# End cabal-rpm sources
2018-10-02 03:15:52 +00:00
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm deps:
2018-10-02 03:15:52 +00:00
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
2023-01-22 17:39:56 +00:00
BuildRequires: ghc-base-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-extra-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
%if %{with ghc_prof}
2020-02-08 14:52:02 +00:00
BuildRequires: ghc-base-prof
BuildRequires: ghc-directory-prof
2020-07-16 11:56:58 +00:00
BuildRequires: ghc-extra-prof
2020-02-08 14:52:02 +00:00
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-process-prof
2022-05-29 14:18:29 +00:00
BuildRequires: ghc-time-prof
2020-02-08 14:52:02 +00:00
BuildRequires: ghc-unix-prof
2023-01-22 17:39:56 +00:00
%endif
2022-05-29 14:18:29 +00:00
%if %{with tests}
BuildRequires: ghc-hspec-devel
%endif
# End cabal-rpm deps
2018-10-02 13:52:13 +00:00
# for Rpm.rpmspec
2018-10-05 06:42:50 +00:00
%if 0%{?fedora} || 0%{?rhel} > 7
2018-10-02 13:52:13 +00:00
Recommends: rpm-build
2018-10-05 06:42:50 +00:00
%endif
2018-10-02 03:15:52 +00:00
%description
2019-07-27 17:05:32 +00:00
Simple wrappers over System.Process (readProcess, readProcessWithExitCode,
rawSystem, and createProcess). The idea is to provide some common idioms for
calling out to commands from programs. For more advanced shell-scripting or
2022-05-29 14:18:29 +00:00
streaming use turtle, shelly, shake, etc.
2018-10-02 03:15:52 +00:00
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-10-02 03:15:52 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
BuildArch: noarch
2021-07-07 16:30:13 +00:00
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2018-10-02 03:15:52 +00:00
%prep
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm setup:
2018-10-02 03:15:52 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:47:07 +00:00
# End cabal-rpm setup
2018-10-02 03:15:52 +00:00
%build
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm build:
2018-10-02 03:15:52 +00:00
%ghc_lib_build
2019-02-17 14:47:07 +00:00
# End cabal-rpm build
2018-10-02 03:15:52 +00:00
%install
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm install
2018-10-02 03:15:52 +00:00
%ghc_lib_install
2019-02-17 14:47:07 +00:00
# End cabal-rpm install
2018-10-02 03:15:52 +00:00
2022-05-29 14:18:29 +00:00
%check
%if %{with tests}
%cabal_test
%endif
2018-10-02 03:15:52 +00:00
%files -f %{name}.files
2019-02-17 14:47:07 +00:00
# Begin cabal-rpm files:
2018-10-02 03:15:52 +00:00
%license LICENSE
2019-02-17 14:47:07 +00:00
# End cabal-rpm files
2018-10-02 03:15:52 +00:00
%files devel -f %{name}-devel.files
%doc ChangeLog.md README.md TODO
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2018-10-02 03:15:52 +00:00
%changelog
2023-01-22 17:39:56 +00:00
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 0.2.7-1
- https://hackage.haskell.org/package/simple-cmd-0.2.7/changelog
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-17 17:19:24 +00:00
* Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 0.2.6-2
- rebuild
2022-05-29 14:18:29 +00:00
* Sun May 29 2022 Jens Petersen <petersen@redhat.com> - 0.2.6-1
- error' and warning are now strict
- pipeBool: return False if either end fails
- add filesWithExtension and fileWithExtension
- cmdN: quote arguments with show
- add timeIO: runs action and prints the time it took
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-01-28 16:49:21 +00:00
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 0.2.3-1
- update to 0.2.3
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-16 11:56:58 +00:00
* Thu Jul 16 2020 Jens Petersen <petersen@redhat.com> - 0.2.2-1
- update to 0.2.2
2020-02-14 03:59:07 +00:00
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 0.2.1-1
- update to 0.2.1
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-12-23 10:16:22 +00:00
* Mon Dec 23 2019 Jens Petersen <petersen@redhat.com> - 0.2.0.1-3
- bring back scripts for ghc_pkg_recache
* Sun Dec 22 2019 Jens Petersen <petersen@redhat.com> - 0.2.0.1-2
- refresh to cabal-rpm-1.0.3:
- noarch doc and include license
- prof supplements devel
- f30 packaging compatibility
2019-07-27 17:05:32 +00:00
* Sat Jul 27 2019 Jens Petersen <petersen@redhat.com> - 0.2.0.1-1
- update to 0.2.0.1
2019-07-25 16:36:38 +00:00
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 0.1.4-1
- update to 0.1.4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-03-18 01:59:11 +00:00
* Sun Mar 17 2019 Jens Petersen <petersen@redhat.com> - 0.1.3.1-1
- update to 0.1.3.1
- better sudo
2019-02-24 08:15:55 +00:00
* Sun Feb 24 2019 Jens Petersen <petersen@redhat.com> - 0.1.3-1
- update to 0.1.3
2019-02-21 04:17:51 +00:00
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 0.1.2-1
- update to 0.1.2
2019-02-17 14:47:07 +00:00
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.1.1-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-02 13:52:13 +00:00
* Tue Oct 02 2018 Jens Petersen <petersen@redhat.com> - 0.1.1-1
- https://hackage.haskell.org/package/simple-cmd-0.1.1/changelog
2018-10-02 03:15:52 +00:00
* Thu Sep 13 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1.0.0-1
- spec file generated by cabal-rpm-0.12.6