update to new simplified Haskell Packaging Guidelines

epel9
Jens Petersen 12 years ago
parent 9b832c8c98
commit e8c1698fc6

@ -1,16 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name Diff %global pkg_name Diff
%global common_summary A O(ND) diff algorithm in Haskell
%global common_description This package provides basic implementation of the standard diff algorithm.
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.2.0 Version: 0.2.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: %{common_summary} Summary: A O(ND) diff algorithm in Haskell
License: BSD License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name} URL: http://hackage.haskell.org/package/%{pkg_name}
@ -23,7 +18,18 @@ BuildRequires: ghc-array-devel
# End cabal-rpm deps # End cabal-rpm deps
%description %description
%{common_description} This package provides basic implementation of the standard diff algorithm.
%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
@ -38,18 +44,25 @@ BuildRequires: ghc-array-devel
%ghc_lib_install %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 %changelog
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.2.0-2
- update to new simplified Haskell Packaging Guidelines
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.2.0-1 * Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.2.0-1
- update to 0.2.0 - update to 0.2.0

Loading…
Cancel
Save