]>
Commit | Line | Data |
---|---|---|
6a700170 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without libtextstyle # libtextstyle support | |
4 | ||
24f59b75 | 5 | Summary: A GNU general-purpose parser generator |
7dc773b2 ER |
6 | Summary(de.UTF-8): GNU-Parser-Generator |
7 | Summary(es.UTF-8): Generador de parser de la GNU | |
8 | Summary(fr.UTF-8): Générateur d'analyseur lexical de GNU | |
9 | Summary(pl.UTF-8): GNU generator składni | |
10 | Summary(pt_BR.UTF-8): Gerador de parser da GNU | |
11 | Summary(ru.UTF-8): Bison - генератор парсеров GNU | |
12 | Summary(tr.UTF-8): GNU ayrıştırıcı üreticisi | |
13 | Summary(uk.UTF-8): Bison - генератор парсерів GNU | |
5b756fe0 | 14 | Name: bison |
96ede88d JB |
15 | Version: 3.8.2 |
16 | Release: 1 | |
55f3e7a8 | 17 | License: GPL v3+ |
5b756fe0 | 18 | Group: Development/Tools |
7327056c | 19 | Source0: https://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.lz |
96ede88d | 20 | # Source0-md5: 26e76218c2a50a0dd307286d42eb0af9 |
91bd8d53 | 21 | Source1: %{name}.1.pl |
d9618bcb | 22 | Patch0: %{name}-info.patch |
575c0706 | 23 | Patch1: no_libtextstyle.patch |
cea9ae8f | 24 | URL: http://www.gnu.org/software/bison/ |
6e2fa0e8 | 25 | BuildRequires: flex |
cf974a0f | 26 | BuildRequires: gcc >= 5:3.2 |
844e7839 | 27 | BuildRequires: gettext-tools >= 0.19 |
f3f14d48 | 28 | BuildRequires: help2man |
8288f3a3 | 29 | %{?with_libtextstyle:BuildRequires: libtextstyle-devel >= 0.20.5} |
f3f14d48 | 30 | BuildRequires: libxslt-progs |
7327056c | 31 | BuildRequires: lzip |
55f3e7a8 | 32 | BuildRequires: m4 >= 1.4.6 |
bf82a11b JB |
33 | # find_lang -a |
34 | BuildRequires: rpmbuild(find_lang) >= 1.31 | |
9c3f5e9b | 35 | BuildRequires: tar >= 1:1.22 |
6e2fa0e8 JB |
36 | BuildRequires: texinfo >= 4.0 |
37 | Requires: %{name}-runtime = %{version}-%{release} | |
575c0706 | 38 | %{?with_libtextstyle:Requires: libtextstyle >= 0.20.5} |
55f3e7a8 | 39 | Requires: m4 >= 1.4.6 |
cce72afb | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8152b60b | 41 | |
42 | %description | |
24f59b75 | 43 | Bison is a general purpose parser generator which converts a grammar |
1077209b | 44 | description for an LALR context-free grammar into a C program to parse |
45 | that grammar. Bison can be used to develop a wide range of language | |
46 | parsers, from ones used in simple desk calculators to complex | |
47 | programming languages. Bison is upwardly compatible with Yacc, so any | |
48 | correctly written Yacc grammar should work with Bison without any | |
49 | changes. If you know Yacc, you shouldn't have any trouble using Bison | |
50 | (but you do need to be very proficient in C programming to be able to | |
51 | use Bison). Many programs use Bison as part of their build process. | |
52 | Bison is only needed on systems that are used for development. | |
8152b60b | 53 | |
6feb1d42 JR |
54 | %description -l de.UTF-8 |
55 | Dies ist der GNU-Parser-Generator, der größtenteils mit yacc | |
1077209b | 56 | kompatibel ist. Viele Programme benutzen ihn als Teil des |
6feb1d42 | 57 | Aufbauvorgangs. Bison wird nur auf Systemen benötigt, die zur |
1077209b | 58 | Entwicklung verwendet werden. |
8152b60b | 59 | |
6feb1d42 JR |
60 | %description -l es.UTF-8 |
61 | Este es el creador de análisis gramatical GNU más compatible con yacc. | |
ec0aa715 | 62 | Varios programas lo utilizan como parte del su proceso de |
6feb1d42 | 63 | construcción. Bison solamente hace falta en sistemas que se usan para |
ec0aa715 | 64 | desarrollo. |
65 | ||
6feb1d42 JR |
66 | %description -l fr.UTF-8 |
67 | Générateur d'analyseur lexical de GNU compatible avec yacc. De | |
1077209b | 68 | nombreux programmes l'utilisent dans leur phase de construction. Bison |
6feb1d42 | 69 | ne sert que sur les systèmes utilisés pour le développement. |
8152b60b | 70 | |
6feb1d42 JR |
71 | %description -l pl.UTF-8 |
72 | W pakiecie znajduje się implementacja GNU generatora analizatora | |
73 | składni, który jest odpowiednikiem programu yacc. Wiele programów | |
74 | podczas kompilacji potrzebuje tego programu aby proces budowy plików | |
75 | binarnych przebiegał prawidłowo. Bison jest potrzebny tylko w | |
76 | systemach, w których prowadzone są różnego rodzaju kompilacje. | |
8152b60b | 77 | |
6feb1d42 JR |
78 | %description -l pt_BR.UTF-8 |
79 | Este é o gerador de análise gramatical GNU que é mais compatível com | |
80 | yacc. Vários programas o utilizam como parte do seu processo de | |
81 | construção. Bison é somente necessário em sistemas que são usados para | |
ec0aa715 | 82 | desenvolvimento. |
83 | ||
6feb1d42 JR |
84 | %description -l ru.UTF-8 |
85 | Bison - это парсер, в основном совместимый с yacc. Многие программы | |
86 | используют его в процессе компилляции. Bison нужен только в системах, | |
87 | которые используются для разработки программ. | |
23d44666 | 88 | |
6feb1d42 JR |
89 | %description -l tr.UTF-8 |
90 | byacc bir yacc ayrıştırıcısıdır. Pek çok program tarafından, kurulum | |
91 | süreci sırasında kullanılır. Geliştirme yapanlara gerekli olabilir. | |
8152b60b | 92 | |
6feb1d42 JR |
93 | %description -l uk.UTF-8 |
94 | Bison - це парсер, здебільшого сумісний з yacc. Багато програм | |
95 | використовують його в процесі компіляції. Bison потрібен тільки в | |
96 | системах, які використовуються для розробки програм. | |
23d44666 | 97 | |
6e2fa0e8 JB |
98 | %package runtime |
99 | Summary: Runtime library for programs containing bison-generated parsers | |
7dc773b2 | 100 | Summary(pl.UTF-8): Biblioteka uruchomieniowa dla programów zawierajacych parsery bisonowe |
6e2fa0e8 JB |
101 | Group: Libraries |
102 | ||
103 | %description runtime | |
104 | Runtime library for internationalized programs containing | |
105 | bison-generated parsers. | |
106 | ||
6feb1d42 JR |
107 | %description runtime -l pl.UTF-8 |
108 | Biblioteka uruchomieniowa dla umiędzynarodowionych programów | |
6e2fa0e8 JB |
109 | zawierajacych parsery wygenerowane przez bisona. |
110 | ||
8152b60b | 111 | %prep |
112 | %setup -q | |
11a6cf74 | 113 | %patch0 -p1 |
575c0706 | 114 | %{!?with_libtextstyle:%patch1 -p1} |
8152b60b | 115 | |
5342fbf9 | 116 | %{__rm} po/stamp-po |
e47395ce | 117 | |
8152b60b | 118 | %build |
575c0706 MK |
119 | %{__aclocal} -I m4 |
120 | %{__autoconf} | |
121 | %{__autoheader} | |
122 | %{__automake} | |
0295d2f0 JB |
123 | %configure \ |
124 | --disable-silent-rules | |
f3f14d48 | 125 | %{__make} |
8152b60b | 126 | |
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
780aa6b7 | 129 | install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1 |
8152b60b | 130 | |
3d08d4da | 131 | %{__make} install \ |
f3f14d48 | 132 | DESTDIR=$RPM_BUILD_ROOT |
5ef86f6c | 133 | |
4928bcc6 JB |
134 | install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1 |
135 | ||
f3f14d48 JB |
136 | # provided by byacc (bison is not 100% compatible) |
137 | %{__rm} $RPM_BUILD_ROOT{%{_bindir}/yacc,%{_mandir}/man1/yacc.1} | |
138 | ||
139 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
140 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/bison/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
141 | # the rest is packaged as %doc | |
142 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/bison | |
143 | ||
ec0aa715 | 144 | %find_lang %{name} |
bf82a11b | 145 | %find_lang %{name}-gnulib -a %{name}.lang |
6e2fa0e8 | 146 | %find_lang %{name}-runtime |
ec0aa715 | 147 | |
dde148fb AG |
148 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
149 | ||
4928bcc6 JB |
150 | %clean |
151 | rm -rf $RPM_BUILD_ROOT | |
5ef86f6c | 152 | |
55f3e7a8 | 153 | %post -p /sbin/postshell |
ba8d16f8 | 154 | -/usr/sbin/fix-info-dir -c %{_infodir} |
8152b60b | 155 | |
55f3e7a8 | 156 | %postun -p /sbin/postshell |
ba8d16f8 | 157 | -/usr/sbin/fix-info-dir -c %{_infodir} |
8152b60b | 158 | |
7e179a97 | 159 | %files -f %{name}.lang |
5b756fe0 | 160 | %defattr(644,root,root,755) |
6e2fa0e8 | 161 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
f2541715 | 162 | %attr(755,root,root) %{_bindir}/bison |
55f3e7a8 | 163 | %{_libdir}/liby.a |
f3f14d48 | 164 | %{_datadir}/bison |
6e2fa0e8 | 165 | %{_aclocaldir}/bison-i18n.m4 |
55f3e7a8 JB |
166 | %{_mandir}/man1/bison.1* |
167 | %lang(pl) %{_mandir}/pl/man1/bison.1* | |
168 | %{_infodir}/bison.info* | |
f3f14d48 | 169 | %{_examplesdir}/%{name}-%{version} |
6e2fa0e8 JB |
170 | |
171 | %files runtime -f %{name}-runtime.lang | |
172 | %defattr(644,root,root,755) |