update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
e33114034f
commit
e5311e7d0c
@ -1,17 +1,11 @@
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name aeson
|
||||
|
||||
%global common_summary Fast JSON parsing and encoding
|
||||
|
||||
%global common_description A JSON parsing and encoding library optimized for ease of use and\
|
||||
high performance. Aeson was the father of Jason in Greek mythology.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.6.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 2%{?dist}
|
||||
Summary: Fast JSON parsing and encoding
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
@ -39,7 +33,19 @@ ExclusiveArch: %{ghc_arches_with_ghci}
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
A JSON parsing and encoding library optimized for ease of use and
|
||||
high performance. Aeson was the father of Jason in Greek mythology.
|
||||
|
||||
|
||||
%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
|
||||
@ -54,19 +60,26 @@ ExclusiveArch: %{ghc_arches_with_ghci}
|
||||
%ghc_lib_install
|
||||
|
||||
|
||||
%ghc_devel_package
|
||||
|
||||
%ghc_devel_description
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_devel_post_postun
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_files LICENSE
|
||||
%files -f %{name}.files
|
||||
%doc LICENSE
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc README.markdown release-notes.markdown examples
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.6.1.0-2
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Mon Mar 11 2013 Jens Petersen <petersen@redhat.com> - 0.6.1.0-1
|
||||
- update to 0.6.1.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user