2015-05-02 16:29:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-http-client-tls
|
|
|
|
#
|
2017-02-22 19:03:08 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-05-02 16:29:44 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-17 01:27:05 +02:00
|
|
|
%global pkg_name http-client-tls
|
2015-05-02 16:29:44 +02:00
|
|
|
%bcond_with tests
|
2016-07-17 01:27:05 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2017-02-22 19:03:08 +01:00
|
|
|
Version: 0.3.3.1
|
2016-04-17 17:06:25 +02:00
|
|
|
Release: 0
|
2015-05-02 16:29:44 +02:00
|
|
|
Summary: Http-client backend using the connection package and tls library
|
|
|
|
License: MIT
|
2016-10-03 10:21:58 +02:00
|
|
|
Group: Development/Languages/Other
|
2015-05-02 16:29:44 +02:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
2017-02-22 19:03:08 +01:00
|
|
|
BuildRequires: ghc-case-insensitive-devel
|
2015-05-02 16:29:44 +02:00
|
|
|
BuildRequires: ghc-connection-devel
|
2017-02-22 19:03:08 +01:00
|
|
|
BuildRequires: ghc-cryptonite-devel
|
2015-05-02 16:29:44 +02:00
|
|
|
BuildRequires: ghc-data-default-class-devel
|
2017-02-22 19:03:08 +01:00
|
|
|
BuildRequires: ghc-exceptions-devel
|
2015-05-02 16:29:44 +02:00
|
|
|
BuildRequires: ghc-http-client-devel
|
2017-02-22 19:03:08 +01:00
|
|
|
BuildRequires: ghc-http-types-devel
|
|
|
|
BuildRequires: ghc-memory-devel
|
2015-05-02 16:29:44 +02:00
|
|
|
BuildRequires: ghc-network-devel
|
2016-07-17 01:27:05 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2015-05-02 16:29:44 +02:00
|
|
|
BuildRequires: ghc-tls-devel
|
2017-02-22 19:03:08 +01:00
|
|
|
BuildRequires: ghc-transformers-devel
|
2016-07-17 01:27:05 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-05-02 16:29:44 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-hspec-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2016-07-17 01:27:05 +02:00
|
|
|
Hackage documentation generation is not reliable. For up to date documentation,
|
|
|
|
please see: <https://www.stackage.org/package/http-client-tls>.
|
2015-05-02 16:29:44 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Group: Development/Libraries/Other
|
2016-07-17 01:27:05 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-05-02 16:29:44 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development
|
|
|
|
files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%check
|
2016-10-03 10:21:58 +02:00
|
|
|
%cabal_test
|
2015-05-02 16:29:44 +02:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%defattr(-,root,root,-)
|
2017-02-22 19:03:08 +01:00
|
|
|
%doc ChangeLog.md README.md
|
2015-05-02 16:29:44 +02:00
|
|
|
|
|
|
|
%changelog
|