]> git.pld-linux.org Git - packages/bison.git/blob - bison.spec
- updated to 2.5.1
[packages/bison.git] / bison.spec
1 Summary:        A GNU general-purpose parser generator
2 Summary(de.UTF-8):      GNU-Parser-Generator
3 Summary(es.UTF-8):      Generador de parser de la GNU
4 Summary(fr.UTF-8):      Générateur d'analyseur lexical de GNU
5 Summary(pl.UTF-8):      GNU generator składni
6 Summary(pt_BR.UTF-8):   Gerador de parser da GNU
7 Summary(ru.UTF-8):      Bison - генератор парсеров GNU
8 Summary(tr.UTF-8):      GNU ayrıştırıcı üreticisi
9 Summary(uk.UTF-8):      Bison - генератор парсерів GNU
10 Name:           bison
11 Version:        2.5.1
12 Release:        1
13 License:        GPL v3+
14 Group:          Development/Tools
15 Source0:        http://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.xz
16 # Source0-md5:  012708d801a3c986d8654aa673530b61
17 Source1:        %{name}.1.pl
18 Patch0:         %{name}-info.patch
19 Patch1:         %{name}-pl.po-update.patch
20 URL:            http://gnu.org/software/bison/
21 BuildRequires:  automake >= 1:1.11.1
22 BuildRequires:  flex
23 BuildRequires:  gettext-devel >= 0.18
24 BuildRequires:  m4 >= 1.4.6
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  texinfo >= 4.0
27 BuildRequires:  xz
28 Requires:       %{name}-runtime = %{version}-%{release}
29 Requires:       m4 >= 1.4.6
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         pkgdatadir      %{_datadir}/bison
33
34 %description
35 Bison is a general purpose parser generator which converts a grammar
36 description for an LALR context-free grammar into a C program to parse
37 that grammar. Bison can be used to develop a wide range of language
38 parsers, from ones used in simple desk calculators to complex
39 programming languages. Bison is upwardly compatible with Yacc, so any
40 correctly written Yacc grammar should work with Bison without any
41 changes. If you know Yacc, you shouldn't have any trouble using Bison
42 (but you do need to be very proficient in C programming to be able to
43 use Bison). Many programs use Bison as part of their build process.
44 Bison is only needed on systems that are used for development.
45
46 %description -l de.UTF-8
47 Dies ist der GNU-Parser-Generator, der größtenteils mit yacc
48 kompatibel ist. Viele Programme benutzen ihn als Teil des
49 Aufbauvorgangs. Bison wird nur auf Systemen benötigt, die zur
50 Entwicklung verwendet werden.
51
52 %description -l es.UTF-8
53 Este es el creador de análisis gramatical GNU más compatible con yacc.
54 Varios programas lo utilizan como parte del su proceso de
55 construcción. Bison solamente hace falta en sistemas que se usan para
56 desarrollo.
57
58 %description -l fr.UTF-8
59 Générateur d'analyseur lexical de GNU compatible avec yacc. De
60 nombreux programmes l'utilisent dans leur phase de construction. Bison
61 ne sert que sur les systèmes utilisés pour le développement.
62
63 %description -l pl.UTF-8
64 W pakiecie znajduje się implementacja GNU generatora analizatora
65 składni, który jest odpowiednikiem programu yacc. Wiele programów
66 podczas kompilacji potrzebuje tego programu aby proces budowy plików
67 binarnych przebiegał prawidłowo. Bison jest potrzebny tylko w
68 systemach, w których prowadzone są różnego rodzaju kompilacje.
69
70 %description -l pt_BR.UTF-8
71 Este é o gerador de análise gramatical GNU que é mais compatível com
72 yacc. Vários programas o utilizam como parte do seu processo de
73 construção. Bison é somente necessário em sistemas que são usados para
74 desenvolvimento.
75
76 %description -l ru.UTF-8
77 Bison - это парсер, в основном совместимый с yacc. Многие программы
78 используют его в процессе компилляции. Bison нужен только в системах,
79 которые используются для разработки программ.
80
81 %description -l tr.UTF-8
82 byacc bir yacc ayrıştırıcısıdır. Pek çok program tarafından, kurulum
83 süreci sırasında kullanılır. Geliştirme yapanlara gerekli olabilir.
84
85 %description -l uk.UTF-8
86 Bison - це парсер, здебільшого сумісний з yacc. Багато програм
87 використовують його в процесі компіляції. Bison потрібен тільки в
88 системах, які використовуються для розробки програм.
89
90 %package runtime
91 Summary:        Runtime library for programs containing bison-generated parsers
92 Summary(pl.UTF-8):      Biblioteka uruchomieniowa dla programów zawierajacych parsery bisonowe
93 Group:          Libraries
94
95 %description runtime
96 Runtime library for internationalized programs containing
97 bison-generated parsers.
98
99 %description runtime -l pl.UTF-8
100 Biblioteka uruchomieniowa dla umiędzynarodowionych programów
101 zawierajacych parsery wygenerowane przez bisona.
102
103 %prep
104 %setup -q
105 %patch0 -p1
106 %patch1 -p1
107
108 %{__rm} po/stamp-po
109
110 %build
111 cp -f /usr/share/automake/config.sub config
112 %configure
113 %{__make} \
114         pkgdatadir=%{pkgdatadir}
115
116 %install
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
119
120 %{__make} install \
121         DESTDIR=$RPM_BUILD_ROOT \
122         pkgdatadir=%{pkgdatadir}
123
124 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
125
126 %find_lang %{name}
127 %find_lang %{name}-runtime
128
129 %clean
130 rm -rf $RPM_BUILD_ROOT
131
132 %post   -p /sbin/postshell
133 -/usr/sbin/fix-info-dir -c %{_infodir}
134
135 %postun -p /sbin/postshell
136 -/usr/sbin/fix-info-dir -c %{_infodir}
137
138 %files -f %{name}.lang
139 %defattr(644,root,root,755)
140 %doc AUTHORS ChangeLog NEWS README THANKS TODO
141 %attr(755,root,root) %{_bindir}/bison
142 # would conflict with byacc (but is not 100% compatible)
143 #%attr(755,root,root) %{_bindir}/yacc
144 %{pkgdatadir}
145 %{_libdir}/liby.a
146 %{_aclocaldir}/bison-i18n.m4
147 %{_mandir}/man1/bison.1*
148 %lang(pl) %{_mandir}/pl/man1/bison.1*
149 %{_infodir}/bison.info*
150
151 %files runtime -f %{name}-runtime.lang
152 %defattr(644,root,root,755)
This page took 0.063712 seconds and 3 git commands to generate.