From b49f09dc955a6aea1e18b817d48c7605bef5a378 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 20 Jun 2013 10:04:36 +0900 Subject: [PATCH] Revert to 0.3.5.2-2 --- ghc-cereal.spec | 68 ++++++++++++++++++------------------------------- 1 file changed, 25 insertions(+), 43 deletions(-) diff --git a/ghc-cereal.spec b/ghc-cereal.spec index 0cd2faf..5b6aa02 100644 --- a/ghc-cereal.spec +++ b/ghc-cereal.spec @@ -1,41 +1,39 @@ +# cabal2spec-0.25.2 # https://fedoraproject.org/wiki/Packaging:Haskell +# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %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} Version: 0.3.5.2 -Release: 6%{?dist} -Summary: Binary serialization library +Release: 2%{?dist} +Summary: %{common_summary} +Group: System Environment/Libraries License: BSD +# BEGIN cabal2spec URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz - +ExclusiveArch: %{ghc_arches} BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: +BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} +# END cabal2spec + BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel -# End cabal-rpm deps %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. +%{common_description} %prep @@ -50,34 +48,18 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install -%post devel -%ghc_pkg_recache +%ghc_devel_package + +%ghc_devel_description -%postun devel -%ghc_pkg_recache +%ghc_devel_post_postun -%files -f %{name}.files -%doc LICENSE - - -%files devel -f %{name}-devel.files +%ghc_files LICENSE %changelog -* Fri Jun 07 2013 Jens Petersen - 0.3.5.2-6 -- update to new simplified Haskell Packaging Guidelines - -* Wed Feb 13 2013 Fedora Release Engineering - 0.3.5.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Nov 17 2012 Jens Petersen - 0.3.5.2-4 -- update with cabal-rpm - -* Thu Jul 19 2012 Fedora Release Engineering - 0.3.5.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - * Mon Jul 16 2012 Jens Petersen - 0.3.5.2-2 - change prof BRs to devel