1 Summary: A liberalised re-implementation of cpp, the C pre-processor
6 Group: Development/Languages
7 Source0: http://hackage.haskell.org/packages/archive/cpphs/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: ece7f9a5335a8fd569f0b8c7153ecfaa
9 URL: http://haskell.org/cpphs/
10 BuildRequires: ghc >= 6.12.3
11 BuildRequires: rpmbuild(macros) >= 1.608
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 # debuginfo is not useful for ghc
16 %define _enable_debug_packages 0
19 Cpphs is a re-implementation of the C pre-processor that is both more
20 compatible with Haskell, and itself written in Haskell so that it can
21 be distributed with compilers.
23 This version of the C pre-processor is pretty-much feature-complete
24 and compatible with traditional (K&R) pre-processors. Additional
25 features include: a plain-text mode; an option to unlit literate code
26 files; and an option to turn off macro-expansion.
29 Summary: HTML documentation for %{pkgname}
30 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
34 HTML documentation for %{pkgname}.
36 %description doc -l pl.UTF-8
37 Dokumentacja w formacie HTML dla %{pkgname}.
43 runhaskell Setup.hs configure -v2 \
46 --libexecdir=%{_libexecdir} \
47 --docdir=%{_docdir}/%{name}-%{version}
49 runhaskell Setup.hs build
50 runhaskell Setup.hs haddock --executables
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
56 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
58 # work around automatic haddock docs installation
59 rm -rf %{name}-%{version}-doc
60 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
62 runhaskell Setup.hs register \
63 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
66 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc CHANGELOG README docs/design docs/index.html
77 %attr(755,root,root) %{_bindir}/cpphs
78 %{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
79 %{_libdir}/%{ghcdir}/%{name}-%{version}
82 %defattr(644,root,root,755)
83 %doc %{name}-%{version}-doc/*