update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
fdee619cfc
commit
283d2a8079
@ -1,21 +1,11 @@
|
|||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
||||||
|
|
||||||
%global pkg_name cereal
|
%global pkg_name cereal
|
||||||
|
|
||||||
%global common_summary Binary serialization library
|
|
||||||
|
|
||||||
%global common_description A binary serialization library, similar to binary, that \
|
|
||||||
introduces an isolate primitive for parser isolation, and \
|
|
||||||
replaces the asynchronous errors with a user-handleable \
|
|
||||||
Either type. Similar to binary in performance, but uses a \
|
|
||||||
strict ByteString instead of a lazy ByteString, thus \
|
|
||||||
restricting it to operating on finite inputs.
|
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.3.5.2
|
Version: 0.3.5.2
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: Binary serialization library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
@ -24,14 +14,28 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
|
|||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
|
|
||||||
BuildRequires: ghc-array-devel
|
BuildRequires: ghc-array-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
A binary serialization library, similar to binary, that introduces an isolate
|
||||||
|
primitive for parser isolation, and replaces the asynchronous errors with a
|
||||||
|
user-handleable Either type. Similar to binary in performance, but uses a
|
||||||
|
strict ByteString instead of a lazy ByteString, thus restricting it to
|
||||||
|
operating on finite inputs.
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
@ -46,18 +50,25 @@ BuildRequires: ghc-containers-devel
|
|||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_package
|
%post devel
|
||||||
|
%ghc_pkg_recache
|
||||||
%ghc_devel_description
|
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_post_postun
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
|
||||||
%ghc_files LICENSE
|
%files -f %{name}.files
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.3.5.2-6
|
||||||
|
- update to new simplified Haskell Packaging Guidelines
|
||||||
|
|
||||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5.2-5
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5.2-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user