]> git.pld-linux.org Git - packages/bison.git/blobdiff - bison.spec
- updated to 2.5.1
[packages/bison.git] / bison.spec
index 2d9d7c748cae867ce1f5dc5d71b1ff3415d35652..20010fad872bcce43a3bfa49ae057b7b7a706e67 100644 (file)
-Summary:     GNU parser generator
-Summary(de): GNU-Parser-Generator
-Summary(fr): Générateur d'analyseur lexical de GNU
-Summary(pl): GNU generator sk³adni 
-Summary(tr): GNU ayrýþtýrýcý üreticisi
-Name:        bison
-Version:     1.25
-Release:     7
-Copyright:   GPL
-Group:       Development/Tools
-Source0:     ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Source1:     bison.1.pl
-Prereq:      /sbin/install-info
-Buildroot:   /tmp/%{name}-%{version}-root
-Obsoletes:   yacc
+Summary:       A GNU general-purpose parser generator
+Summary(de.UTF-8):     GNU-Parser-Generator
+Summary(es.UTF-8):     Generador de parser de la GNU
+Summary(fr.UTF-8):     Générateur d'analyseur lexical de GNU
+Summary(pl.UTF-8):     GNU generator składni
+Summary(pt_BR.UTF-8):  Gerador de parser da GNU
+Summary(ru.UTF-8):     Bison - генератор парсеров GNU
+Summary(tr.UTF-8):     GNU ayrıştırıcı üreticisi
+Summary(uk.UTF-8):     Bison - генератор парсерів GNU
+Name:          bison
+Version:       2.5.1
+Release:       1
+License:       GPL v3+
+Group:         Development/Tools
+Source0:       http://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.xz
+# Source0-md5: 012708d801a3c986d8654aa673530b61
+Source1:       %{name}.1.pl
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-pl.po-update.patch
+URL:           http://gnu.org/software/bison/
+BuildRequires: automake >= 1:1.11.1
+BuildRequires: flex
+BuildRequires: gettext-devel >= 0.18
+BuildRequires: m4 >= 1.4.6
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo >= 4.0
+BuildRequires: xz
+Requires:      %{name}-runtime = %{version}-%{release}
+Requires:      m4 >= 1.4.6
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                pkgdatadir      %{_datadir}/bison
 
 %description
-This is the GNU parser generator which is mostly compatible with yacc. Many
-programs use this as part of their build process. Bison is only needed on
-systems that are used for development.
-
-%description -l de
-Dies ist der GNU-Parser-Generator, der größtenteils mit yacc kompatibel ist. Viele
-Programme benutzen ihn als Teil des Aufbauvorgangs. Bison wird nur auf
-Systemen benötigt, die zur Entwicklung verwendet werden.
-
-%description -l fr
-Générateur d'analyseur lexical de GNU compatible avec yacc. De nombreux
-programmes l'utilisent dans leur phase de construction. Bison ne sert que
-sur les systèmes utilisés pour le développement.
-
-%description -l pl
-W pakiecie znajduje siê implementacja GNU generatora analizatora sk³adni,
-który jest odpowiednikiem programu yacc. Wiele programów podczas kompilacji
-potrzebuje tego programu aby proces budowy plików binarnych przebiega³
-prawid³owo. Bison jest potrzebny tylko w systemach, w których prowadzone s±
-ró¿nego rodzaju kompilacje.
-
-%description -l tr
-byacc bir yacc ayrýþtýrýcýsýdýr. Pek çok program tarafýndan, kurulum süreci
-sýrasýnda kullanýlýr. Geliþtirme yapanlara gerekli olabilir.
+Bison is a general purpose parser generator which converts a grammar
+description for an LALR context-free grammar into a C program to parse
+that grammar. Bison can be used to develop a wide range of language
+parsers, from ones used in simple desk calculators to complex
+programming languages. Bison is upwardly compatible with Yacc, so any
+correctly written Yacc grammar should work with Bison without any
+changes. If you know Yacc, you shouldn't have any trouble using Bison
+(but you do need to be very proficient in C programming to be able to
+use Bison). Many programs use Bison as part of their build process.
+Bison is only needed on systems that are used for development.
+
+%description -l de.UTF-8
+Dies ist der GNU-Parser-Generator, der größtenteils mit yacc
+kompatibel ist. Viele Programme benutzen ihn als Teil des
+Aufbauvorgangs. Bison wird nur auf Systemen benötigt, die zur
+Entwicklung verwendet werden.
+
+%description -l es.UTF-8
+Este es el creador de análisis gramatical GNU más compatible con yacc.
+Varios programas lo utilizan como parte del su proceso de
+construcción. Bison solamente hace falta en sistemas que se usan para
+desarrollo.
+
+%description -l fr.UTF-8
+Générateur d'analyseur lexical de GNU compatible avec yacc. De
+nombreux programmes l'utilisent dans leur phase de construction. Bison
+ne sert que sur les systèmes utilisés pour le développement.
+
+%description -l pl.UTF-8
+W pakiecie znajduje się implementacja GNU generatora analizatora
+składni, który jest odpowiednikiem programu yacc. Wiele programów
+podczas kompilacji potrzebuje tego programu aby proces budowy plików
+binarnych przebiegał prawidłowo. Bison jest potrzebny tylko w
+systemach, w których prowadzone są różnego rodzaju kompilacje.
+
+%description -l pt_BR.UTF-8
+Este é o gerador de análise gramatical GNU que é mais compatível com
+yacc. Vários programas o utilizam como parte do seu processo de
+construção. Bison é somente necessário em sistemas que são usados para
+desenvolvimento.
+
+%description -l ru.UTF-8
+Bison - это парсер, в основном совместимый с yacc. Многие программы
+используют его в процессе компилляции. Bison нужен только в системах,
+которые используются для разработки программ.
+
+%description -l tr.UTF-8
+byacc bir yacc ayrıştırıcısıdır. Pek çok program tarafından, kurulum
+süreci sırasında kullanılır. Geliştirme yapanlara gerekli olabilir.
+
+%description -l uk.UTF-8
+Bison - це парсер, здебільшого сумісний з yacc. Багато програм
+використовують його в процесі компіляції. Bison потрібен тільки в
+системах, які використовуються для розробки програм.
+
+%package runtime
+Summary:       Runtime library for programs containing bison-generated parsers
+Summary(pl.UTF-8):     Biblioteka uruchomieniowa dla programów zawierajacych parsery bisonowe
+Group:         Libraries
+
+%description runtime
+Runtime library for internationalized programs containing
+bison-generated parsers.
+
+%description runtime -l pl.UTF-8
+Biblioteka uruchomieniowa dla umiędzynarodowionych programów
+zawierajacych parsery wygenerowane przez bisona.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+
+%{__rm} po/stamp-po
 
 %build
-./configure --prefix=/usr
-make "CFLAGS=$RPM_OPT_FLAGS" LDFLAGS="-s"
+cp -f /usr/share/automake/config.sub config
+%configure
+%{__make} \
+       pkgdatadir=%{pkgdatadir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/man/pl/man1
-
-make install prefix=$RPM_BUILD_ROOT/usr
+install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/man/pl/man1/bison.1
-gzip -n -9f $RPM_BUILD_ROOT/usr/{info/bison.info*,man/{man1/*,pl/man1/*}}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       pkgdatadir=%{pkgdatadir}
 
-%post
-/sbin/install-info /usr/info/bison.info.gz /etc/info-dir \
---section "Programming tools:" \
---entry \
-"* bison: (bison).                               The GNU parser generator."
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
 
-%preun
-if [ $1 = 0 ]; then
-       /sbin/install-info --delete /usr/info/bison.info.gz /etc/info-dir
-fi
+%find_lang %{name}
+%find_lang %{name}-runtime
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644, root, root, 755)
-%attr(755, root, root) /usr/bin/*
-%attr(644, root,  man) /usr/man/man1/*
-%lang(pl) %attr(644, root,  man) /usr/man/pl/man1/*
-/usr/share/*
-/usr/info/*info*
-
-%changelog
-* Sat Dec 12 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.25-7]
-- added gzipping man pages,
-- added pl man pages,
-- standarized {un}registering info pages.
-
-* Fri Nov  6 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.25-6]
-- fixed passing $RPM_OPT_FLAGS,
-- modified pl translation,
-- bisona.{simple,hairy} moved to /usr/share.
-
-* Sun Jun 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [1.25-5]
-- added pl translation,
-- macro %%{name}-%%{version} in Source,
-- minor modifications of spec file.
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
-- built for Manhattan
-- added build root
-
-* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
-- various spec file cleanups
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/bison
+# would conflict with byacc (but is not 100% compatible)
+#%attr(755,root,root) %{_bindir}/yacc
+%{pkgdatadir}
+%{_libdir}/liby.a
+%{_aclocaldir}/bison-i18n.m4
+%{_mandir}/man1/bison.1*
+%lang(pl) %{_mandir}/pl/man1/bison.1*
+%{_infodir}/bison.info*
+
+%files runtime -f %{name}-runtime.lang
+%defattr(644,root,root,755)
This page took 0.096815 seconds and 4 git commands to generate.