update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
3d3624c468
commit
a04bd3b5b8
|
@ -1,21 +1,11 @@
|
|||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name pcre-light
|
||||
|
||||
%global common_summary Perl5 compatible regular expressions library
|
||||
|
||||
%global common_description A small, efficient and portable regex library for Perl 5\
|
||||
compatible regular expressions\
|
||||
\
|
||||
The PCRE library is a set of functions that implement regular\
|
||||
expression pattern matching using the same syntax and\
|
||||
semantics as Perl 5.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.4
|
||||
Release: 11%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 12%{?dist}
|
||||
Summary: Perl5 compatible regular expression library
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
|
@ -26,11 +16,29 @@ BuildRequires: ghc-Cabal-devel
|
|||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
# End cabal-rpm deps
|
||||
BuildRequires: pcre-devel%{?_isa}
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
A small, efficient and portable regex library for Perl 5 compatible
|
||||
regular expressions.
|
||||
|
||||
The PCRE library is a set of functions that implement regular expression
|
||||
pattern matching using the same syntax and semantics as Perl 5.
|
||||
|
||||
|
||||
%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}
|
||||
# Begin cabal-rpm deps:
|
||||
Requires: pcre-devel%{?_isa}
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
|
||||
%prep
|
||||
|
@ -46,19 +54,25 @@ BuildRequires: pcre-devel%{?_isa}
|
|||
%ghc_lib_install
|
||||
|
||||
|
||||
%ghc_devel_package
|
||||
Requires: pcre-devel%{?_isa}
|
||||
|
||||
%ghc_devel_description
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_devel_post_postun
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_files LICENSE
|
||||
%files -f %{name}.files
|
||||
%doc LICENSE
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 05 2013 Jens Petersen <petersen@redhat.com> - 0.4-12
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue