]> git.pld-linux.org Git - packages/bison.git/commitdiff
- moved data to /usr/share/bison (too many files for /usr/share/misc)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 28 Jan 2003 21:59:28 +0000 (21:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added unused patch - "__attribute__((__unused__))" was harmful for g++
- release 3

Changed files:
    bison-unused.patch -> 1.1
    bison.spec -> 1.62

bison-unused.patch [new file with mode: 0644]
bison.spec

diff --git a/bison-unused.patch b/bison-unused.patch
new file mode 100644 (file)
index 0000000..ae4f0cf
--- /dev/null
@@ -0,0 +1,14 @@
+--- bison-1.875/data/yacc.c.orig       Sat Dec 28 09:36:02 2002
++++ bison-1.875/data/yacc.c    Tue Jan 28 20:57:50 2003
+@@ -1114,7 +1114,11 @@
+   /* Suppress GCC warning that yyerrlab1 is unused when no action
+      invokes YYERROR.  */
+ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
++  /* but it's harmful in C++ code 
++   * (gcc 3.2.1 complained about erroneous yylerrsp declaration) */
++#  ifndef __cplusplus
+   __attribute__ ((__unused__))
++#  endif
+ #endif
+ ]b4_location_if([  yylerrsp = yylsp;
index f7c2614b67e938964c2af4b7f2ba1c027822d435..c1e507048e7057622020a1c068092a1e119860d5 100644 (file)
@@ -9,16 +9,19 @@ Summary(tr):  GNU ayr
 Summary(uk):   Bison - ÇÅÎÅÒÁÔÏÒ ÐÁÒÓÅҦנGNU
 Name:          bison
 Version:       1.875
-Release:       2
+Release:       3
 License:       GPL
 Group:         Development/Tools
 Source0:       ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.bz2
 Source1:       %{name}.1.pl
 Patch0:                %{name}-info.patch
+Patch1:                %{name}-unused.patch
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     yacc
 
+%define                pkgdatadir      %{_datadir}/bison
+
 %description
 Bison is a general purpose parser generator which converts a grammar
 description for an LALR context-free grammar into a C program to parse
@@ -77,12 +80,13 @@ Bison - 
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
 %configure
 %{__make} \
-       pkgdatadir=%{_datadir}/misc
+       pkgdatadir=%{pkgdatadir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -90,7 +94,7 @@ install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       pkgdatadir=%{_datadir}/misc
+       pkgdatadir=%{pkgdatadir}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
 
@@ -108,7 +112,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/bison
-%{_datadir}/misc/*
+%{pkgdatadir}
 %{_libdir}/lib*.a
 %{_mandir}/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.153608 seconds and 4 git commands to generate.