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