SHA256
1
0
forked from pool/flex
flex/flex.spec
Factory Maintainer 89a672bb76 Accepting request 138308 from home:coolo:branches:openSUSE:Factory
- update to 2.5.37
  ** Import flex into git. See
     git://flex.git.sourceforge.net/gitroot/flex/flex.
  ** Fix make install target to not fail when the flex++ program is
     already installed
  ** New translations from the translation project: de, fi, pl, vi
  ** various portability fixes that quiet compiler warnings on 64-bit
     hosts
  ** various manual fixes, including correcting the name of a %option and
     updating some simple examples to use ANSI C syntax
  ** various bug fixes that prevent certain error conditions from
     persisting when they should not persist
  ** improvements to the test suite so it behaves better when linking
     compiled files
  ** new translations from the translation project: ca, da, es, fi, fr,
     ga, ko, pt_br, ro, ru, sv, tr, zh_cn
  ** the flex distribution is now built with automake 1.10.1 and automake
     2.61
- add patch flex-2.5.37-notex.patch to compile without texlive
- remove patches no longer required:
   flex-2.5.33-yylineno.patch
   flex-2.5.34-doc-fix.diff
   flex-2.5.34-g++44.diff

OBS-URL: https://build.opensuse.org/request/show/138308
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/flex?expand=0&rev=12
2012-10-16 11:16:33 +00:00

95 lines
2.6 KiB
RPMSpec

#
# spec file for package flex
#
# Copyright (c) 2012 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/
#
Name: flex
BuildRequires: automake
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: makeinfo
Url: http://flex.sourceforge.net/
Requires: m4
PreReq: %install_info_prereq
# bug437293
%ifarch ppc64
Obsoletes: flex-64bit
%endif
#
Version: 2.5.37
Release: 0
Summary: Fast Lexical Analyzer Generator
License: BSD-3-Clause
Group: Development/Languages/C and C++
Source: http://prdownloads.sourceforge.net/flex/flex-%{version}.tar.bz2
Source1: lex-wrapper.sh
Source2: README.SUSE
Source3: baselibs.conf
Patch1: flex-2.5.34-fPIC.patch
# PATCH-FIX-OPENSUSE Remove tex dependency, info is enough for us, we don't need pdf - coolo@suse.de
Patch2: flex-2.5.37-notex.patch
# PATCH-FIX-UPSTREAM fix tests for new bison
Patch3: http://www.linuxfromscratch.org/patches/lfs/7.2/flex-2.5.37-bison-2.6.1-1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FLEX is a tool for generating scanners: programs that recognize lexical
patterns in text.
%prep
%setup -q
%patch1
%patch2 -p1
%patch3 -p1
%build
autoreconf -fi
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%check
%if !0%{?qemu_user_space_build:1}
make check
%endif
%install
make install DESTDIR=$RPM_BUILD_ROOT
install %{S:1} $RPM_BUILD_ROOT/%{_bindir}/lex
ln -s flex.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/lex.1.gz
cp %{S:2} $RPM_BUILD_ROOT/%{_docdir}/%{name}
%find_lang %{name}
%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*
%{_docdir}/%name
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog