Blame SPECS/ghc-doctemplates.spec

01265f
# generated by cabal-rpm-0.12.1
01265f
# https://fedoraproject.org/wiki/Packaging:Haskell
01265f
01265f
%global pkg_name doctemplates
01265f
%global pkgver %{pkg_name}-%{version}
01265f
01265f
%ifnarch s390x
01265f
%bcond_without tests
01265f
%else
01265f
%bcond_with tests
01265f
%endif
01265f
01265f
Name:           ghc-%{pkg_name}
01265f
Version:        0.2.1
01265f
Release:        2%{?dist}
01265f
Summary:        Pandoc-style document templates
01265f
01265f
License:        BSD
01265f
Url:            https://hackage.haskell.org/package/%{pkg_name}
01265f
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
01265f
01265f
BuildRequires:  ghc-Cabal-devel
01265f
BuildRequires:  ghc-rpm-macros
01265f
# Begin cabal-rpm deps:
01265f
BuildRequires:  ghc-aeson-devel
01265f
BuildRequires:  ghc-blaze-html-devel
01265f
BuildRequires:  ghc-blaze-markup-devel
01265f
BuildRequires:  ghc-bytestring-devel
01265f
BuildRequires:  ghc-containers-devel
01265f
BuildRequires:  ghc-parsec-devel
01265f
BuildRequires:  ghc-scientific-devel
01265f
BuildRequires:  ghc-text-devel
01265f
BuildRequires:  ghc-unordered-containers-devel
01265f
BuildRequires:  ghc-vector-devel
01265f
%if %{with tests}
01265f
BuildRequires:  ghc-hspec-devel
01265f
%endif
01265f
# End cabal-rpm deps
01265f
01265f
%description
01265f
This is the templating system used by pandoc.  It was formerly
01265f
a module in pandoc. It has been split off to make it easier
01265f
to use independently.
01265f
01265f
01265f
%package devel
01265f
Summary:        Haskell %{pkg_name} library development files
01265f
Provides:       %{name}-static = %{version}-%{release}
01265f
Provides:       %{name}-doc = %{version}-%{release}
01265f
%if %{defined ghc_version}
01265f
Requires:       ghc-compiler = %{ghc_version}
01265f
Requires(post): ghc-compiler = %{ghc_version}
01265f
Requires(postun): ghc-compiler = %{ghc_version}
01265f
%endif
01265f
Requires:       %{name}%{?_isa} = %{version}-%{release}
01265f
01265f
%description devel
01265f
This package provides the Haskell %{pkg_name} library development files.
01265f
01265f
01265f
%prep
01265f
%setup -q -n %{pkgver}
01265f
01265f
01265f
%build
01265f
%ghc_lib_build
01265f
01265f
01265f
%install
01265f
%ghc_lib_install
01265f
01265f
rm %{buildroot}%{_datadir}/%{pkgver}/README.md
01265f
01265f
01265f
%check
01265f
%cabal_test
01265f
01265f
01265f
%post devel
01265f
%ghc_pkg_recache
01265f
01265f
01265f
%postun devel
01265f
%ghc_pkg_recache
01265f
01265f
01265f
%files -f %{name}.files
01265f
%license LICENSE
01265f
01265f
01265f
%files devel -f %{name}-devel.files
01265f
%doc README.md
01265f
01265f
01265f
%changelog
01265f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
01265f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
01265f
01265f
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.2.1-1
01265f
- update to 0.2.1
01265f
01265f
* Sat Oct 14 2017 Jens Petersen <petersen@redhat.com> - 0.1.0.2-4
01265f
- refresh to cabal-rpm-0.11.2
01265f
01265f
* Thu Jan 19 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1.0.2-1
01265f
- spec file generated by cabal-rpm-0.11