]> git.pld-linux.org Git - packages/ghc-timezone-olson.git/blame - ghc-timezone-olson.spec
rebuild with ghc 8.10.7
[packages/ghc-timezone-olson.git] / ghc-timezone-olson.spec
CommitLineData
aedc48b6
JP
1%define pkgname timezone-olson
2Summary: A Haskell binding to the timezone-olson graphics library
3Name: ghc-%{pkgname}
55226d4e 4Version: 0.2.0
28519052 5Release: 2
aedc48b6
JP
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
55226d4e 9# Source0-md5: 0ad826b14671e87c35ce0c638b4ff1be
aedc48b6
JP
10URL: http://hackage.haskell.org/package/timezone-olson/
11BuildRequires: ghc >= 6.12.3
12BuildRequires: ghc-extensible-exceptions < 0.2
13BuildRequires: ghc-extensible-exceptions >= 0.1.0
14BuildRequires: ghc-timezone-series < 0.2
15BuildRequires: ghc-timezone-series >= 0.1.0
16BuildRequires: rpmbuild(macros) >= 1.608
17%requires_eq ghc
18Requires: ghc-extensible-exceptions < 0.2
19Requires: ghc-extensible-exceptions >= 0.1.0
20Requires: ghc-timezone-series < 0.2
21Requires: ghc-timezone-series >= 0.1.0
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24# debuginfo is not useful for ghc
25%define _enable_debug_packages 0
26
27%description
28A Haskell binding to the timezone-olson graphics library.
29
30%package doc
31Summary: HTML documentation for %{pkgname}
32Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
33Group: Documentation
34
35%description doc
36HTML documentation for %{pkgname}.
37
38%description doc -l pl.UTF-8
39Dokumentacja w formacie HTML dla %{pkgname}.
40
41%prep
42%setup -q -n %{pkgname}-%{version}
43
44%build
45runhaskell Setup.hs configure -v2 \
46 --prefix=%{_prefix} \
47 --libdir=%{_libdir} \
48 --libexecdir=%{_libexecdir} \
49 --docdir=%{_docdir}/%{name}-%{version}
50
51runhaskell Setup.hs build
52runhaskell Setup.hs haddock --executables
53
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
57
58runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
59
60# work around automatic haddock docs installation
61rm -rf %{name}-%{version}-doc
62cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
63%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
64
65runhaskell Setup.hs register \
66 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post
72%ghc_pkg_recache
73
74%postun
75%ghc_pkg_recache
76
77%files
78%defattr(644,root,root,755)
79%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
80%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
81
82%files doc
83%defattr(644,root,root,755)
84%doc %{name}-%{version}-doc/*
This page took 0.440219 seconds and 4 git commands to generate.