FYI: Reply from HP-UX
[git/dscho.git] / flex-2.5.33 / flex.spec.in
blob026f0211e096058576724437084cbc70d6665cd2
1 Summary: fast lexical analyzer generator
2 Name: flex
3 Version: @VERSION@
4 Release: 0
5 License: BSD style
6 Group: Development/Tools
7 Source: ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.gz
8 Prefix: %{_prefix}
9 BuildRoot: %{_tmppath}/%{name}-%{version}
10 Prereq: /sbin/install-info
12 %description
13 The flex program generates scanners. Scanners are programs which can
14 recognize lexical patterns in text. Flex takes pairs of regular
15 expressions and C code as input and generates a C source file as
16 output. The output file is compiled and linked with a library to
17 produce an executable. The executable searches through its input for
18 occurrences of the regular expressions. When a match is found, it
19 executes the corresponding C code. Flex was designed to work with
20 both Yacc and Bison, and is used by many programs as part of their
21 build process.
23 %prep
24 %setup -q -n %{name}-%{version}
26 %build
27 %configure
28 make
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 %makeinstall
33 rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
35 %clean
36 rm -rf ${RPM_BUILD_ROOT}
38 %post
39 /sbin/install-info %{_infodir}/flex.info.gz %{_infodir}/dir
41 %postun
42 if [ "$1" = 0 ]; then
43 /sbin/install-info --del %{_infodir}/flex.info.gz %{_infodir}/dir
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/*