]> git.ipfire.org Git - ipfire-3.x.git/blame - flex/flex.nm
kernel: Update to 5.2.11
[ipfire-3.x.git] / flex / flex.nm
CommitLineData
166a6c21 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
166a6c21
MT
4###############################################################################
5
802ea3af 6name = flex
678f9854
MT
7version = 2.6.4
8release = 1
166a6c21 9
802ea3af
MT
10groups = Development/Tools
11url = http://flex.sourceforge.net/
12license = BSD
13summary = A tool for creating scanners (text pattern recognizers).
166a6c21 14
802ea3af 15description
de97dc24
MT
16 The flex program generates scanners. Scanners are programs which can
17 recognize lexical patterns in text. Flex takes pairs of regular
18 expressions and C code as input and generates a C source file as
19 output. The output file is compiled and linked with a library to
20 produce an executable. The executable searches through its input for
21 occurrences of the regular expressions. When a match is found, it
22 executes the corresponding C code. Flex was designed to work with
23 both Yacc and Bison, and is used by many programs as part of their
166a6c21 24 build process.
802ea3af
MT
25end
26
678f9854 27source_dl = https://github.com/westes/flex/releases/download/v%{version}/
802ea3af
MT
28
29build
30 requires
678f9854
MT
31 autoconf
32 automake
802ea3af
MT
33 bison
34 gcc-c++
678f9854 35 help2man
802ea3af
MT
36 m4
37 end
38
db302599 39 keep_libraries = %{libdir}/libfl_pic.a
6ea90115 40
de97dc24
MT
41 test
42 make check
43 end
802ea3af
MT
44
45 install_cmds
46 echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex
de1c2204 47 echo "exec /usr/bin/flex -l \"\$@\"" >> %{BUILDROOT}/usr/bin/lex
802ea3af
MT
48 chmod 755 %{BUILDROOT}/usr/bin/lex
49 end
50end
51
52packages
53 package %{name}
54 requires = m4
55 end
1f9bc2f0 56
802ea3af
MT
57 package %{name}-devel
58 template DEVEL
59 end
1f9bc2f0
MT
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
802ea3af 64end