Blame SPECS/ghc-cmark-gfm.spec

92f740
# generated by cabal-rpm-0.12.3
92f740
# https://fedoraproject.org/wiki/Packaging:Haskell
92f740
92f740
%global pkg_name cmark-gfm
92f740
%global pkgver %{pkg_name}-%{version}
92f740
92f740
# https://github.com/kivikakk/cmark-gfm-hs/issues/6
92f740
%ifarch ppc64 s390x
92f740
%bcond_with tests
92f740
%else
92f740
# enabling the testsuite changed the hashes
92f740
%bcond_with tests
92f740
%endif
92f740
92f740
Name:           ghc-%{pkg_name}
92f740
Version:        0.1.3
92f740
Release:        4%{?dist}
92f740
Summary:        Fast, accurate GitHub Flavored Markdown parser and renderer
92f740
92f740
License:        BSD
92f740
Url:            https://hackage.haskell.org/package/%{pkg_name}
92f740
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
92f740
92f740
BuildRequires:  ghc-Cabal-devel
92f740
BuildRequires:  ghc-rpm-macros
92f740
# Begin cabal-rpm deps:
92f740
BuildRequires:  ghc-bytestring-devel
92f740
BuildRequires:  ghc-text-devel
92f740
%if %{with tests}
92f740
BuildRequires:  ghc-HUnit-devel
92f740
%endif
92f740
# End cabal-rpm deps
92f740
92f740
%description
92f740
This package provides Haskell bindings for 
92f740
libcmark-gfm>, the reference parser for 
92f740
Flavored Markdown>, a fully specified variant of Markdown.
92f740
92f740
92f740
%package devel
92f740
Summary:        Haskell %{pkg_name} library development files
92f740
Provides:       %{name}-static = %{version}-%{release}
92f740
Provides:       %{name}-doc = %{version}-%{release}
92f740
%if %{defined ghc_version}
92f740
Requires:       ghc-compiler = %{ghc_version}
92f740
Requires(post): ghc-compiler = %{ghc_version}
92f740
Requires(postun): ghc-compiler = %{ghc_version}
92f740
%endif
92f740
Requires:       %{name}%{?_isa} = %{version}-%{release}
92f740
92f740
%description devel
92f740
This package provides the Haskell %{pkg_name} library development files.
92f740
92f740
92f740
%prep
92f740
%setup -q -n %{pkgver}
92f740
92f740
92f740
%build
92f740
%ghc_lib_build
92f740
92f740
92f740
%install
92f740
%ghc_lib_install
92f740
92f740
92f740
%check
92f740
%cabal_test
92f740
92f740
92f740
%post devel
92f740
%ghc_pkg_recache
92f740
92f740
92f740
%postun devel
92f740
%ghc_pkg_recache
92f740
92f740
92f740
%files -f %{name}.files
92f740
%license LICENSE
92f740
92f740
92f740
%files devel -f %{name}-devel.files
92f740
%doc README.md changelog
92f740
92f740
92f740
%changelog
92f740
* Fri Jun  1 2018 Jens Petersen <petersen@redhat.com> - 0.1.3-4
92f740
- disable testsuite to restore the package hash
92f740
92f740
* Wed May 30 2018 Jens Petersen <petersen@redhat.com> - 0.1.3-3
92f740
- bump release over pandoc
92f740
92f740
* Mon May 28 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1.3-1
92f740
- spec file generated by cabal-rpm-0.12.3
92f740
- tests fail on big endian