Accepting request 185697 from home:elvigia:branches:devel:tools:compiler

- run test suite 
- use --program-prefix instead of moving/renaming executables 
  around.

- byacc 20130304
* too many since 2010 to list here.. see 
http://invisible-island.net/byacc/CHANGES

OBS-URL: https://build.opensuse.org/request/show/185697
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=5
This commit is contained in:
Guido Berhoerster
2013-08-03 07:32:41 +00:00
committed by Git OBS Bridge
parent d1dac096af
commit c76707f999
3 changed files with 26 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package byacc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
@@ -17,13 +17,12 @@
#
Name: byacc
Version: 20100216
Release: 1
Version: 20130304
Release: 0
Summary: LALR(1) parser generator
License: SUSE-Public-Domain
Group: Development/Languages/C and C++
License: Public Domain
Url: http://invisible-island.net/byacc/byacc.html
Source: http://invisible-island.net/datafiles/release/byacc.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -35,23 +34,24 @@ the AT&T Yacc documentation. In contrast to bison, it is written to avoid
dependencies upon a particular compiler.
%prep
%setup
%setup -q
%build
# without --with-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure --with-warnings
%configure --with-warnings --program-prefix=b
make %{?_smp_mflags}
%install
%makeinstall
mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/byacc
mv %{buildroot}%{_mandir}/man1/yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
%check
make check
%files
%defattr(-,root,root,-)
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NO_WARRANTY NOTES README
%doc %{_mandir}/man1/byacc.1*
%{_mandir}/man1/byacc.1*
%{_bindir}/byacc
%changelog