1 | %define pkg_name old-locale |
---|
2 | %define pkg_version 1.0.0.7 |
---|
3 | %define pkg_release 3%{?_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: old-locale-1.0.0.7.tar.gz |
---|
17 | Source12: old-locale.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_configure2 %{name} ${pkg} |
---|
50 | %cabal_build |
---|
51 | %cabal_haddock |
---|
52 | %cabal_copy_resister %{name}_${pkg} |
---|
53 | popd |
---|
54 | done |
---|
55 | |
---|
56 | |
---|
57 | %install |
---|
58 | # copy documents |
---|
59 | pushd %{_builddir}/%{pkg_name}-%{version} |
---|
60 | %{__cp} changelog.md \ |
---|
61 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version} |
---|
62 | popd |
---|
63 | |
---|
64 | |
---|
65 | %clean |
---|
66 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
67 | |
---|
68 | %post |
---|
69 | %ghc_pkg_recache |
---|
70 | |
---|
71 | %postun |
---|
72 | %ghc_pkg_recache |
---|
73 | |
---|
74 | |
---|
75 | %files |
---|
76 | %defattr(-, root, root) |
---|
77 | %{_libdir}/ghc-%{ghc_version}/ |
---|
78 | %{_libdir}/ghc-lib/ |
---|
79 | %{_datadir}/ |
---|
80 | |
---|
81 | |
---|
82 | %changelog |
---|
83 | * Wed Aug 08 2018 Toshiaki Ara <ara_t@384.jp> 1.0.0.7-3 |
---|
84 | - rebuild with ghc-8.4.3-2 |
---|
85 | |
---|
86 | * Fri Jul 20 2018 Toshiaki Ara <ara_t@384.jp> 1.0.0.7-2 |
---|
87 | - build using ghc-8.4.3 |
---|
88 | |
---|
89 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 1.0.0.7-1 |
---|
90 | - new package |
---|