Accepting request 185728 from devel:languages:haskell:pandoc

Updated packaging.

OBS-URL: https://build.opensuse.org/request/show/185728
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tagsoup?expand=0&rev=5
This commit is contained in:
Peter Trommler 2013-08-03 08:31:18 +00:00 committed by Git OBS Bridge
parent 4f4b2d1541
commit fac33184b6
4 changed files with 54 additions and 32 deletions

View File

@ -1,3 +1,3 @@
<services>
<service name="download_files"/>
</services>
<service name="download_files" mode="localonly"/>
</services>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 14 14:03:44 UTC 2013 - peter.trommler@ohm-hochschule.de
- new cabal-rpm spec file template
* no macros spanning multiple spec file sections
-------------------------------------------------------------------
Wed Oct 3 07:51:45 UTC 2012 - peter.trommler@ohm-hochschule.de

View File

@ -1,8 +1,7 @@
#
# spec file for ghc-tagsoup
# spec file for package ghc-tagsoup
#
# Copyright (c) 2012 Herbert Graeber <herbert@graeber-clan.de>
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,56 +15,73 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name tagsoup
%global common_summary Haskell HTML/XML document parsing library
%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}
Name: ghc-tagsoup
Version: 0.12.8
Release: 1
Summary: %{common_summary}
Group: System/Libraries
Release: 0
Summary: Parsing and extracting information from (possibly malformed) HTML/XML documents
License: BSD-3-Clause
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BEGIN cabal2spec
URL: http://hackage.haskell.org/package/%{pkg_name}
Group: System/Libraries
Url: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-text-devel
# END cabal2spec
# 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
Group: Development/Libraries/Other
Requires: ghc-compiler
Requires(post): ghc-compiler
Requires(postun): ghc-compiler
Requires: %{name} = %{version}-%{release}
%description devel
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.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache
# devel subpackage
%ghc_devel_package
%postun devel
%ghc_pkg_recache
%ghc_devel_description
%ghc_devel_post_postun
%ghc_files LICENSE
%files -f %{name}.files
%defattr(-,root,root)
%doc LICENSE
%files devel -f %{name}-devel.files
%changelog