1 %define pkgname X11-xft
2 Summary: A Haskell binding to the X11-xft graphics library
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: ad885150a59f63de328e73abe5ffc79e
10 URL: http://hackage.haskell.org/package/X11-xft/
11 BuildRequires: ghc >= 6.12.3
12 BuildRequires: ghc-utf8-string >= 0.1
13 BuildRequires: ghc-X11 >= 1.2.1
14 BuildRequires: rpmbuild(macros) >= 1.608
15 BuildRequires: xorg-lib-libXft-devel
17 Requires: ghc-utf8-string >= 0.1
18 Requires: ghc-X11 >= 1.2.1
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 # debuginfo is not useful for ghc
22 %define _enable_debug_packages 0
25 A Haskell binding to the X11-xft graphics library.
28 Summary: HTML documentation for %{pkgname}
29 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
33 HTML documentation for %{pkgname}.
35 %description doc -l pl.UTF-8
36 Dokumentacja w formacie HTML dla %{pkgname}.
39 %setup -q -n %{pkgname}-%{version}
42 runhaskell Setup.lhs configure -v2 \
45 --libexecdir=%{_libexecdir} \
46 --docdir=%{_docdir}/%{name}-%{version}
48 runhaskell Setup.lhs build
49 runhaskell Setup.lhs haddock --executables
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
55 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
57 # work around automatic haddock docs installation
58 rm -rf %{name}-%{version}-doc
59 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
60 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
62 runhaskell Setup.lhs register \
63 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
66 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
77 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
80 %defattr(644,root,root,755)
81 %doc %{name}-%{version}-doc/*