update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
0cf503337b
commit
0d267aef78
@ -1,17 +1,11 @@
|
|||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
||||||
|
|
||||||
%global pkg_name smallcheck
|
%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}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: A property-based testing library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
@ -24,30 +18,55 @@ BuildRequires: ghc-logict-devel
|
|||||||
BuildRequires: ghc-mtl-devel
|
BuildRequires: ghc-mtl-devel
|
||||||
BuildRequires: ghc-pretty-devel
|
BuildRequires: ghc-pretty-devel
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
BuildRequires: ghc-dlist-devel
|
|
||||||
|
|
||||||
%description
|
%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
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_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
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 1.0.2-2
|
||||||
|
- update to new simplified Haskell Packaging Guidelines
|
||||||
|
|
||||||
* Mon Mar 18 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 1.0.2-1
|
* Mon Mar 18 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 1.0.2-1
|
||||||
- new upstream version 1.0.2
|
- new upstream version 1.0.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user