1 | %define pkg_name hscolour |
---|
2 | %define pkg_version 1.24 |
---|
3 | %define pkg_release 4%{?_dist_release} |
---|
4 | |
---|
5 | Summary: A small Haskell script to colourise Haskell code |
---|
6 | Name: %{pkg_name} |
---|
7 | Version: %{pkg_version} |
---|
8 | Release: %{pkg_release} |
---|
9 | |
---|
10 | License: GPLv2 |
---|
11 | Group: Applications/Text |
---|
12 | URL: http://hackage.haskell.org |
---|
13 | Source0: http://hackage.haskell.org/package/%{pkg_name}-%{pkg_version}/%{pkg_name}-%{pkg_version}.tar.gz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
16 | |
---|
17 | BuildRequires: ghc-bootstrap |
---|
18 | BuildRequires: gmp-devel |
---|
19 | BuildRequires: libffi-devel |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: ara_t |
---|
24 | |
---|
25 | |
---|
26 | %description |
---|
27 | hscolour is a small Haskell script to colourise Haskell code. |
---|
28 | It currently has six output formats: ANSI terminal codes |
---|
29 | (optionally XTerm-256colour codes), HTML 3.2 with font tags, |
---|
30 | HTML 4.01 with CSS, HTML 4.01 with CSS and mouseover annotations, |
---|
31 | XHTML 1.0 with inline CSS styling, LaTeX, and mIRC chat codes. |
---|
32 | |
---|
33 | |
---|
34 | %prep |
---|
35 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
36 | %setup -q |
---|
37 | |
---|
38 | %build |
---|
39 | ghc -threaded --make Setup |
---|
40 | ./Setup configure \ |
---|
41 | --disable-shared \ |
---|
42 | --prefix=%{_prefix} \ |
---|
43 | --libsubdir=%{_libdir}/ghc-lib/%{name}-%{version} \ |
---|
44 | --datasubdir=%{_docdir}/%{name}-%{version} \ |
---|
45 | --docdir=%{_docdir}/%{name}-%{version} |
---|
46 | ./Setup build |
---|
47 | |
---|
48 | %install |
---|
49 | ./Setup copy --destdir=${RPM_BUILD_ROOT} |
---|
50 | |
---|
51 | cd ${RPM_BUILD_ROOT}%{_bindir} |
---|
52 | %{__ln_s} HsColour hscolour |
---|
53 | |
---|
54 | |
---|
55 | %clean |
---|
56 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
57 | |
---|
58 | |
---|
59 | %files |
---|
60 | %defattr(-, root, root) |
---|
61 | %{_bindir}/ |
---|
62 | %{_libdir}/ghc-lib/ |
---|
63 | %{_datadir}/ |
---|
64 | |
---|
65 | |
---|
66 | %changelog |
---|
67 | * Mon May 02 2016 Toshiaki Ara <ara_t@384.jp> 1.24-4 |
---|
68 | - rebuilt under ghc-bootstrap only (without haskell-platform) |
---|
69 | - delete Requires: ghc |
---|
70 | |
---|
71 | * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.24-3 |
---|
72 | - correct SPEC file |
---|
73 | |
---|
74 | * Sat Feb 20 2016 Toshiaki Ara <ara_t@384.jp> 1.24-2 |
---|
75 | - rebuild under ghc-7.10.3 and haskell-platform-2015.7.10.3 |
---|
76 | |
---|
77 | * Tue Feb 09 2016 Toshiaki Ara <ara_t@384.jp> 1.24-1 |
---|
78 | - new package |
---|
79 | |
---|