[ghc-editline] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 03:19:57 UTC 2013
commit 89d8b1e106c9c09be707d2b41d992ca2f801393e
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:14:50 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-editline.spec | 47 ++++++++++++++++++++++++++++++-----------------
1 files changed, 30 insertions(+), 17 deletions(-)
---
diff --git a/ghc-editline.spec b/ghc-editline.spec
index 5cd4b96..0a8d1d1 100644
--- a/ghc-editline.spec
+++ b/ghc-editline.spec
@@ -1,21 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name editline
-%global common_summary Haskell %{pkg_name} library
-
-%global common_description A binding to the BSD editline library \
-(http://thrysoee.dk/editline). It provides a basic interface\
-to the editline API for reading lines in input for the user.\
-\
-Additionally, a readline compatibility module is included, which\
-provides a subset of the functionality of the readline library.
-
Name: ghc-%{pkg_name}
Version: 0.2.1.1
Release: 3%{?dist}
-Summary: %{common_summary}
+Summary: Haskell %{pkg_name} library
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +16,24 @@ BuildRequires: ghc-rpm-macros
BuildRequires: libedit-devel%{?_isa}
%description
-%{common_description}
+A binding to the BSD editline library
+(http://thrysoee.dk/editline). It provides a basic interface
+to the editline API for reading lines in input for the user.
+
+Additionally, a readline compatibility module is included, which
+provides a subset of the functionality of the readline library.
+
+
+%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}
+Requires: libedit-devel%{?_isa}
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
%prep
@@ -41,19 +48,25 @@ BuildRequires: libedit-devel%{?_isa}
%ghc_lib_install
-%ghc_devel_package
-Requires: libedit-devel%{?_isa}
+%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
+* Fri Jun 7 2013 Jens Petersen <petersen at redhat.com> - 0.2.1.1-3
+- update to new simplified Haskell Packaging Guidelines
+
* Sat Jan 12 2013 Jochen Schmitt <Jochen herr-schmitt de> - 0.2.1.1-2
- Bump to fix EVR-issue
More information about the scm-commits
mailing list