SHA256
3
0
forked from pool/flex
flex/flex.spec

165 lines
4.7 KiB
RPMSpec

#
# spec file for package flex (Version 2.5.33)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: flex
BuildRequires: gcc-c++ help2man
URL: http://flex.sourceforge.net/
License: BSD, Other License(s), see package
Group: Development/Languages/C and C++
Requires: m4
PreReq: %install_info_prereq
Autoreqprov: on
Version: 2.5.33
Release: 2
Summary: Fast Lexical Analyzer Generator
Source: %{name}-%{version}.tar.bz2
Source1: lex-wrapper.sh
Source2: README.SUSE
Patch1: %{name}-%{version}-fPIC.patch
Patch6: %{name}-%{version}-yylineno.patch
Patch8: %{name}-%{version}-doc-fix.diff
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
%patch6
%patch8
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 -n flex
* 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 <iostream> 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 <iostream> 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<unistd.h>
* Mon Apr 02 2001 - schwab@suse.de
- Don't try to forward declare class istream, just include <iostream.h>.
* 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