[ghc-temporary] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Tue Jun 4 02:37:03 UTC 2013
commit 9fb9436e2a9337747ea425a77a239a547bb016ec
Author: Jens Petersen <petersen at redhat.com>
Date: Tue Jun 4 11:35:12 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-temporary.spec | 47 ++++++++++++++++++++++++++++++-----------------
1 files changed, 30 insertions(+), 17 deletions(-)
---
diff --git a/ghc-temporary.spec b/ghc-temporary.spec
index f5a4f33..5d4788e 100644
--- a/ghc-temporary.spec
+++ b/ghc-temporary.spec
@@ -1,21 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name temporary
-%global common_summary Portable temporary file and directory support
-
-%global common_description The functions for creating temporary files and directories in the base library\
-are quite limited. The unixutils package contains some good ones,\
-but they aren't portable to Windows. This library repackages the\
-Cabal implementations of its own temporary file and folder functions\
-so that you can use them without linking against Cabal or depending on\
-it being installed.
-
Name: ghc-%{pkg_name}
Version: 1.1.2.4
-Release: 2%{?dist}
-Summary: %{common_summary}
+Release: 3%{?dist}
+Summary: Portable temporary file and directory support
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -30,7 +20,23 @@ BuildRequires: ghc-unix-devel
# End cabal-rpm deps
%description
-%{common_description}
+The functions for creating temporary files and directories in the base library
+are quite limited. The unixutils package contains some good ones,
+but they aren't portable to Windows. This library repackages the
+Cabal implementations of its own temporary file and folder functions
+so that you can use them without linking against Cabal or depending on
+it being installed.
+
+
+%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
@@ -45,18 +51,25 @@ BuildRequires: ghc-unix-devel
%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
%changelog
+* Tue Jun 04 2013 Jens Petersen <petersen at redhat.com> - 1.1.2.4-3
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list