New package ghc-servant
This commit is contained in:
parent
08c3524a4c
commit
03949c3fac
|
@ -0,0 +1 @@
|
|||
/servant-0.12.tar.gz
|
|
@ -0,0 +1,120 @@
|
|||
# generated by cabal-rpm-0.11.2
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name servant
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.12
|
||||
Release: 1%{?dist}
|
||||
Summary: A family of combinators for defining webservices APIs
|
||||
|
||||
License: BSD
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-aeson-devel
|
||||
BuildRequires: ghc-attoparsec-devel
|
||||
BuildRequires: ghc-base-compat-devel
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-cabal-doctest-devel
|
||||
BuildRequires: ghc-case-insensitive-devel
|
||||
BuildRequires: ghc-http-api-data-devel
|
||||
BuildRequires: ghc-http-media-devel
|
||||
BuildRequires: ghc-http-types-devel
|
||||
BuildRequires: ghc-mmorph-devel
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-natural-transformation-devel
|
||||
BuildRequires: ghc-network-uri-devel
|
||||
BuildRequires: ghc-string-conversions-devel
|
||||
BuildRequires: ghc-tagged-devel
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-vault-devel
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-QuickCheck-devel
|
||||
BuildRequires: ghc-aeson-compat-devel
|
||||
BuildRequires: ghc-directory-devel
|
||||
BuildRequires: ghc-doctest-devel
|
||||
BuildRequires: ghc-filemanip-devel
|
||||
BuildRequires: ghc-filepath-devel
|
||||
BuildRequires: ghc-hspec-devel
|
||||
BuildRequires: ghc-quickcheck-instances-devel
|
||||
BuildRequires: ghc-url-devel
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
A family of combinators for defining webservices APIs and serving them
|
||||
|
||||
You can learn about the basics in the
|
||||
<http://haskell-servant.readthedocs.org/en/stable/tutorial/index.html
|
||||
tutorial>.
|
||||
|
||||
<https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md
|
||||
CHANGELOG>.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%package devel-doc
|
||||
Summary: Haskell %{pkg_name} library development documentation
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel-doc
|
||||
This package provides the Haskell %{pkg_name} development documentation.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkgver}
|
||||
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
||||
|
||||
%install
|
||||
%ghc_lib_install
|
||||
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
|
||||
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
|
||||
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
|
||||
|
||||
%files devel -f %{name}-devel-nodoc.files
|
||||
%doc CHANGELOG.md
|
||||
|
||||
%files devel-doc -f %{name}-devel-doc.files
|
||||
%doc CHANGELOG.md
|
||||
|
||||
%changelog
|
||||
* Thu Nov 16 2017 David Shea <dshea@redhat.com> - 0.12-1
|
||||
- spec file generated by cabal-rpm-0.11.2
|
||||
- Move the API docs to a separate pacakge
|
Loading…
Reference in New Issue