]> git.pld-linux.org Git - packages/ghc-c2hs.git/blame - ghc-c2hs.spec
- release 3
[packages/ghc-c2hs.git] / ghc-c2hs.spec
CommitLineData
99773ddb 1%define pkgname c2hs
91532835
JB
2Summary: C->Haskell FFI tool that gives some cross-language type safety
3Summary(pl.UTF-8): Narzędzie FFI C->Haskell dające pewne bezpieczeństwo typów między językami
99773ddb 4Name: ghc-%{pkgname}
89a928fa 5Version: 0.28.8
1adcfc51 6Release: 3
99773ddb
JP
7License: BSD
8Group: Development/Languages
9Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
89a928fa 10# Source0-md5: 0d21188ad3737724e500982b88e32b9d
99773ddb 11URL: http://hackage.haskell.org/package/c2hs/
89a928fa
JP
12BuildRequires: ghc >= 8.0
13BuildRequires: ghc-base >= 2
14BuildRequires: ghc-bytestring
15BuildRequires: ghc-dlist
16BuildRequires: ghc-filepath
17BuildRequires: ghc-language-c >= 0.7.1
99773ddb
JP
18BuildRequires: rpmbuild(macros) >= 1.608
19%requires_eq ghc
89a928fa
JP
20Requires: ghc-base >= 2
21Requires: ghc-bytestring
22Requires: ghc-dlist
23Requires: ghc-filepath
24Requires: ghc-language-c >= 0.7.1
99773ddb
JP
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27# debuginfo is not useful for ghc
28%define _enable_debug_packages 0
29
30%description
91532835
JB
31C->Haskell assists in the development of Haskell bindings to C
32libraries. It extracts interface information from C header files and
33generates Haskell code with foreign imports and marshaling. Unlike
34writing foreign imports by hand (or using hsc2hs), this ensures that C
35functions are imported with the correct Haskell types.
36
37%description -l pl.UTF-8
38C->Haskell pomaga przy tworzeniu wiązań Haskella do bibliotek C.
39Wydobywa informacje o interfejsach z plików nagłówkowych C i generuje
40kod w Haskellu z obcymi importami i szeregowaniem. W przeciwieństwie
41do ręcznego pisania importów (albo używania hsc2hs) zapewnia, że
42funkcje C są importowane z poprawnymi typami Haskella.
99773ddb
JP
43
44%prep
45%setup -q -n %{pkgname}-%{version}
46
47%build
48runhaskell Setup.hs configure -v2 \
49 --prefix=%{_prefix} \
50 --libdir=%{_libdir} \
51 --libexecdir=%{_libexecdir} \
52 --docdir=%{_docdir}/%{name}-%{version}
53
54runhaskell Setup.hs build
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
60
908b40a5
JR
61%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
62
99773ddb
JP
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
908b40a5 68%doc AUTHORS ChangeLog README
99773ddb 69%attr(755,root,root) %{_bindir}/c2hs
This page took 0.167951 seconds and 4 git commands to generate.