]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - flex/flex.nm
elfutils: Correctly configure debuginfod
[people/pmueller/ipfire-3.x.git] / flex / flex.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = flex
7 version = 2.6.4
8 release = 1
9
10 groups = Development/Tools
11 url = http://flex.sourceforge.net/
12 license = BSD
13 summary = A tool for creating scanners (text pattern recognizers).
14
15 description
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
24 build process.
25 end
26
27 source_dl = https://github.com/westes/flex/releases/download/v%{version}/
28
29 build
30 requires
31 autoconf
32 automake
33 bison
34 gcc-c++
35 help2man
36 m4
37 end
38
39 keep_libraries = %{libdir}/libfl_pic.a
40
41 test
42 make check
43 end
44
45 install_cmds
46 echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex
47 echo "exec /usr/bin/flex -l \"\$@\"" >> %{BUILDROOT}/usr/bin/lex
48 chmod 755 %{BUILDROOT}/usr/bin/lex
49 end
50 end
51
52 packages
53 package %{name}
54 requires = m4
55 end
56
57 package %{name}-devel
58 template DEVEL
59 end
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
64 end