diff --git a/ghc-smallcheck.spec b/ghc-smallcheck.spec index 04bbe14..cfc3711 100644 --- a/ghc-smallcheck.spec +++ b/ghc-smallcheck.spec @@ -1,17 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name smallcheck -%global common_summary A testing library to verify properties of test cases - -%global common_description SmallCheck is a testing library that allows to verify properties for\ -all test cases up to some depth. The test cases are generated automatically. - Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: A property-based testing library License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -24,30 +18,55 @@ BuildRequires: ghc-logict-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-pretty-devel # End cabal-rpm deps -BuildRequires: ghc-dlist-devel %description -%{common_description} +SmallCheck is a testing library that allows to verify properties for +all test cases up to some depth. The test cases are generated automatically. + + +%package devel +Summary: Haskell %{pkg_name} library development files +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 -%ghc_devel_package -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun -%ghc_files LICENSE +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files %doc README.md + %changelog +* Tue Jun 11 2013 Jens Petersen - 1.0.2-2 +- update to new simplified Haskell Packaging Guidelines + * Mon Mar 18 2013 Shakthi Kannan - 1.0.2-1 - new upstream version 1.0.2