2007-02-02 13:40:47 +00:00
|
|
|
Summary: A tool for creating scanners (text pattern recognizers)
|
2004-09-09 04:46:06 +00:00
|
|
|
Name: flex
|
2007-01-24 16:15:21 +00:00
|
|
|
Version: 2.5.33
|
2007-05-11 15:49:39 +00:00
|
|
|
Release: 7%{?dist}
|
2004-09-09 04:46:35 +00:00
|
|
|
License: BSD
|
2004-09-09 04:46:06 +00:00
|
|
|
Group: Development/Tools
|
2007-01-24 16:15:21 +00:00
|
|
|
URL: http://flex.sourceforge.net/
|
2007-03-30 12:18:50 +00:00
|
|
|
Source: flex-%{version}.tar.bz2
|
2007-01-31 15:01:38 +00:00
|
|
|
Patch0: flex-2.5.33-pic.patch
|
2007-03-30 12:18:50 +00:00
|
|
|
Patch1: flex-2.5.33-yy.patch
|
2007-05-11 15:16:29 +00:00
|
|
|
Patch2: flex-2.5.33-opts.patch
|
2007-01-24 16:15:21 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-01-30 14:39:31 +00:00
|
|
|
Requires: m4
|
2007-01-24 17:22:38 +00:00
|
|
|
BuildRequires: gettext info bison m4
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
2004-09-09 04:46:06 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
You should install flex if you are going to use your system for
|
|
|
|
application development.
|
|
|
|
|
|
|
|
%prep
|
2007-01-24 17:22:38 +00:00
|
|
|
%setup -q
|
2007-01-31 15:01:38 +00:00
|
|
|
%patch0 -p1
|
2007-03-30 12:18:50 +00:00
|
|
|
%patch1 -p1
|
2007-05-11 15:16:29 +00:00
|
|
|
%patch2 -p1
|
2004-09-09 04:46:06 +00:00
|
|
|
|
|
|
|
%build
|
2007-01-24 16:15:21 +00:00
|
|
|
%configure --disable-dependency-tracking
|
2004-09-09 04:46:06 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-24 16:15:21 +00:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2007-01-24 17:22:38 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
2004-09-09 04:46:06 +00:00
|
|
|
|
|
|
|
( cd ${RPM_BUILD_ROOT}
|
2004-09-09 04:46:09 +00:00
|
|
|
ln -sf flex .%{_bindir}/lex
|
2007-01-24 16:15:21 +00:00
|
|
|
ln -sf flex .%{_bindir}/flex++
|
2004-09-09 04:46:06 +00:00
|
|
|
ln -s flex.1 .%{_mandir}/man1/lex.1
|
|
|
|
ln -s flex.1 .%{_mandir}/man1/flex++.1
|
2004-09-09 04:46:09 +00:00
|
|
|
ln -s libfl.a .%{_libdir}/libl.a
|
2004-09-09 04:46:06 +00:00
|
|
|
)
|
|
|
|
|
2007-01-24 16:15:21 +00:00
|
|
|
%find_lang flex
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||:
|
|
|
|
|
2007-01-24 17:22:38 +00:00
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
|
|
|
fi
|
2007-01-24 16:15:21 +00:00
|
|
|
|
2006-03-10 10:43:35 +00:00
|
|
|
%check
|
|
|
|
echo ============TESTING===============
|
2007-03-30 12:18:50 +00:00
|
|
|
make check
|
2006-03-10 10:43:35 +00:00
|
|
|
echo ============END TESTING===========
|
2005-04-10 12:14:37 +00:00
|
|
|
|
2004-09-09 04:46:06 +00:00
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
2007-02-02 13:40:47 +00:00
|
|
|
%files -f flex.lang
|
2004-09-09 04:46:06 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS README
|
2004-09-09 04:46:09 +00:00
|
|
|
%{_bindir}/*
|
2004-09-09 04:46:06 +00:00
|
|
|
%{_mandir}/man1/*
|
2004-09-09 04:47:26 +00:00
|
|
|
%{_libdir}/*.a
|
2004-09-09 04:46:09 +00:00
|
|
|
%{_includedir}/FlexLexer.h
|
2007-01-24 16:15:21 +00:00
|
|
|
%{_infodir}/flex.info*
|
2004-09-09 04:46:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-05-11 15:49:39 +00:00
|
|
|
* Fri May 11 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-7
|
2007-05-11 15:16:29 +00:00
|
|
|
- Allow joining short options into one commandline argument.
|
|
|
|
- Resolves: #239695
|
|
|
|
|
2007-03-30 12:18:50 +00:00
|
|
|
* Fri Mar 30 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-5
|
|
|
|
- Make yy-prefixed variables available to scanner even with -P.
|
|
|
|
|
2007-02-02 13:40:47 +00:00
|
|
|
* Fri Feb 2 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-4
|
|
|
|
- Use %%find_lang to package locale files.
|
|
|
|
|
2007-01-31 15:01:38 +00:00
|
|
|
* Wed Jan 31 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-3
|
|
|
|
- Compile with -fPIC.
|
|
|
|
|
2007-01-30 14:39:31 +00:00
|
|
|
* Tue Jan 30 2007 Petr Machata <pmachata@redaht.com> - 2.5.33-2
|
|
|
|
- Add Requires:m4.
|
|
|
|
|
2007-01-24 16:15:21 +00:00
|
|
|
* Fri Jan 19 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-1
|
|
|
|
- Rebase to 2.5.33
|
|
|
|
|
2006-07-18 21:11:42 +00:00
|
|
|
* Tue Jul 18 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-41
|
|
|
|
- Reverting posix patch. Imposing posix because of warning is too
|
|
|
|
much of a restriction.
|
|
|
|
|
2006-07-16 20:03:50 +00:00
|
|
|
* Sun Jul 16 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-40
|
|
|
|
- using dist tag
|
|
|
|
|
2006-07-14 13:37:18 +00:00
|
|
|
* Fri Jul 14 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-39
|
|
|
|
- fileno is defined in posix standard, so adding #define _POSIX_SOURCE
|
|
|
|
to compile without warnings (#195687)
|
|
|
|
- dropping 183098 test, since the original bug was already resolved
|
|
|
|
|
2006-07-12 05:49:10 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-38.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-03-10 10:45:12 +00:00
|
|
|
* Fri Mar 10 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-38
|
2006-03-10 10:43:35 +00:00
|
|
|
- Caught the real cause of #183098. It failed because the parser
|
|
|
|
built with `flex -f' *sometimes* made it into the final package, and
|
|
|
|
-f assumes seven-bit tables. Solution has two steps. Move `make
|
|
|
|
bigcheck' to `%%check' part, where it belongs anyway, so that flexes
|
|
|
|
built during `make bigcheck' don't overwrite original build. And
|
|
|
|
change makefile so that `make bigcheck' will *always* execute *all*
|
|
|
|
check commands.
|
|
|
|
|
2006-03-08 13:22:49 +00:00
|
|
|
* Wed Mar 8 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-37.4
|
2006-03-08 12:22:12 +00:00
|
|
|
- adding test for #183098 into build process
|
|
|
|
|
|
|
|
* Fri Mar 2 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-37.3
|
2006-03-02 15:37:50 +00:00
|
|
|
- rebuilt, no changes inside. In hunt for #183098
|
|
|
|
|
2006-02-11 02:44:48 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-37.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 11:40:40 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-37.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-02-02 18:16:10 +00:00
|
|
|
* Wed Feb 02 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-37
|
|
|
|
- adding `make bigcheck' into build process. Refreshing initscan.c to
|
|
|
|
make this possible.
|
|
|
|
|
2006-01-18 10:40:44 +00:00
|
|
|
* Wed Jan 18 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-36
|
|
|
|
- Applying Jonathan S. Shapiro's bugfix-fixing patch. More std:: fixes
|
|
|
|
and better way to silent warnings under gcc.
|
|
|
|
|
2006-01-13 16:18:07 +00:00
|
|
|
* Fri Jan 13 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-35
|
|
|
|
- Adding `std::' prefixes, got rid of `using namespace std'. (#115354)
|
|
|
|
- Dummy use of `yy_flex_realloc' to silent warnings. (#30943)
|
|
|
|
- Adding URL of flex home page to spec (#142675)
|
|
|
|
|
2005-12-18 20:24:33 +00:00
|
|
|
* Sun Dec 18 2005 Jason Vas Dias<jvdias@redhat.com>
|
2006-01-13 16:18:07 +00:00
|
|
|
- rebuild with 'flex-pic.patch' to enable -pie links
|
2005-12-18 20:38:47 +00:00
|
|
|
on x86_64 (patch from Jesse Keating) .
|
2005-12-18 20:24:33 +00:00
|
|
|
|
2005-12-09 22:40:26 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-04-10 12:14:37 +00:00
|
|
|
* Sun Apr 10 2005 Jakub Jelinek <jakub@redhat.com> 2.5.4a-34
|
|
|
|
- rebuilt with GCC 4
|
|
|
|
- add %%check script
|
|
|
|
|
2004-09-09 04:49:12 +00:00
|
|
|
* Tue Aug 24 2004 Warren Togami <wtogami@redhat.com> 2.5.4a-33
|
|
|
|
- #116407 BR byacc
|
|
|
|
|
2004-09-09 04:49:09 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 04:49:04 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 04:47:51 +00:00
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 04:47:26 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Jan 7 2003 Jeff Johnson <jbj@redhat.com> 2.5.4a-28
|
|
|
|
- don't include -debuginfo files in package.
|
|
|
|
|
|
|
|
* Mon Nov 4 2002 Than Ngo <than@redhat.com> 2.5.4a-27
|
|
|
|
- YY_NO_INPUT patch from Jean Marie
|
|
|
|
|
2004-09-09 04:47:02 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 04:46:59 +00:00
|
|
|
* Tue Jun 18 2002 Than Ngo <than@redhat.com> 2.5.4a-25
|
|
|
|
- don't forcibly strip binaries
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 04:46:43 +00:00
|
|
|
* Tue Apr 2 2002 Than Ngo <than@redhat.com> 2.5.4a-23
|
|
|
|
- More ISO C++ 98 fixes (#59670)
|
|
|
|
|
2004-09-09 04:46:35 +00:00
|
|
|
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 2.5.4a-22
|
|
|
|
- rebuild in new enviroment
|
|
|
|
|
|
|
|
* Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5.4a-21
|
|
|
|
- More ISO C++ 98 fixes (#59670)
|
|
|
|
|
|
|
|
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5.4a-20
|
|
|
|
- Fix ISO C++ 98 compliance (#59670)
|
|
|
|
|
|
|
|
* Wed Jan 23 2002 Than Ngo <than@redhat.com> 2.5.4a-19
|
|
|
|
- fixed #58643
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Tue Nov 6 2001 Than Ngo <than@redhat.com> 2.5.4a-17
|
|
|
|
- fixed for working with gcc 3 (bug #55778)
|
|
|
|
|
|
|
|
* Sat Oct 13 2001 Than Ngo <than@redhat.com> 2.5.4a-16
|
|
|
|
- fix wrong License (bug #54574)
|
|
|
|
|
2004-09-09 04:46:23 +00:00
|
|
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- Bump release + rebuild.
|
|
|
|
|
2004-09-09 04:46:09 +00:00
|
|
|
* Sat Sep 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Fix generation of broken code (conflicting isatty() prototype w/ glibc 2.2)
|
|
|
|
This broke, among other things, the kdelibs 2.0 build
|
|
|
|
- Fix source URL
|
|
|
|
|
|
|
|
* Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- FHS packaging (64bit systems need to use libdir).
|
|
|
|
|
2004-09-09 04:46:06 +00:00
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Tue Jun 6 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- rebuild, FHS stuff.
|
|
|
|
|
|
|
|
* Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- handle compressed man pages
|
|
|
|
|
|
|
|
* Fri Jan 28 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- add a libl.a link to libfl.a
|
|
|
|
|
|
|
|
* Wed Aug 25 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- avoid uninitialized variable warning (Erez Zadok).
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 6)
|
|
|
|
|
|
|
|
* Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
|
|
|
|
- build for 6.0 tree
|
|
|
|
|
|
|
|
* Mon Aug 10 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- build root
|
|
|
|
|
|
|
|
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- updated from 2.5.4 to 2.5.4a
|
|
|
|
|
|
|
|
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- built against glibc
|
|
|
|
|
|
|
|
* Thu Mar 20 1997 Michael Fulbright <msf@redhat.com>
|
|
|
|
- Updated to v. 2.5.4
|