1 | # Generated with cabal-rpm |
---|
2 | # https://fedoraproject.org/wiki/Packaging:Haskell |
---|
3 | |
---|
4 | %global pkg_name cgi |
---|
5 | |
---|
6 | Name: ghc-%{pkg_name} |
---|
7 | Version: 3001.1.8.5 |
---|
8 | Release: 0.%{scriptsversion}%{?dist} |
---|
9 | Summary: A library for writing CGI programs |
---|
10 | |
---|
11 | License: BSD |
---|
12 | URL: http://hackage.haskell.org/package/%{pkg_name} |
---|
13 | Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz |
---|
14 | |
---|
15 | BuildRequires: ghc-Cabal-devel |
---|
16 | BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} |
---|
17 | # Begin cabal-rpm deps: |
---|
18 | BuildRequires: ghc-MonadCatchIO-mtl-devel |
---|
19 | BuildRequires: ghc-containers-devel |
---|
20 | BuildRequires: ghc-mtl-devel |
---|
21 | BuildRequires: ghc-network-devel |
---|
22 | BuildRequires: ghc-old-locale-devel |
---|
23 | BuildRequires: ghc-old-time-devel |
---|
24 | BuildRequires: ghc-parsec-devel |
---|
25 | BuildRequires: ghc-xhtml-devel |
---|
26 | # End cabal-rpm deps |
---|
27 | |
---|
28 | %description |
---|
29 | This is a Haskell library for writing CGI programs. |
---|
30 | |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Haskell %{pkg_name} library development files |
---|
34 | Provides: %{name}-static = %{version}-%{release} |
---|
35 | Requires: ghc-compiler = %{ghc_version} |
---|
36 | Requires(post): ghc-compiler = %{ghc_version} |
---|
37 | Requires(postun): ghc-compiler = %{ghc_version} |
---|
38 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
39 | |
---|
40 | %description devel |
---|
41 | This package provides the Haskell %{pkg_name} library development files. |
---|
42 | |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q -n %{pkg_name}-%{version} |
---|
46 | |
---|
47 | |
---|
48 | %build |
---|
49 | %ghc_lib_build |
---|
50 | |
---|
51 | |
---|
52 | %install |
---|
53 | %ghc_lib_install |
---|
54 | |
---|
55 | |
---|
56 | %post devel |
---|
57 | %ghc_pkg_recache |
---|
58 | |
---|
59 | |
---|
60 | %postun devel |
---|
61 | %ghc_pkg_recache |
---|
62 | |
---|
63 | |
---|
64 | %files -f %{name}.files |
---|
65 | %doc LICENSE |
---|
66 | |
---|
67 | |
---|
68 | %files devel -f %{name}-devel.files |
---|
69 | |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Mon May 26 2014 Alexander Chernyakhovsky <achernya@mit.edu> - 3001.1.8.5-0 |
---|
73 | - Updated packaging for F20, with cabal-rpm |
---|
74 | |
---|
75 | * Fri May 25 2012 Anders Kaseorg <andersk@mit.edu> - 3001.1.8.2-0 |
---|
76 | - regenerated packaging with cabal2spec-0.25.5 |
---|
77 | |
---|
78 | * Mon May 2 2011 Alexander Chernyakhovsky <achernya@mit.edu> - 3001.1.8.2-0 |
---|
79 | - regenerated packaging with cabal2spec-0.22.5 |
---|
80 | |
---|
81 | * Thu Sep 9 2010 Anders Kaseorg <andersk@mit.edu> - 3001.1.8.1-0 |
---|
82 | - initial packaging for Fedora automatically generated by cabal2spec-0.22.1 |
---|