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