2006-12-19 00:15:58 +01:00
|
|
|
#
|
2008-03-07 20:24:41 +01:00
|
|
|
# spec file for package flex (Version 2.5.35)
|
2006-12-19 00:15:58 +01:00
|
|
|
#
|
2008-03-07 20:24:41 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:58 +01:00
|
|
|
#
|
2008-11-02 15:40:21 +01:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:15:58 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-07 20:24:41 +01:00
|
|
|
|
2006-12-19 00:15:58 +01:00
|
|
|
Name: flex
|
2007-03-29 00:32:14 +02:00
|
|
|
BuildRequires: bison gcc-c++ help2man
|
2008-03-07 20:24:41 +01:00
|
|
|
Url: http://flex.sourceforge.net/
|
|
|
|
License: BSD 3-Clause
|
2006-12-19 00:15:58 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: m4
|
|
|
|
PreReq: %install_info_prereq
|
2008-03-07 20:24:41 +01:00
|
|
|
AutoReqProv: on
|
2008-11-02 15:40:21 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: flex-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-03-07 20:24:41 +01:00
|
|
|
Version: 2.5.35
|
2008-12-15 12:30:04 +01:00
|
|
|
Release: 43
|
2006-12-19 00:15:58 +01:00
|
|
|
Summary: Fast Lexical Analyzer Generator
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: lex-wrapper.sh
|
|
|
|
Source2: README.SUSE
|
2008-03-07 20:24:41 +01:00
|
|
|
Patch1: flex-2.5.34-fPIC.patch
|
|
|
|
Patch2: flex-2.5.33-yylineno.patch
|
|
|
|
Patch3: flex-2.5.34-doc-fix.diff
|
2006-12-19 00:15:58 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
FLEX is a tool for generating scanners: programs that recognize lexical
|
|
|
|
patterns in text.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Vern Paxson <vern@ee.lbl.gov>
|
|
|
|
Will Estes <wlestes@uncg.edu>
|
|
|
|
John Millaway <millaway@acm.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
2008-03-07 20:24:41 +01:00
|
|
|
# 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
|
2006-12-19 00:15:58 +01:00
|
|
|
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
|
|
|
|
|
2007-03-29 00:32:14 +02:00
|
|
|
%changelog
|
2008-12-15 12:30:04 +01:00
|
|
|
* Wed Dec 10 2008 olh@suse.de
|
|
|
|
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
|
|
|
|
(bnc#437293)
|
2008-11-02 15:40:21 +01:00
|
|
|
* Thu Oct 30 2008 olh@suse.de
|
|
|
|
- obsolete old -XXbit packages (bnc#437293)
|
2008-04-10 14:13:09 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
2008-03-07 20:24:41 +01:00
|
|
|
* 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
|
2007-03-29 00:32:14 +02:00
|
|
|
- Add bison BuildRequires.
|
2008-03-07 20:24:41 +01:00
|
|
|
* Wed May 17 2006 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- update to 2.5.33
|
|
|
|
* bugfix release
|
|
|
|
* obsoleted patches:
|
2007-03-29 00:32:14 +02:00
|
|
|
- YY_DECL.patch
|
|
|
|
- array-yymore.patch
|
|
|
|
- double-free.patch
|
|
|
|
- keep-macros.patch
|
|
|
|
- overflow.patch
|
2006-12-19 00:15:58 +01:00
|
|
|
* kept fPIC.patch, yylineno.patch and doc-fix.diff
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue May 16 2006 agruen@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- A minor fix in the documentation.
|
2008-03-07 20:24:41 +01:00
|
|
|
* Thu Mar 09 2006 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- keep YY_* macros in the generated C file (backport from 2.5.33)
|
|
|
|
[#141964#c6] (keep-yytext_ptr.patch -> keep-macros.patch)
|
2008-03-07 20:24:41 +01:00
|
|
|
* Wed Mar 08 2006 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- removed unneeded part of last fix (C++ scanners weren't affected)
|
|
|
|
[#151087] (overflow.patch)
|
2008-03-07 20:24:41 +01:00
|
|
|
* Fri Feb 17 2006 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- fix buffer overflow in some generated scanners
|
|
|
|
[#151087] (overflow.patch)
|
2008-03-07 20:24:41 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Dec 20 2005 mmj@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- don't package /usr/share/info/dir
|
2008-03-07 20:24:41 +01:00
|
|
|
* Thu Dec 15 2005 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- added README.SUSE, packaged some %%doc files
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Dec 05 2005 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- don't declare int yylineno in non-reentrant scanners without
|
|
|
|
%%option yylineno -- programs declaring their own yylineno should
|
|
|
|
build now
|
|
|
|
(yylineno.patch)
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Nov 28 2005 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- test-noansi-r didn't pass on 64bit, fix from CVS
|
|
|
|
(YY_DECL.patch)
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Nov 22 2005 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- update to version 2.5.31 once again...
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Nov 07 2005 mmarek@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- compile libfl.a with -fPIC
|
2008-03-07 20:24:41 +01:00
|
|
|
* Sun Jan 11 2004 adrian@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- add %%defattr
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Sep 15 2003 tcrhak@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- Use <iostream> and std namespace in flex.skl [bug #30427]
|
2008-03-07 20:24:41 +01:00
|
|
|
* Fri Aug 01 2003 coolo@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- don't strip explicitly
|
2008-03-07 20:24:41 +01:00
|
|
|
* Thu Apr 24 2003 ro@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- fix install_info --delete call and move from preun to postun
|
2008-03-07 20:24:41 +01:00
|
|
|
* Fri Feb 07 2003 ro@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- added install_info macros
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- removed bogus self-provides
|
2008-11-02 15:40:21 +01:00
|
|
|
* Sat Jul 27 2002 kukuk@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- remove yacc from neededforbuild, bison is used
|
2008-03-07 20:24:41 +01:00
|
|
|
* Wed Jun 26 2002 tcrhak@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- update to 2.5.4a (slight change in license only)
|
|
|
|
- bzipped sources
|
2008-11-02 15:40:21 +01:00
|
|
|
* Tue Jan 08 2002 schwab@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- Use <iostream> and std namespace in FlexLexer.h.
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Jul 31 2001 nadvornik@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- installed info pages [bug #9566]
|
|
|
|
- added buildroot
|
2008-03-07 20:24:41 +01:00
|
|
|
* Wed Apr 11 2001 nadvornik@suse.cz
|
2006-12-19 00:15:58 +01:00
|
|
|
- declaration of isatty replaced with include<unistd.h>
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Apr 02 2001 schwab@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- Don't try to forward declare class istream, just include <iostream.h>.
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Nov 21 2000 kukuk@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- Use macros to support multilib plattforms
|
2008-03-07 20:24:41 +01:00
|
|
|
* Tue Apr 04 2000 bk@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- flex needs yacc for building on s390
|
2008-03-07 20:24:41 +01:00
|
|
|
* Fri Feb 25 2000 schwab@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- Specfile cleanup, get rid of Makefile.Linux
|
|
|
|
- /usr/man -> /usr/share/man
|
|
|
|
- Add group tag
|
|
|
|
- Fix lex script
|
2008-03-07 20:24:41 +01:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-03-07 20:24:41 +01:00
|
|
|
* Thu Feb 06 1997 rj@suse.de
|
2006-12-19 00:15:58 +01:00
|
|
|
- new version 2.5.4
|