]> git.pld-linux.org Git - packages/ghc-utf8-string.git/blame - ghc-utf8-string.spec
- fix md5
[packages/ghc-utf8-string.git] / ghc-utf8-string.spec
CommitLineData
916c4eba 1%define pkgname utf8-string
7ed0ca22
JR
2Summary: Support for reading and writing UTF8 Strings
3Name: ghc-%{pkgname}
f624d792
JR
4Version: 0.3.7
5Release: 1
7ed0ca22
JR
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
6eca526c 9# Source0-md5: 50e5c395713e716e0e4a56da73f87ccd
916c4eba 10URL: http://hackage.haskell.org/package/utf8-string/
431dcf85 11BuildRequires: ghc >= 6.12.3
8d020ae0 12BuildRequires: rpmbuild(macros) >= 1.608
b65391b4 13%requires_eq ghc
7ed0ca22
JR
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
b65391b4
ER
16# debuginfo is not useful for ghc
17%define _enable_debug_packages 0
18
7ed0ca22 19%description
8d020ae0
ER
20A UTF8 layer for IO and Strings. The utf8-string package provides
21operations for encoding UTF8 strings to Word8 lists and back, and for
22reading and writing UTF8 without truncation.
7ed0ca22 23
b65391b4
ER
24%package doc
25Summary: HTML documentation for %{pkgname}
26Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
27Group: Documentation
28
29%description doc
30HTML documentation for %{pkgname}.
31
32%description doc -l pl.UTF-8
33Dokumentacja w formacie HTML dla %{pkgname}.
34
7ed0ca22
JR
35%prep
36%setup -q -n %{pkgname}-%{version}
37
38%build
39./Setup.lhs configure -v2 \
40 --prefix=%{_prefix} \
41 --libdir=%{_libdir} \
42 --libexecdir=%{_libexecdir} \
7ed0ca22
JR
43 --docdir=%{_docdir}/%{name}-%{version}
44
45./Setup.lhs build
46./Setup.lhs haddock --executables
47
48%install
49rm -rf $RPM_BUILD_ROOT
431dcf85
JR
50install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
51
7ed0ca22
JR
52./Setup.lhs copy --destdir=$RPM_BUILD_ROOT
53
54# work around automatic haddock docs installation
55rm -rf %{name}-%{version}-doc
b65391b4 56cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
7ed0ca22
JR
57
58./Setup.lhs register \
431dcf85 59 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
7ed0ca22
JR
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
916c4eba 65%ghc_pkg_recache
7ed0ca22
JR
66
67%postun
916c4eba 68%ghc_pkg_recache
7ed0ca22
JR
69
70%files
71%defattr(644,root,root,755)
431dcf85
JR
72%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
73%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
b65391b4
ER
74
75%files doc
76%defattr(644,root,root,755)
77%doc %{name}-%{version}-doc/*
This page took 0.077542 seconds and 4 git commands to generate.