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