source: vendor/flex/2.5.33/flex.spec@ 3031

Last change on this file since 3031 was 3031, checked in by bird, 18 years ago

flex 2.5.33.

File size: 1.3 KB
Line 
1Summary: fast lexical analyzer generator
2Name: flex
3Version: 2.5.33
4Release: 0
5License: BSD style
6Group: Development/Tools
7Source: ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.gz
8Prefix: %{_prefix}
9BuildRoot: %{_tmppath}/%{name}-%{version}
10Prereq: /sbin/install-info
11
12%description
13The flex program generates scanners. Scanners are programs which can
14recognize lexical patterns in text. Flex takes pairs of regular
15expressions and C code as input and generates a C source file as
16output. The output file is compiled and linked with a library to
17produce an executable. The executable searches through its input for
18occurrences of the regular expressions. When a match is found, it
19executes the corresponding C code. Flex was designed to work with
20both Yacc and Bison, and is used by many programs as part of their
21build process.
22
23%prep
24%setup -q -n %{name}-%{version}
25
26%build
27%configure
28make
29
30%install
31rm -rf $RPM_BUILD_ROOT
32%makeinstall
33rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
34
35%clean
36rm -rf ${RPM_BUILD_ROOT}
37
38%post
39/sbin/install-info %{_infodir}/flex.info.gz %{_infodir}/dir
40
41%postun
42if [ "$1" = 0 ]; then
43 /sbin/install-info --del %{_infodir}/flex.info.gz %{_infodir}/dir
44fi
45
46%files
47%defattr(-,root,root)
48%doc COPYING NEWS README
49%{_bindir}/*
50%{_mandir}/man1/*
51%{_libdir}/*
52%{_includedir}/FlexLexer.h
53%{_infodir}/flex.info*
54%{_datadir}/locale/*
Note: See TracBrowser for help on using the repository browser.