]> git.pld-linux.org Git - packages/ghc-language-c.git/blame - ghc-language-c.spec
- up to 0.8.3
[packages/ghc-language-c.git] / ghc-language-c.spec
CommitLineData
fc06e16e
JP
1%define pkgname language-c
2Summary: A Haskell binding to the language-c graphics library
3Name: ghc-%{pkgname}
a21f102b 4Version: 0.8.3
503e61cb 5Release: 1
fc06e16e
JP
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
a21f102b 9# Source0-md5: 910b20d8348cd353a0c3e8b928caf73b
fc06e16e 10URL: http://hackage.haskell.org/package/language-c/
4265c721 11BuildRequires: alex
fc06e16e
JP
12BuildRequires: ghc >= 6.12.3
13BuildRequires: ghc-syb
4265c721 14BuildRequires: happy
fc06e16e
JP
15BuildRequires: rpmbuild(macros) >= 1.608
16%requires_eq ghc
17Requires: ghc-syb
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20# debuginfo is not useful for ghc
21%define _enable_debug_packages 0
22
23%description
24A Haskell binding to the language-c graphics library.
25
26%package doc
27Summary: HTML documentation for %{pkgname}
28Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
29Group: Documentation
30
31%description doc
32HTML documentation for %{pkgname}.
33
34%description doc -l pl.UTF-8
35Dokumentacja w formacie HTML dla %{pkgname}.
36
37%prep
38%setup -q -n %{pkgname}-%{version}
39
40%build
41runhaskell Setup.hs configure -v2 \
42 --prefix=%{_prefix} \
43 --libdir=%{_libdir} \
44 --libexecdir=%{_libexecdir} \
45 --docdir=%{_docdir}/%{name}-%{version}
46
47runhaskell Setup.hs build
48runhaskell Setup.hs haddock --executables
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
53
54runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
55
56# work around automatic haddock docs installation
57rm -rf %{name}-%{version}-doc
58cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
59%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
60
61runhaskell Setup.hs register \
62 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
68%ghc_pkg_recache
69
70%postun
71%ghc_pkg_recache
72
73%files
74%defattr(644,root,root,755)
75%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
76%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
77
78%files doc
79%defattr(644,root,root,755)
80%doc %{name}-%{version}-doc/*
This page took 0.11799 seconds and 4 git commands to generate.