5 Summary: A tool for creating scanners (text pattern recognizers)
6 Url: http://flex.sourceforge.net/
7 Group: Development/Tools
8 Source: http://prdownloads.sourceforge.net/flex/flex-%{version}.tar.bz2
9 Source1001: flex.manifest
10 Patch0: flex-2.5.35-sign.patch
12 Patch1: flex-2.5.35-hardening.patch
13 Patch2: flex-2.5.35-gcc44.patch
19 The flex program generates scanners. Scanners are programs which can
20 recognize lexical patterns in text. Flex takes pairs of regular
21 expressions and C code as input and generates a C source file as
22 output. The output file is compiled and linked with a library to
23 produce an executable. The executable searches through its input for
24 occurrences of the regular expressions. When a match is found, it
25 executes the corresponding C code. Flex was designed to work with
26 both Yacc and Bison, and is used by many programs as part of their
29 You should install flex if you are going to use your system for
30 application development.
40 %configure --disable-dependency-tracking CFLAGS="-fPIC %{optflags}" --disable-nls
44 make install DESTDIR=%{buildroot}
45 rm -f %{buildroot}/%{_infodir}/*
48 ln -sf flex .%{_bindir}/lex
49 ln -sf flex .%{_bindir}/flex++
50 ln -s libfl.a .%{_libdir}/libl.a
56 %manifest flex.manifest
60 %{_includedir}/FlexLexer.h