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