]> git.pld-linux.org Git - packages/hlint.git/blame - hlint.spec
- rel 2
[packages/hlint.git] / hlint.spec
CommitLineData
1977e247
JR
1Summary: Haskell Source code suggestions
2Name: hlint
29f6c2c0 3Version: 1.8.15
f8181433 4Release: 2
1977e247
JR
5License: GPL
6Group: Development/Languages
a80ae27b 7Source0: http://hackage.haskell.org/packages/archive/hlint/%{version}/%{name}-%{version}.tar.gz
29f6c2c0 8# Source0-md5: 4ce291cb13ff410bff8f1b9adb9f8a34
9a72b6ac 9Patch0: %{name}-deps.patch
1977e247 10URL: http://community.haskell.org/~ndm/hlint/
7b5e8a6f 11BuildRequires: cpphs
1977e247 12BuildRequires: ghc >= 6.12.3
7b5e8a6f
JR
13BuildRequires: ghc-haskell-src-exts
14BuildRequires: ghc-transformers
15BuildRequires: ghc-uniplate
0390c50b 16BuildRequires: hscolour
a80ae27b
ER
17BuildRequires: rpmbuild(macros) >= 1.608
18%requires_eq ghc
f8181433 19Obsoletes: hlint-doc
1977e247
JR
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
a80ae27b
ER
22# debuginfo is not useful for ghc
23%define _enable_debug_packages 0
1977e247 24
f8181433
JR
25# don't compress haddoc files
26%define _noautocompressdoc *.haddock
27
1977e247
JR
28%description
29HLint gives suggestions on how to improve your source code.
30
31%prep
32%setup -q
9a72b6ac 33%patch0 -p1
1977e247
JR
34
35%build
36runhaskell Setup.hs configure -v2 \
37 --prefix=%{_prefix} \
38 --libdir=%{_libdir} \
39 --libexecdir=%{_libexecdir} \
40 --docdir=%{_docdir}/%{name}-%{version}
41
42runhaskell Setup.hs build
43runhaskell Setup.hs haddock --executables
44
45%install
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
48
49runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
50
51# work around automatic haddock docs installation
52rm -rf %{name}-%{version}-doc
f8181433 53cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
1977e247
JR
54
55runhaskell Setup.hs register \
0390c50b 56 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
1977e247
JR
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
a80ae27b 62%ghc_pkg_recache
1977e247
JR
63
64%postun
a80ae27b 65%ghc_pkg_recache
1977e247
JR
66
67%files
68%defattr(644,root,root,755)
f8181433 69%doc %{name}-%{version}-doc/*
0390c50b
JR
70%attr(755,root,root) %{_bindir}/hlint
71%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
72%{_libdir}/%{ghcdir}/%{name}-%{version}
73%{_datadir}/%{name}-%{version}
This page took 0.56615 seconds and 4 git commands to generate.