1 Summary: Haskell Source code suggestions
6 Group: Development/Languages
7 Source0: http://hackage.haskell.org/packages/archive/hlint/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 4ce291cb13ff410bff8f1b9adb9f8a34
9 Patch0: %{name}-deps.patch
10 URL: http://community.haskell.org/~ndm/hlint/
12 BuildRequires: ghc >= 6.12.3
13 BuildRequires: ghc-haskell-src-exts
14 BuildRequires: ghc-transformers
15 BuildRequires: ghc-uniplate
16 BuildRequires: hscolour
17 BuildRequires: rpmbuild(macros) >= 1.608
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 # debuginfo is not useful for ghc
22 %define _enable_debug_packages 0
25 HLint gives suggestions on how to improve your source code.
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}.
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 %attr(755,root,root) %{_bindir}/hlint
77 %{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
78 %{_libdir}/%{ghcdir}/%{name}-%{version}
79 %{_datadir}/%{name}-%{version}
82 %defattr(644,root,root,755)
83 %doc %{name}-%{version}-doc/*