Accepting request 72837 from devel:tools:compiler
- Update to version 2.5 - Fixes GCC 4.6 warnings - Changelist too long to fit here, see NEWS. (forwarded request 72835 from elvigia) OBS-URL: https://build.opensuse.org/request/show/72837 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bison?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
a922c0bb57
commit
1ac7c4f375
27
bison.spec
27
bison.spec
@@ -20,7 +20,7 @@
|
||||
|
||||
Name: bison
|
||||
BuildRequires: gcc-c++
|
||||
License: GPLv2+
|
||||
License: GPLv3+
|
||||
Group: Development/Languages/C and C++
|
||||
PreReq: %install_info_prereq
|
||||
AutoReqProv: on
|
||||
@@ -30,15 +30,12 @@ Obsoletes: bison-64bit
|
||||
%endif
|
||||
#
|
||||
Requires: m4
|
||||
Version: 2.4.1
|
||||
Version: 2.5
|
||||
Release: 1
|
||||
Summary: The GNU Parser Generator
|
||||
Url: http://www.gnu.org/software/bison/bison.html
|
||||
Source: bison-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Patch1: bison-2.3-subpipe.diff
|
||||
Patch2: bison-2.4.1-28169bab1f6f2fc
|
||||
Patch3: bison-2.4.1-7439c5c0f949408
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -46,29 +43,17 @@ Bison is a parser generator similar to yacc(1).
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
# CXXFLAGS is for c++ examples / test cases
|
||||
# these are not installed, but building them with $RPM_OPT_FLAGS could
|
||||
# catch possible problems in bison-generated C++ sources
|
||||
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--libdir=%{_libdir}
|
||||
%configure
|
||||
make %{_smp_mflags}
|
||||
|
||||
%check
|
||||
make %{_smp_mflags} check
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%find_lang %{name}
|
||||
# FIXME: this should probably go to separate subpackage (see PACKAGING)
|
||||
%find_lang %{name}-runtime
|
||||
cat %{name}-runtime.lang >>%{name}.lang
|
||||
%find_lang %{name} --all-name
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
Reference in New Issue
Block a user