cabal2spec-2.7.0: test/golden-test-cases/hakyll.spec.golden
#
# spec file for package hakyll
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name hakyll
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: %{pkg_name}
Version: 4.10.0.0
Release: 0
Summary: A static website compiler library
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
ExcludeArch: %{ix86}
BuildRequires: chrpath
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-binary-devel
BuildRequires: ghc-binary-prof
BuildRequires: ghc-blaze-html-devel
BuildRequires: ghc-blaze-html-prof
BuildRequires: ghc-blaze-markup-devel
BuildRequires: ghc-blaze-markup-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-cryptohash-devel
BuildRequires: ghc-cryptohash-prof
BuildRequires: ghc-data-default-devel
BuildRequires: ghc-data-default-prof
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-fsnotify-devel
BuildRequires: ghc-fsnotify-prof
BuildRequires: ghc-http-conduit-devel
BuildRequires: ghc-http-conduit-prof
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-http-types-prof
BuildRequires: ghc-lrucache-devel
BuildRequires: ghc-lrucache-prof
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-optparse-applicative-prof
BuildRequires: ghc-pandoc-citeproc-devel
BuildRequires: ghc-pandoc-citeproc-prof
BuildRequires: ghc-pandoc-devel
BuildRequires: ghc-pandoc-prof
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-process-devel
BuildRequires: ghc-process-prof
BuildRequires: ghc-random-devel
BuildRequires: ghc-random-prof
BuildRequires: ghc-regex-base-devel
BuildRequires: ghc-regex-base-prof
BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-regex-tdfa-prof
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-resourcet-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-scientific-devel
BuildRequires: ghc-scientific-prof
BuildRequires: ghc-system-filepath-devel
BuildRequires: ghc-system-filepath-prof
BuildRequires: ghc-tagsoup-devel
BuildRequires: ghc-tagsoup-prof
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-locale-compat-devel
BuildRequires: ghc-time-locale-compat-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-vector-devel
BuildRequires: ghc-vector-prof
BuildRequires: ghc-wai-app-static-devel
BuildRequires: ghc-wai-app-static-prof
BuildRequires: ghc-wai-devel
BuildRequires: ghc-wai-prof
BuildRequires: ghc-warp-devel
BuildRequires: ghc-warp-prof
BuildRequires: ghc-yaml-devel
BuildRequires: ghc-yaml-prof
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-prof
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-tasty-quickcheck-prof
%endif
%description
Hakyll is a static website compiler library. It provides you with the tools to
create a simple or advanced static website using a Haskell DSL and formats such
as markdown or RST. You can find more information, including a tutorial, on the
website:
* <http://jaspervdj.be/hakyll>
If you seek assistance, there's:
* A google group: <http://groups.google.com/group/hakyll>
* An IRC channel, '#hakyll' on freenode
Additionally, there's the Haddock documentation in the different modules, meant
as a reference.
%package -n ghc-%{name}
Summary: Haskell %{name} library
%description -n ghc-%{name}
This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Requires: ghc-%{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup
%build
%ghc_lib_build
%install
%ghc_lib_install
%ghc_fix_rpath %{pkg_name}-%{version}
%check
%cabal_test
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
%license LICENSE
%doc CHANGELOG.md
%{_bindir}/hakyll-init
%dir %{_datadir}/%{name}-%{version}
%dir %{_datadir}/%{name}-%{version}/example
%dir %{_datadir}/%{name}-%{version}/example/css
%dir %{_datadir}/%{name}-%{version}/example/images
%dir %{_datadir}/%{name}-%{version}/example/posts
%dir %{_datadir}/%{name}-%{version}/example/templates
%dir %{_datadir}/%{name}-%{version}/templates
%{_datadir}/%{name}-%{version}/example/about.rst
%{_datadir}/%{name}-%{version}/example/contact.markdown
%{_datadir}/%{name}-%{version}/example/css/default.css
%{_datadir}/%{name}-%{version}/example/images/haskell-logo.png
%{_datadir}/%{name}-%{version}/example/index.html
%{_datadir}/%{name}-%{version}/example/posts/2015-08-12-spqr.markdown
%{_datadir}/%{name}-%{version}/example/posts/2015-10-07-rosa-rosa-rosam.markdown
%{_datadir}/%{name}-%{version}/example/posts/2015-11-28-carpe-diem.markdown
%{_datadir}/%{name}-%{version}/example/posts/2015-12-07-tu-quoque.markdown
%{_datadir}/%{name}-%{version}/example/site.hs
%{_datadir}/%{name}-%{version}/example/templates/archive.html
%{_datadir}/%{name}-%{version}/example/templates/default.html
%{_datadir}/%{name}-%{version}/example/templates/post-list.html
%{_datadir}/%{name}-%{version}/example/templates/post.html
%{_datadir}/%{name}-%{version}/templates/atom-item.xml
%{_datadir}/%{name}-%{version}/templates/atom.xml
%{_datadir}/%{name}-%{version}/templates/rss-item.xml
%{_datadir}/%{name}-%{version}/templates/rss.xml
%files -n ghc-%{name} -f ghc-%{name}.files
%license LICENSE
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc CHANGELOG.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog