From: Will Estes Date: Thu, 9 Jan 2003 15:43:00 +0000 (+0000) Subject: add a spec file X-Git-Tag: flex-2-5-26~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac159d0beb36537328bc3cc041731b1e35bf7737;p=flex add a spec file --- diff --git a/Makefile.am b/Makefile.am index fb6999f..b7ebbc7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -114,6 +114,8 @@ MAINTAINERCLEANFILES = \ EXTRA_DIST = \ + flex.spec.in \ + flex.spec \ .indent.pro \ AUTHORS \ COPYING \ diff --git a/configure.in b/configure.in index 448e51c..cd99666 100644 --- a/configure.in +++ b/configure.in @@ -76,6 +76,7 @@ dnl checks for functions AC_CHECK_DECLS(__func__) AC_CONFIG_FILES( +flex.spec Makefile examples/Makefile examples/fastwc/Makefile diff --git a/flex.spec.in b/flex.spec.in new file mode 100644 index 0000000..4317168 --- /dev/null +++ b/flex.spec.in @@ -0,0 +1,42 @@ +Summary: fast lexical analyzer generator +Name: flex +Version: @VERSION@ +Release: 0 +License: BSD style +Group: Development/Tools +Source: ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.gz +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version} + +%description +The flex program generates scanners. Scanners are programs which can +recognize lexical patterns in text. Flex takes pairs of regular +expressions and C code as input and generates a C source file as +output. The output file is compiled and linked with a library to +produce an executable. The executable searches through its input for +occurrences of the regular expressions. When a match is found, it +executes the corresponding C code. Flex was designed to work with +both Yacc and Bison, and is used by many programs as part of their +build process. + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc COPYING NEWS README +%{_bindir}/* +%{_mandir}/man1/* +%{_libdir}/* +%{_includedir}/FlexLexer.h