]> granicus.if.org Git - flex/commitdiff
add a spec file
authorWill Estes <wlestes@users.sourceforge.net>
Thu, 9 Jan 2003 15:43:00 +0000 (15:43 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Thu, 9 Jan 2003 15:43:00 +0000 (15:43 +0000)
Makefile.am
configure.in
flex.spec.in [new file with mode: 0644]

index fb6999f247837616ee0eacad74f7aa1f127d12ea..b7ebbc7cc64e05562ba15577f69570d68d74a919 100644 (file)
@@ -114,6 +114,8 @@ MAINTAINERCLEANFILES = \
 
 
 EXTRA_DIST = \
+       flex.spec.in \
+       flex.spec \
        .indent.pro \
        AUTHORS \
        COPYING \
index 448e51c05490357c3ed629e65b2fffab5f412a08..cd99666278da6b323c5bf20f1ca5ece41a1a86e4 100644 (file)
@@ -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 (file)
index 0000000..4317168
--- /dev/null
@@ -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