summaryrefslogtreecommitdiff
path: root/packaging/flex.spec
blob: 3b0edfb7e495bf1be0d922b656d6b6f98c473cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%define keepstatic 1
Name:           flex
Version:        2.6.4
Release:        0
License:        BSD-3-Clause
Summary:        Fast Lexical Analyzer Generator
Url:            http://flex.sourceforge.net/
Group:          Development/Languages/C and C++
Source:         %{name}-%{version}.tar.bz2
Source1001: 	flex.manifest
BuildRequires:  automake
BuildRequires:  makeinfo
BuildRequires:  bison
BuildRequires:  gcc-c++
BuildRequires:  gettext-tools
Requires:       m4

%description
FLEX is a tool for generating scanners: programs that recognize lexical
patterns in text.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%reconfigure --disable-nls --disable-shared
%{__make} %{?_smp_mflags}

%check
%{__make} %{?_smp_mflags} check

%install
%make_install

%remove_docs
%files
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root)
%{_bindir}/flex
%{_bindir}/flex++
%{_includedir}/FlexLexer.h
%{_libdir}/libfl.a