############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = flex version = 2.5.37 release = 1 groups = Development/Tools url = http://flex.sourceforge.net/ license = BSD summary = A tool for creating scanners (text pattern recognizers). description The flex program generates scanners. Scanners are programs which can recognize lexical patterns in text. Flex takes pairs of regular expressions and C code as input and generates a C source file as output. The output file is compiled and linked with a library to produce an executable. The executable searches through its input for occurrences of the regular expressions. When a match is found, it executes the corresponding C code. Flex was designed to work with both Yacc and Bison, and is used by many programs as part of their build process. end source_dl = http://prdownloads.sourceforge.net/flex/ build requires bison gcc-c++ m4 end keep_libraries = %{libdir}/libfl_pic.a test make check end install_cmds echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex echo "exec /usr/bin/flex -l \"$$@\"" >> %{BUILDROOT}/usr/bin/lex chmod 755 %{BUILDROOT}/usr/bin/lex end end packages package %{name} requires = m4 end package %{name}-devel template DEVEL end package %{name}-debuginfo template DEBUGINFO end end