You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
65 lines
2.0 KiB
14 years ago
|
# For Haskell Packaging Guidelines see:
|
||
|
# - https://fedoraproject.org/wiki/Packaging:Haskell
|
||
|
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||
|
|
||
|
%global pkg_name pandoc-types
|
||
|
|
||
|
# common part of summary for all the subpackages
|
||
|
%global common_summary Pandoc data structure library
|
||
|
|
||
|
# main description used for all the subpackages
|
||
|
%global common_description This package contains definitions for the Pandoc data structure, which\
|
||
|
is used by pandoc to represent structured documents. These definitions\
|
||
|
used to live in the pandoc package, but they have been split off, so\
|
||
|
that other packages can use them without drawing in all of pandoc's\
|
||
|
dependencies, and pandoc itself can depend on packages (like\
|
||
|
citeproc-hs) that use them.
|
||
|
|
||
|
# Haskell library dependencies (used for buildrequires and devel/prof subpkg requires)
|
||
|
%global ghc_pkg_deps ghc-syb-devel
|
||
|
|
||
|
Name: ghc-%{pkg_name}
|
||
|
Version: 1.8
|
||
|
Release: 1%{?dist}
|
||
|
Summary: %{common_summary}
|
||
|
|
||
|
Group: System Environment/Libraries
|
||
|
License: GPLv2+
|
||
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
||
|
# fedora ghc archs:
|
||
|
ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64
|
||
|
BuildRequires: ghc, ghc-doc, ghc-prof
|
||
|
# macros for building haskell packages
|
||
|
BuildRequires: ghc-rpm-macros
|
||
|
BuildRequires: hscolour
|
||
|
%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
|
||
|
|
||
|
%description
|
||
|
%{common_description}
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{pkg_name}-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
%ghc_lib_build
|
||
|
|
||
|
|
||
|
%install
|
||
|
%ghc_lib_install
|
||
|
|
||
|
|
||
|
# define the devel and prof subpkgs, devel post[un] scripts, and filelists:
|
||
|
# ghc-%pkg_name{,devel,prof}.files
|
||
|
%ghc_lib_package
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Tue May 3 2011 Jens Petersen <petersen@redhat.com> - 1.8-1
|
||
|
-
|
||
|
|
||
|
* Tue May 3 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 1.8-0
|
||
|
- initial packaging for Fedora automatically generated by cabal2spec-0.22.6
|