]> git.pld-linux.org Git - packages/bison.git/blobdiff - bison.spec
- touch all files, to avoid running missing --autoheader by make
[packages/bison.git] / bison.spec
index a08e51bec2d183281dae62eb0039620c9d264aee..6e49d6f16774cd6f064ccf6ef6c8d7bb44f7d81d 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):   GNU-Parser-Generator
+Summary(es):   Generador de parser de la GNU
+Summary(fr):   Générateur d'analyseur lexical de GNU
+Summary(pl):   GNU generator sk³adni 
+Summary(pt_BR):        Gerador de parser da GNU
+Summary(tr):   GNU ayrýþtýrýcý üreticisi
+Name:          bison
+Version:       1.33
+Release:       2
+License:       GPL
+Group:         Development/Tools
+Group(de):     Entwicklung/Werkzeuge
+Group(es):     Desarrollo/Herramientas
+Group(fr):     Development/Outils
+Group(pl):     Programowanie/Narzêdzia
+Group(pt):     Desenvolvimento/Ferramentas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/éÎÓÔÒÕÍÅÎÔÙ
+Source0:       ftp://prep.ai.mit.edu/pub/gnu/%{name}/%{name}-%{version}.tar.bz2
+Source1:       %{name}.1.pl
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-man.patch
+BuildRequires: autoconf
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     yacc
 
 %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.
+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
-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.
+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
+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
-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.
+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.
+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
+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 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.
+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.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-./configure --prefix=/usr
-make "CFLAGS=$RPM_OPT_FLAGS" LDFLAGS="-s"
+# needs at least autoconf 2.52g
+#aclocal
+#autoconf
+find | xargs touch
+%configure
+%{__make} \
+       pkgdatadir=%{_datadir}/misc
 
 %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=%{_datadir}/misc
 
-%pre
-if [ $1 = 1 ]; then
-        /sbin/install-info --delete /usr/info/bison.info.gz \
-       --info-dir /etc/info-dir
-fi
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
 
-%post
-/sbin/install-info /usr/info/bison.info.gz --info-dir /etc/info-dir \
---section "Programming tools:" \
---entry \
-"* bison: (bison).                               The GNU parser generator."
-
-%preun
-/sbin/install-info --delete /usr/info/bison.info.gz --info-dir /etc/info-dir
+%find_lang %{name}
 
 %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
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
+%{_infodir}/*info*
+%{_datadir}/misc/*
This page took 0.142787 seconds and 4 git commands to generate.