]> git.pld-linux.org Git - packages/ghc-c2hs.git/blob - ghc-c2hs.spec
1ce41d32ec09a55c90c42eca5f3febe8506c163d
[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.8
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:  0d21188ad3737724e500982b88e32b9d
10 URL:            http://hackage.haskell.org/package/c2hs/
11 BuildRequires:  ghc >= 8.0
12 BuildRequires:  ghc-base >= 2
13 BuildRequires:  ghc-bytestring
14 BuildRequires:  ghc-dlist
15 BuildRequires:  ghc-filepath
16 BuildRequires:  ghc-language-c >= 0.7.1
17 BuildRequires:  rpmbuild(macros) >= 1.608
18 %requires_eq    ghc
19 Requires:       ghc-base >= 2
20 Requires:       ghc-bytestring
21 Requires:       ghc-dlist
22 Requires:       ghc-filepath
23 Requires:       ghc-language-c >= 0.7.1
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 # debuginfo is not useful for ghc
27 %define         _enable_debug_packages  0
28
29 %description
30 A Haskell binding to the c2hs graphics library.
31
32 %prep
33 %setup -q -n %{pkgname}-%{version}
34
35 %build
36 runhaskell Setup.hs configure -v2 \
37         --prefix=%{_prefix} \
38         --libdir=%{_libdir} \
39         --libexecdir=%{_libexecdir} \
40         --docdir=%{_docdir}/%{name}-%{version}
41
42 runhaskell Setup.hs build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
48
49 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc AUTHORS ChangeLog README
57 %attr(755,root,root) %{_bindir}/c2hs
This page took 0.05664 seconds and 3 git commands to generate.