SHA256
3
0
forked from pool/flex

Accepting request 513180 from devel:tools:compiler

1

OBS-URL: https://build.opensuse.org/request/show/513180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flex?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2017-08-24 15:38:23 +00:00 committed by Git OBS Bridge
commit d38debda68
3 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 31 12:12:19 UTC 2017 - schwab@suse.de
- use-extensions.patch: add AC_USE_SYSTEM_EXTENSIONS to get missing
declaration
-------------------------------------------------------------------
Mon Jul 3 10:08:31 UTC 2017 - mpluskal@suse.com

View File

@ -28,7 +28,12 @@ Source: https://github.com/westes/flex/releases/download/v%{version}/fle
Source1: lex-wrapper.sh
Source2: README.SUSE
Source3: baselibs.conf
Patch: use-extensions.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: libtool
BuildRequires: m4
Requires: libfl-devel = %{version}
Requires: m4
@ -63,8 +68,10 @@ This package contains libraries for using flex.
%prep
%setup -q
%patch -p1
%build
autoreconf -fi
%configure \
--docdir=%{_docdir}/%{name}
make %{?_smp_mflags}

12
use-extensions.patch Normal file
View File

@ -0,0 +1,12 @@
Index: flex-2.6.4/configure.ac
===================================================================
--- flex-2.6.4.orig/configure.ac
+++ flex-2.6.4/configure.ac
@@ -27,6 +27,7 @@
AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex])
AC_CONFIG_SRCDIR([src/scan.l])
AC_CONFIG_AUX_DIR([build-aux])
+AC_USE_SYSTEM_EXTENSIONS
LT_INIT
AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects])
AC_CONFIG_HEADER([src/config.h])