# # spec file for package flex (Version 2.5.35) # # Copyright (c) 2010 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: BSD3c(or similar) 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: 46 Summary: Fast Lexical Analyzer Generator Source: %{name}-%{version}.tar.bz2 Source1: lex-wrapper.sh Source2: README.SUSE Source3: baselibs.conf 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 Patch5: flex-2.5.34-asneeded.patch 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 %patch5 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