1 | %define pkg_name haddock-library |
---|
2 | %define pkg_version 1.7.0 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: Haskell libraries: %{pkg_name} |
---|
6 | Name: libghc-%{pkg_name} |
---|
7 | Version: %{pkg_version} |
---|
8 | Release: %{pkg_release} |
---|
9 | |
---|
10 | License: BSD3 |
---|
11 | Group: Applications/Text |
---|
12 | URL: http://hackage.haskell.org |
---|
13 | |
---|
14 | Source0: packages |
---|
15 | |
---|
16 | Source11: haddock-library-1.7.0.tar.gz |
---|
17 | Source12: haddock-library.cabal |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | |
---|
21 | BuildRequires: ghc haskell-platform |
---|
22 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
23 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
24 | |
---|
25 | Requires: ghc haskell-platform |
---|
26 | Requires: haskell-platform-dep |
---|
27 | |
---|
28 | |
---|
29 | Vendor: Project Vine |
---|
30 | Distribution: Vine Linux |
---|
31 | Packager: ara_t |
---|
32 | |
---|
33 | |
---|
34 | %description |
---|
35 | Haskell libraries: %{pkg_name}-%{version} |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
40 | |
---|
41 | %build |
---|
42 | %ghc_pkg_init |
---|
43 | |
---|
44 | cd %{_builddir} |
---|
45 | for pkg in `cat %{SOURCE0}`; do |
---|
46 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
47 | pushd ${pkg} |
---|
48 | %ghc_fix_dependencies ${pkg} |
---|
49 | %cabal_configure1 ${pkg} |
---|
50 | %cabal_build |
---|
51 | %cabal_haddock |
---|
52 | %cabal_copy_resister ${pkg} |
---|
53 | popd |
---|
54 | done |
---|
55 | |
---|
56 | |
---|
57 | # %install |
---|
58 | # # move conf files to correct site |
---|
59 | # pushd ${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d |
---|
60 | # %{__mv} %{pkg_name}-%{version}.conf/* . |
---|
61 | # for conf in *-%{pkg_name}-%{version}-*; do |
---|
62 | # %{__mv} ${conf} `echo ${conf} | sed -e "s/[0-9.]\+-//"`.conf |
---|
63 | # done |
---|
64 | # %{__rm} -rf %{pkg_name}-%{version}.conf |
---|
65 | # popd |
---|
66 | |
---|
67 | # # copy documents |
---|
68 | # pushd %{_builddir}/%{pkg_name}-%{version} |
---|
69 | # %{__cp} CHANGES.md \ |
---|
70 | # ${RPM_BUILD_ROOT}%{_docdir}/%{pkg_name}-%{version} |
---|
71 | # popd |
---|
72 | |
---|
73 | |
---|
74 | %clean |
---|
75 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
76 | |
---|
77 | %post |
---|
78 | %ghc_pkg_recache |
---|
79 | |
---|
80 | %postun |
---|
81 | %ghc_pkg_recache |
---|
82 | |
---|
83 | |
---|
84 | %files |
---|
85 | %defattr(-, root, root) |
---|
86 | %{_libdir}/ghc-%{ghc_version}/ |
---|
87 | %{_libdir}/ghc-lib/ |
---|
88 | %{_datadir}/ |
---|
89 | |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Mon Dec 17 2018 Toshiaki Ara <ara_t@384.jp> 1.7.0-1 |
---|
93 | - update to 1.7.0 |
---|
94 | |
---|
95 | * Wed Aug 08 2018 Toshiaki Ara <ara_t@384.jp> 1.6.0-2 |
---|
96 | - rebuild with ghc-8.4.3-2 |
---|
97 | |
---|
98 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 1.6.0-1 |
---|
99 | - update to 1.6.0 |
---|
100 | - build using ghc-8.4.3 |
---|
101 | |
---|
102 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 1.5.0.1-1 |
---|
103 | - new package |
---|
104 | |
---|