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