[ghc-network] import 2.4.1.2-30 (#1059942)

Jens Petersen petersen at fedoraproject.org
Mon Mar 17 03:38:37 UTC 2014


commit 784316a8f89092c445363b7c502a00ef09a921ad
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Mar 17 12:38:04 2014 +0900

    import 2.4.1.2-30 (#1059942)

 .gitignore       |    1 +
 ghc-network.spec |   54 ++++++++++++++++++++++++++++++++++++------------------
 sources          |    2 +-
 3 files changed, 38 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 146fecd..45ed8c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ network-2.2.1.7.tar.gz
 /network-2.3.0.2.tar.gz
 /network-2.3.0.5.tar.gz
 /network-2.3.0.11.tar.gz
+/network-2.4.1.2.tar.gz
diff --git a/ghc-network.spec b/ghc-network.spec
index feee2b1..fb287cc 100644
--- a/ghc-network.spec
+++ b/ghc-network.spec
@@ -1,28 +1,39 @@
-%global pkg_name network
-
-%global common_summary Haskell %{pkg_name} library
+# https://fedoraproject.org/wiki/Packaging:Haskell
 
-%global common_description A Haskell network library.
+%global pkg_name network
 
 Name:           ghc-%{pkg_name}
 # part of haskell-platform
-Version:        2.3.0.11
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Version:        2.4.1.2
+Release:        30%{?dist}
+Summary:        Network library
 
-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 %{!?without_hscolour:hscolour}
-# END cabal2spec
-BuildRequires:  ghc-parsec-prof
+BuildRequires:  ghc-rpm-macros
+# Begin cabal-rpm deps:
+BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-parsec-devel
+BuildRequires:  ghc-unix-devel
+# End cabal-rpm deps
 
 %description
-%{common_description}
+Haskell basic networking library.
+
+
+%package devel
+Summary:        Haskell %{pkg_name} library development files
+Provides:       %{name}-static = %{version}-%{release}
+Requires:       ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
 
 
 %prep
@@ -37,19 +48,26 @@ BuildRequires:  ghc-parsec-prof
 %ghc_lib_install
 
 
-%ghc_devel_package
+%post devel
+%ghc_pkg_recache
 
-%ghc_devel_description
 
+%postun devel
+%ghc_pkg_recache
 
-%ghc_devel_post_postun
 
+%files -f %{name}.files
+%doc LICENSE
 
-%ghc_files LICENSE
+
+%files devel -f %{name}-devel.files
 %doc examples
 
 
 %changelog
+* Fri Jan 31 2014 Jens Petersen <petersen at redhat.com> - 2.4.1.2-30
+- spec file revived using cabal-rpm-0.8.8
+
 * Tue Mar 20 2012 Jens Petersen <petersen at redhat.com> - 2.3.0.11-1
 - update to 2.3.0.11
 
diff --git a/sources b/sources
index 5e6cb51..e9e785a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cfe4922ac85685be9f86d4d34654f481  network-2.3.0.11.tar.gz
+032075c35dea5d23923af3928f9a5511  network-2.4.1.2.tar.gz


More information about the scm-commits mailing list