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