diff --git a/ghc-http-client.changes b/ghc-http-client.changes index 2e2737b..8f943c7 100644 --- a/ghc-http-client.changes +++ b/ghc-http-client.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Sun Jul 10 15:42:37 UTC 2016 - mimi.vx@gmail.com -- update to 0.4.31 +- update to version 0.4.31 revision 0 * Added length validation for RequestBodyStream ------------------------------------------------------------------- diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 8e550a5..eb7846b 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -17,29 +17,22 @@ %global pkg_name http-client - %bcond_with tests - -Name: ghc-http-client +Name: ghc-%{pkg_name} Version: 0.4.31 Release: 0 -Summary: HTTP client engine, intended as a base layer +Summary: An HTTP client engine, intended as a base layer for more user-friendly packages License: MIT Group: System/Libraries - Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel -BuildRequires: ghc-clock-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-cookie-devel BuildRequires: ghc-data-default-class-devel @@ -51,10 +44,12 @@ BuildRequires: ghc-mime-types-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-random-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-streaming-commons-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-transformers-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-async-devel BuildRequires: ghc-directory-devel @@ -68,33 +63,35 @@ BuildRequires: ghc-zlib-devel Hackage documentation generation is not reliable. For up to date documentation, please see: . - %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %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 %if %{with tests} -%cabal test +%{cabal} test %endif + %post devel %ghc_pkg_recache @@ -107,6 +104,6 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README.md +%doc ChangeLog.md README.md %changelog