]>
Commit | Line | Data |
---|---|---|
5068aeaf JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # "make check" | |
4 | # | |
755d68c5 | 5 | Summary: Tree compiler-compiler |
93d4950e ER |
6 | Summary(pl.UTF-8): Kompilator kompilacji drzew |
7 | Summary(pt_BR.UTF-8): Tree Compilador de compiladores | |
755d68c5 | 8 | Name: treecc |
4b7beab3 | 9 | Version: 0.3.10 |
2d6a3fe4 | 10 | Release: 2 |
5068aeaf | 11 | License: GPL v2+ |
755d68c5 | 12 | Group: Development/Languages |
4b7beab3 JR |
13 | Source0: http://download.savannah.gnu.org/releases/dotgnu-pnet/%{name}-%{version}.tar.gz |
14 | # Source0-md5: def09f2132f87d6a38a0718e2f14ee61 | |
15 | URL: http://www.gnu.org/software/dotgnu/pnet.html | |
59b6e087 | 16 | BuildRequires: autoconf |
cb875049 | 17 | BuildRequires: automake >= 1.6 |
c694cd25 JB |
18 | BuildRequires: bison |
19 | BuildRequires: flex | |
842a880d | 20 | BuildRequires: texinfo |
755d68c5 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
842a880d | 24 | The treecc program is designed to assist in the development of |
25 | compilers and other language-based tools. It manages the generation of | |
26 | code to handle abstract syntax trees and operations upon the trees. | |
755d68c5 | 27 | |
82b61fdf JR |
28 | %description -l pl.UTF-8 |
29 | Program treecc jest przeznaczony do pomocy w tworzeniu kompilatorów i | |
30 | innych bazujących na językach narzędzi. Zarządza generowaniem kodu do | |
31 | obsługi abstrakcyjnej składni drzew i operacji na drzewach. | |
755d68c5 | 32 | |
82b61fdf JR |
33 | %description -l pt_BR.UTF-8 |
34 | O programa treecc é destinado a auxiliar no desenvolviemnto de | |
dea60dfe | 35 | compiladores e outras ferramentas baseadas em linguagens. Ele controla |
82b61fdf JR |
36 | a geração de código para manipulação de árvores de sintaxe abstrata e |
37 | operações através de árvores | |
dea60dfe | 38 | |
755d68c5 | 39 | %prep |
40 | %setup -q | |
41 | ||
42 | %build | |
8bd4b53d | 43 | %{__aclocal} |
67a76662 | 44 | %{__autoconf} |
5068aeaf | 45 | %{__autoheader} |
67a76662 | 46 | %{__automake} |
47 | %configure | |
3e3c98f9 | 48 | %{__make} |
5068aeaf JB |
49 | |
50 | %if %{with tests} | |
0df4ec62 | 51 | %{__make} check |
5068aeaf | 52 | %endif |
755d68c5 | 53 | |
54 | %install | |
842a880d | 55 | rm -rf $RPM_BUILD_ROOT |
56 | ||
e4b26295 | 57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
755d68c5 | 59 | |
5068aeaf JB |
60 | # API not exported (should be noinst) |
61 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtreecc.a | |
62 | ||
13881bd8 JB |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
5068aeaf | 66 | %post -p /sbin/postshell |
3f74a26f | 67 | -/usr/sbin/fix-info-dir -c %{_infodir} |
755d68c5 | 68 | |
5068aeaf | 69 | %postun -p /sbin/postshell |
3f74a26f | 70 | -/usr/sbin/fix-info-dir -c %{_infodir} |
755d68c5 | 71 | |
755d68c5 | 72 | %files |
73 | %defattr(644,root,root,755) | |
5068aeaf JB |
74 | %doc AUTHORS ChangeLog NEWS README doc/{binary_readme,extending}.txt doc/essay.html |
75 | %attr(755,root,root) %{_bindir}/treecc | |
76 | %{_mandir}/man1/treecc.1* | |
77 | %{_infodir}/treecc.info* |