Blame SPECS/ghc-typed-process.spec

abc64b
# generated by cabal-rpm-0.12.1
abc64b
# https://fedoraproject.org/wiki/Packaging:Haskell
abc64b
abc64b
%global pkg_name typed-process
abc64b
%global pkgver %{pkg_name}-%{version}
abc64b
abc64b
# testsuite disabled for ghc-8.2.2 since it changed ABI hash
abc64b
#%%ifnarch s390x
abc64b
#%%bcond_without tests
abc64b
#%%else
abc64b
%bcond_with tests
abc64b
#%%endif
abc64b
abc64b
Name:           ghc-%{pkg_name}
abc64b
Version:        0.2.1.0
abc64b
Release:        4%{?dist}
abc64b
Summary:        Run external processes, with strong typing of streams
abc64b
abc64b
License:        MIT
abc64b
Url:            https://hackage.haskell.org/package/%{pkg_name}
abc64b
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
abc64b
abc64b
BuildRequires:  ghc-Cabal-devel
abc64b
BuildRequires:  ghc-rpm-macros
abc64b
# Begin cabal-rpm deps:
abc64b
BuildRequires:  ghc-async-devel
abc64b
BuildRequires:  ghc-bytestring-devel
abc64b
BuildRequires:  ghc-process-devel
abc64b
BuildRequires:  ghc-stm-devel
abc64b
BuildRequires:  ghc-transformers-devel
abc64b
%if %{with tests}
abc64b
BuildRequires:  ghc-base64-bytestring-devel
abc64b
BuildRequires:  ghc-hspec-devel
abc64b
BuildRequires:  ghc-temporary-devel
abc64b
%endif
abc64b
# End cabal-rpm deps
abc64b
abc64b
%description
abc64b
Please see the tutorial at <https://haskell-lang.org/library/typed-process>.
abc64b
abc64b
abc64b
%package devel
abc64b
Summary:        Haskell %{pkg_name} library development files
abc64b
Provides:       %{name}-static = %{version}-%{release}
abc64b
Provides:       %{name}-doc = %{version}-%{release}
abc64b
%if %{defined ghc_version}
abc64b
Requires:       ghc-compiler = %{ghc_version}
abc64b
Requires(post): ghc-compiler = %{ghc_version}
abc64b
Requires(postun): ghc-compiler = %{ghc_version}
abc64b
%endif
abc64b
Requires:       %{name}%{?_isa} = %{version}-%{release}
abc64b
abc64b
%description devel
abc64b
This package provides the Haskell %{pkg_name} library development files.
abc64b
abc64b
abc64b
%prep
abc64b
%setup -q -n %{pkgver}
abc64b
abc64b
abc64b
%build
abc64b
%ghc_lib_build
abc64b
abc64b
abc64b
%install
abc64b
%ghc_lib_install
abc64b
abc64b
abc64b
%check
abc64b
%cabal_test
abc64b
abc64b
abc64b
%post -p /sbin/ldconfig
abc64b
abc64b
abc64b
%postun -p /sbin/ldconfig
abc64b
abc64b
abc64b
%post devel
abc64b
%ghc_pkg_recache
abc64b
abc64b
abc64b
%postun devel
abc64b
%ghc_pkg_recache
abc64b
abc64b
abc64b
%files -f %{name}.files
abc64b
%license LICENSE
abc64b
abc64b
abc64b
%files devel -f %{name}-devel.files
abc64b
%doc ChangeLog.md README.md
abc64b
abc64b
abc64b
%changelog
abc64b
* Tue Mar  6 2018 Jens Petersen <petersen@redhat.com> - 0.2.1.0-4
abc64b
- disable testsuite since it affected the package hash
abc64b
abc64b
* Fri Feb 23 2018 Jens Petersen <petersen@redhat.com> - 0.2.1.0-3
abc64b
- bump over conduit-extra
abc64b
abc64b
* Wed Jan 31 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.1.0-1
abc64b
- spec file generated by cabal-rpm-0.12.1