]> git.pld-linux.org Git - packages/BNFC.git/blob - BNFC.spec
- rel
[packages/BNFC.git] / BNFC.spec
1 Summary:        BNF Converter
2 Summary(pl.UTF-8):      Konwerter BNF
3 Name:           BNFC
4 Version:        2.4.2.0
5 Release:        1
6 License:        GPL
7 Group:          Development/Tools
8 Source0:        http://hackage.haskell.org/packages/archive/BNFC/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  fda25414352413879bc8f76d0558fcb4
10 Patch0:         %{name}-ghc72.patch
11 URL:            http://www.cse.chalmers.se/research/group/Language-technology/BNFC/
12 BuildRequires:  ghc
13 BuildRequires:  gmp-devel
14 BuildRequires:  tetex-format-pdflatex
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 The BNF Converter is a compiler construction tool generating
19 a compiler front-end from a Labelled BNF grammar. It was originally
20 written to generate Haskell, but starting from version 2.0,
21 it can also be used for generating Java, C++, and C.
22
23 %description -l pl.UTF-8
24 BNF Converter to narzędzie do tworzenia kompilatorów generujące
25 frontend kompilatora z gramatyki w postaci Labelled BNF. Pierwotnie
26 zostało napisane do generowania Haskella, ale począwszy of wersji 2.0
27 potrafi także generować kod w Javie, C++ i C.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
34 runhaskell Setup.lhs configure -v2 --enable-library-profiling \
35         --prefix=%{_prefix} \
36         --libdir=%{_libdir} \
37         --libexecdir=%{_libexecdir} \
38         --docdir=%{_docdir}/%{name}-%{version}
39
40 runhaskell Setup.lhs build
41 runhaskell Setup.lhs haddock --executables
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
47
48 # work around automatic haddock docs installation
49 rm -rf %{name}-%{version}-doc
50 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc %{name}-%{version}-doc/html/bnfc/*
58 %attr(755,root,root) %{_bindir}/*
This page took 0.056222 seconds and 4 git commands to generate.