# # spec file for package flex (Version 2.5.35) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: flex BuildRequires: bison gcc-c++ help2man Url: http://flex.sourceforge.net/ License: BSD 3-Clause Group: Development/Languages/C and C++ Requires: m4 PreReq: %install_info_prereq AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: flex-64bit %endif # Version: 2.5.35 Release: 44 Summary: Fast Lexical Analyzer Generator Source: %{name}-%{version}.tar.bz2 Source1: lex-wrapper.sh Source2: README.SUSE Patch1: flex-2.5.34-fPIC.patch Patch2: flex-2.5.33-yylineno.patch Patch3: flex-2.5.34-doc-fix.diff Patch4: flex-2.5.34-g++44.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description FLEX is a tool for generating scanners: programs that recognize lexical patterns in text. Authors: -------- Vern Paxson Will Estes John Millaway %prep %setup -q %patch1 # Patch2 disabled for now, as the testsuite explicitly tests for yylineno in # all scanners. Let's see if the failing packages got fixed in the meantime. #patch2 %patch3 %patch4 cp %{S:2} . %build autoreconf -fi %configure make %{?jobs:-j%jobs} make check %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install %{S:1} $RPM_BUILD_ROOT/%{_bindir}/lex ln -s flex $RPM_BUILD_ROOT/%{_bindir}/flex++ ln -s flex.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/lex.1.gz %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root) /usr/bin/flex /usr/bin/flex++ /usr/bin/lex /usr/include/FlexLexer.h %{_libdir}/libfl.a %{_mandir}/man1/flex.1.gz %{_mandir}/man1/lex.1.gz %{_infodir}/flex* %doc README README.SUSE AUTHORS COPYING NEWS %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %changelog * Mon Jan 12 2009 rguenther@suse.de - Add patch to include in the C++ header section. Fixes the C++ parts of the testsuite with GCC 4.4. * Wed Dec 10 2008 olh@suse.de - use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade (bnc#437293) * Thu Oct 30 2008 olh@suse.de - obsolete old -XXbit packages (bnc#437293) * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support * Fri Feb 29 2008 mmarek@suse.cz - updated to 2.5.35 * includes previous fixes * translation updates * Tue Feb 19 2008 mmarek@suse.cz - updated with fixes from flex CVS to fix following bugs in 2.5.34: [#1849809], #1849805, #1628314, #1849812 (details at http://sourceforge.net/tracker/?group_id=97492&atid=618177 ) * Tue Jan 15 2008 mmarek@suse.cz - updated to 2.5.34 * introduce yylex_init_extra; see the manual for details * introduce %%option extra-type="your_type *" * The flex program now parses multiple short concatenated options Thanks to Petr Machata of Red Hat on this issue. * Expose YY_BUF_SIZE in the header file. * pattern language expanded; see the manual for details on the below highlights * pattern options added to specify patterns as case-insensitive or case-sensitive * pattern options to specify whether the "." character should match the newline character * pattern options added to allow ignoring of whitespace in patterns * POSIX character classes may be negated in patterns * patterns may now use set difference, union operators * the manual now contains an appendix listing various common patterns which may be useful when writing scanners * c++ scanners can now use yywrap * flex man page and flex manual in pdf now distributed in the flex distribution * bugfixes and translation updates * Mon Mar 26 2007 rguenther@suse.de - Add bison BuildRequires. * Wed May 17 2006 mmarek@suse.cz - update to 2.5.33 * bugfix release * obsoleted patches: - YY_DECL.patch - array-yymore.patch - double-free.patch - keep-macros.patch - overflow.patch * kept fPIC.patch, yylineno.patch and doc-fix.diff * Tue May 16 2006 agruen@suse.de - A minor fix in the documentation. * Thu Mar 09 2006 mmarek@suse.cz - keep YY_* macros in the generated C file (backport from 2.5.33) [#141964#c6] (keep-yytext_ptr.patch -> keep-macros.patch) * Wed Mar 08 2006 mmarek@suse.cz - removed unneeded part of last fix (C++ scanners weren't affected) [#151087] (overflow.patch) * Fri Feb 17 2006 mmarek@suse.cz - fix buffer overflow in some generated scanners [#151087] (overflow.patch) * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Dec 20 2005 mmj@suse.de - don't package /usr/share/info/dir * Thu Dec 15 2005 mmarek@suse.cz - added README.SUSE, packaged some %%doc files * Mon Dec 05 2005 mmarek@suse.cz - don't declare int yylineno in non-reentrant scanners without %%option yylineno -- programs declaring their own yylineno should build now (yylineno.patch) * Mon Nov 28 2005 mmarek@suse.cz - test-noansi-r didn't pass on 64bit, fix from CVS (YY_DECL.patch) * Tue Nov 22 2005 mmarek@suse.cz - update to version 2.5.31 once again... * Mon Nov 07 2005 mmarek@suse.cz - compile libfl.a with -fPIC * Sun Jan 11 2004 adrian@suse.de - add %%defattr * Mon Sep 15 2003 tcrhak@suse.cz - Use and std namespace in flex.skl [bug #30427] * Fri Aug 01 2003 coolo@suse.de - don't strip explicitly * Thu Apr 24 2003 ro@suse.de - fix install_info --delete call and move from preun to postun * Fri Feb 07 2003 ro@suse.de - added install_info macros * Tue Sep 17 2002 ro@suse.de - removed bogus self-provides * Sat Jul 27 2002 kukuk@suse.de - remove yacc from neededforbuild, bison is used * Wed Jun 26 2002 tcrhak@suse.cz - update to 2.5.4a (slight change in license only) - bzipped sources * Tue Jan 08 2002 schwab@suse.de - Use and std namespace in FlexLexer.h. * Tue Jul 31 2001 nadvornik@suse.cz - installed info pages [bug #9566] - added buildroot * Wed Apr 11 2001 nadvornik@suse.cz - declaration of isatty replaced with include * Mon Apr 02 2001 schwab@suse.de - Don't try to forward declare class istream, just include . * Tue Nov 21 2000 kukuk@suse.de - Use macros to support multilib plattforms * Tue Apr 04 2000 bk@suse.de - flex needs yacc for building on s390 * Fri Feb 25 2000 schwab@suse.de - Specfile cleanup, get rid of Makefile.Linux - /usr/man -> /usr/share/man - Add group tag - Fix lex script * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Feb 06 1997 rj@suse.de - new version 2.5.4