]> git.pld-linux.org Git - packages/hlint.git/blame - hlint.spec
- cpphs 1.13.1 is good too
[packages/hlint.git] / hlint.spec
CommitLineData
1977e247
JR
1Summary: Haskell Source code suggestions
2Name: hlint
29f6c2c0
JR
3Version: 1.8.15
4Release: 1
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
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
JR
23
24%description
25HLint gives suggestions on how to improve your source code.
26
a80ae27b
ER
27%package doc
28Summary: HTML documentation for %{pkgname}
29Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
30Group: Documentation
31
32%description doc
33HTML documentation for %{pkgname}.
34
35%description doc -l pl.UTF-8
36Dokumentacja w formacie HTML dla %{pkgname}.
37
1977e247
JR
38%prep
39%setup -q
9a72b6ac 40%patch0 -p1
1977e247
JR
41
42%build
43runhaskell Setup.hs configure -v2 \
44 --prefix=%{_prefix} \
45 --libdir=%{_libdir} \
46 --libexecdir=%{_libexecdir} \
47 --docdir=%{_docdir}/%{name}-%{version}
48
49runhaskell Setup.hs build
50runhaskell Setup.hs haddock --executables
51
52%install
53rm -rf $RPM_BUILD_ROOT
54install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
55
56runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
57
58# work around automatic haddock docs installation
59rm -rf %{name}-%{version}-doc
a80ae27b 60cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
1977e247
JR
61
62runhaskell Setup.hs register \
0390c50b 63 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
1977e247
JR
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post
a80ae27b 69%ghc_pkg_recache
1977e247
JR
70
71%postun
a80ae27b 72%ghc_pkg_recache
1977e247
JR
73
74%files
75%defattr(644,root,root,755)
0390c50b
JR
76%attr(755,root,root) %{_bindir}/hlint
77%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
78%{_libdir}/%{ghcdir}/%{name}-%{version}
79%{_datadir}/%{name}-%{version}
a80ae27b
ER
80
81%files doc
82%defattr(644,root,root,755)
83%doc %{name}-%{version}-doc/*
This page took 0.064114 seconds and 4 git commands to generate.