update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-04 11:56:39 +09:00
parent 1a6910502e
commit 9ae12ea574
1 changed files with 32 additions and 17 deletions

View File

@ -1,20 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name tagsoup
%global common_summary Parsing and extraction from HTML/XML documents
%global common_description TagSoup is a library for parsing HTML/XML.\
It supports the HTML 5 specification, and can be used to parse\
either well-formed XML, or unstructured and malformed HTML from the web.\
The library also provides useful functions to extract information from\
an HTML document, making it ideal for screen-scraping.
Name: ghc-%{pkg_name}
Version: 0.12.8
Release: 2%{?dist}
Summary: %{common_summary}
Release: 3%{?dist}
Summary: Parsing and extracting from HTML/XML documents
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@ -29,7 +20,24 @@ BuildRequires: ghc-text-devel
# End cabal-rpm deps
%description
%{common_description}
TagSoup is a library for parsing HTML/XML.
It supports the HTML 5 specification, and can be used to parse
either well-formed XML, or unstructured and malformed HTML from the web.
The library also provides useful functions to extract information from
an HTML document, making it ideal for screen-scraping.
Users should start from the "Text.HTML.TagSoup" module.
%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
@ -44,19 +52,26 @@ BuildRequires: ghc-text-devel
%ghc_lib_install
%ghc_devel_package
%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
%doc tagsoup.htm
%changelog
* Tue Jun 04 2013 Jens Petersen <petersen@redhat.com> - 0.12.8-3
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild