]> git.pld-linux.org Git - packages/ghc-c2hs.git/blame - ghc-c2hs.spec
- new
[packages/ghc-c2hs.git] / ghc-c2hs.spec
CommitLineData
99773ddb
JP
1%define pkgname c2hs
2Summary: A Haskell binding to the c2hs graphics library
3Name: ghc-%{pkgname}
4Version: 0.16.4
5Release: 0.1
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9# Source0-md5: 5650ffd0cc901be8ab874c58c83f253e
10URL: http://hackage.haskell.org/package/c2hs/
11BuildRequires: ghc >= 6.12.3
12BuildRequires: ghc-language-c < 0.4
13BuildRequires: ghc-language-c >= 0.3.1.1
14BuildRequires: rpmbuild(macros) >= 1.608
15%requires_eq ghc
16Requires: ghc-language-c < 0.4
17Requires: ghc-language-c >= 0.3.1.1
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 c2hs graphics library.
25
26%prep
27%setup -q -n %{pkgname}-%{version}
28
29%build
30runhaskell Setup.hs configure -v2 \
31 --prefix=%{_prefix} \
32 --libdir=%{_libdir} \
33 --libexecdir=%{_libexecdir} \
34 --docdir=%{_docdir}/%{name}-%{version}
35
36runhaskell Setup.hs build
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
41runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
48%attr(755,root,root) %{_bindir}/c2hs
This page took 0.035353 seconds and 4 git commands to generate.