]> git.pld-linux.org Git - packages/ghc-c2hs.git/blame - ghc-c2hs.spec
- up to 0.28.6
[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}
908b40a5 4Version: 0.28.6
e64fafda 5Release: 1
99773ddb
JP
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
908b40a5 9# Source0-md5: fdb24350973ecdc2376576241707ff74
99773ddb
JP
10URL: http://hackage.haskell.org/package/c2hs/
11BuildRequires: ghc >= 6.12.3
99773ddb
JP
12BuildRequires: ghc-language-c >= 0.3.1.1
13BuildRequires: rpmbuild(macros) >= 1.608
14%requires_eq ghc
99773ddb
JP
15Requires: ghc-language-c >= 0.3.1.1
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18# debuginfo is not useful for ghc
19%define _enable_debug_packages 0
20
21%description
22A Haskell binding to the c2hs graphics library.
23
24%prep
25%setup -q -n %{pkgname}-%{version}
26
27%build
28runhaskell Setup.hs configure -v2 \
29 --prefix=%{_prefix} \
30 --libdir=%{_libdir} \
31 --libexecdir=%{_libexecdir} \
32 --docdir=%{_docdir}/%{name}-%{version}
33
34runhaskell Setup.hs build
35
36%install
37rm -rf $RPM_BUILD_ROOT
38
39runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
40
908b40a5
JR
41%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
42
99773ddb
JP
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
908b40a5 48%doc AUTHORS ChangeLog README
99773ddb 49%attr(755,root,root) %{_bindir}/c2hs
This page took 0.086124 seconds and 4 git commands to generate.