Blame SPECS/flex.spec

713cbc
Summary: A tool for creating scanners (text pattern recognizers)
713cbc
Name: flex
713cbc
Version: 2.5.37
713cbc
Release: 6%{?dist}
713cbc
# parse.c and parse.h are under GPLv3+ with exception which allows
713cbc
#	relicensing.  Since flex is shipped under BDS-style license,
713cbc
#	let's  assume that the relicensing was done.
713cbc
# gettext.h (copied from gnulib) is under LGPLv2+
713cbc
License: BSD and LGPLv2+
713cbc
Group: Development/Tools
713cbc
URL: http://flex.sourceforge.net/
713cbc
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
713cbc
713cbc
# https://sourceforge.net/tracker/?func=detail&aid=3546447&group_id=97492&atid=618177
713cbc
Patch0: flex-2.5.36-bison-2.6.1.patch
713cbc
Patch1: flex-rh1439367.patch
713cbc
Patch2: flex-rh1210022.patch
713cbc
713cbc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
713cbc
Requires: m4
713cbc
BuildRequires: gettext bison m4 gcc-c++
713cbc
Requires(post): /sbin/install-info
713cbc
Requires(preun): /sbin/install-info
713cbc
713cbc
%description
713cbc
The flex program generates scanners.  Scanners are programs which can
713cbc
recognize lexical patterns in text.  Flex takes pairs of regular
713cbc
expressions and C code as input and generates a C source file as
713cbc
output.  The output file is compiled and linked with a library to
713cbc
produce an executable.  The executable searches through its input for
713cbc
occurrences of the regular expressions.  When a match is found, it
713cbc
executes the corresponding C code.  Flex was designed to work with
713cbc
both Yacc and Bison, and is used by many programs as part of their
713cbc
build process.
713cbc
713cbc
You should install flex if you are going to use your system for
713cbc
application development.
713cbc
713cbc
# We keep the libraries in separate sub-package to allow for multilib
713cbc
# installations of flex.
713cbc
%package devel
713cbc
Summary: Libraries for flex scanner generator
713cbc
Group: Development/Tools
713cbc
Obsoletes: flex-static < 2.5.35-15
713cbc
Provides: flex-static
713cbc
713cbc
%description devel
713cbc
713cbc
This package contains the library with default implementations of
713cbc
`main' and `yywrap' functions that the client binary can choose to use
713cbc
instead of implementing their own.
713cbc
713cbc
%package doc
713cbc
Summary: Documentation for flex scanner generator
713cbc
Group: Documentation
713cbc
713cbc
%description doc
713cbc
713cbc
This package contains documentation for flex scanner generator in
713cbc
plain text and PDF formats.
713cbc
713cbc
%prep
713cbc
%setup -q
713cbc
%patch0 -p1
713cbc
%patch1 -p1
713cbc
%patch2 -p1
713cbc
713cbc
%global flexdocdir %{_datadir}/doc/flex-doc-%{version}
713cbc
713cbc
%build
713cbc
%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS"
713cbc
make %{?_smp_mflags}
713cbc
713cbc
%install
713cbc
rm -rf $RPM_BUILD_ROOT
713cbc
make DESTDIR=$RPM_BUILD_ROOT docdir=%{flexdocdir} install
713cbc
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
713cbc
rm -f $RPM_BUILD_ROOT/%{flexdocdir}/{README.cvs,TODO}
713cbc
713cbc
( cd ${RPM_BUILD_ROOT}
713cbc
  ln -sf flex .%{_bindir}/lex
713cbc
  ln -sf flex .%{_bindir}/flex++
713cbc
  ln -s flex.1 .%{_mandir}/man1/lex.1
713cbc
  ln -s flex.1 .%{_mandir}/man1/flex++.1
713cbc
  ln -s libfl.a .%{_libdir}/libl.a
713cbc
)
713cbc
713cbc
%find_lang flex
713cbc
713cbc
%post
713cbc
if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs
713cbc
   /sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||:
713cbc
fi
713cbc
713cbc
%preun
713cbc
if [ $1 = 0 ]; then
713cbc
    if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs
713cbc
	/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir ||:
713cbc
    fi
713cbc
fi
713cbc
713cbc
%check
713cbc
echo ============TESTING===============
713cbc
make check
713cbc
echo ============END TESTING===========
713cbc
713cbc
%clean
713cbc
rm -rf ${RPM_BUILD_ROOT}
713cbc
713cbc
%files -f flex.lang
713cbc
%defattr(-,root,root)
713cbc
%doc COPYING NEWS README
713cbc
%{_bindir}/*
713cbc
%{_mandir}/man1/*
713cbc
%{_includedir}/FlexLexer.h
713cbc
%{_infodir}/flex.info*
713cbc
713cbc
%files devel
713cbc
%defattr(-,root,root)
713cbc
%{_libdir}/*.a
713cbc
713cbc
%files doc
713cbc
%defattr(-,root,root)
713cbc
%{_datadir}/doc/flex-doc-%{version}
713cbc
713cbc
%changelog
713cbc
* Thu Jul 12 2018 Patsy Franklin <pfrankli@redhat.com> - 2.5.37-6
713cbc
- Build requires gcc-c++ for building from source. (#1600429)
713cbc
713cbc
* Wed May 23 2018 Arjun Shankar <arjun@redhat.com> - 2.5.37-5
713cbc
- Remove g++ signed/unsigned comparison warning in generated scanner (#1210022)
713cbc
713cbc
* Mon May 21 2018 Arjun Shankar <arjun@redhat.com> - 2.5.37-4
713cbc
- Fix testsuite build issues (#1439367)
713cbc
713cbc
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.5.37-3
713cbc
- Mass rebuild 2014-01-24
713cbc
713cbc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.5.37-2
713cbc
- Mass rebuild 2013-12-27
713cbc
713cbc
* Wed Mar 20 2013 Petr Machata <pmachata@redhat.com> - 2.5.37-1
713cbc
- Rebase to 2.5.37
713cbc
713cbc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.36-3
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
713cbc
713cbc
* Fri Oct 26 2012 Petr Machata <pmachata@redhat.com> - 2.5.36-2
713cbc
- Bump for rebuild
713cbc
713cbc
* Tue Jul 31 2012 Petr Machata <pmachata@redhat.com> - 2.5.36-1
713cbc
- Rebase to 2.5.36
713cbc
  - Drop flex-2.5.35-sign.patch, flex-2.5.35-hardening.patch,
713cbc
    flex-2.5.35-gcc44.patch, flex-2.5.35-missing-prototypes.patch
713cbc
  - Add flex-2.5.36-bison-2.6.1.patch
713cbc
  - Add a subpackage doc
713cbc
- Resolves #842073
713cbc
713cbc
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-16
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
713cbc
713cbc
* Mon Mar 12 2012 Petr Machata <pmachata@redhat.com> - 2.5.35-15
713cbc
- Rename flex-static to flex-devel so that it gets to repositories of
713cbc
  minor multi-lib arch (i386 on x86_64 etc.)
713cbc
- Resolves: #674301
713cbc
713cbc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-14
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
713cbc
713cbc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-13
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
713cbc
713cbc
* Tue Aug 17 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-12
713cbc
- Drop the dependency of core package on flex-static.
713cbc
- Resolves: #624549
713cbc
713cbc
* Wed Jul 14 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-11
713cbc
- Forgot that the changes in flex.skl won't propagate to skel.c
713cbc
- Resolves: #612465
713cbc
713cbc
* Tue Jul 13 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-10
713cbc
- Declare yyget_column and yyset_column in reentrant mode.
713cbc
- Resolves: #612465
713cbc
713cbc
* Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-9
713cbc
- Move libraries into a sub-package of their own.
713cbc
713cbc
* Tue Jan 12 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-8
713cbc
- Add source URL
713cbc
713cbc
* Mon Aug 24 2009 Petr Machata <pmachata@redhat.com> - 2.5.35-7
713cbc
- Fix installation with --excludedocs
713cbc
- Resolves: #515928
713cbc
713cbc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-6
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
713cbc
713cbc
* Mon Apr 20 2009 Debarshi Ray <rishi@fedoraproject.org> - 2.5.35-5
713cbc
- Resolves: #496548.
713cbc
713cbc
* Mon Apr 20 2009 Petr Machata <pmachata@redhat.com> - 2.5.35-4
713cbc
- Get rid of warning caused by ignoring return value of fwrite() in
713cbc
  ECHO macro.  Debian patch.
713cbc
- Resolves: #484961
713cbc
713cbc
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-3
713cbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
713cbc
713cbc
* Mon May 12 2008 Petr Machata <pmachata@redhat.com> - 2.5.35-2
713cbc
- Resolves: #445950
713cbc
713cbc
* Wed Feb 27 2008 Petr Machata <pmachata@redhat.com> - 2.5.35-1
713cbc
- Rebase to 2.5.35. Drop two patches.
713cbc
- Resolves: #434961
713cbc
- Resolves: #435047
713cbc
713cbc
* Mon Feb 25 2008 Petr Machata <pmachata@redhat.com> - 2.5.34-1
713cbc
- Rebase to 2.5.34. Drop five patches.
713cbc
- Resolves: #434676
713cbc
713cbc
* Mon Feb 11 2008 Petr Machata <pmachata@redhat.com> - 2.5.33-17
713cbc
- Generate prototypes for accessor functions.  Upstream patch.
713cbc
- Related: #432203
713cbc
713cbc
* Mon Feb  4 2008 Petr Machata <pmachata@redhat.com> - 2.5.33-16
713cbc
- Fix comparison between signed and unsigned in generated scanner.
713cbc
  Patch by Roland McGrath.
713cbc
- Resolves: #431151
713cbc
713cbc
* Tue Jan 15 2008 Stepan Kasal <skasal@redhat.com> - 2.5.33-15
713cbc
- Do not run autogen.sh, it undoes the effect of includedir patch.
713cbc
- Adapt test-linedir-r.patch so that it fixes Makefile.in and works
713cbc
  even though autogen.sh is not run.
713cbc
713cbc
* Thu Jan 10 2008 Stepan Kasal <skasal@redhat.com> - 2.5.33-14
713cbc
- Insert the "-fPIC" on configure command-line.
713cbc
- Drop the -fPIC patch.
713cbc
713cbc
* Tue Jan  8 2008 Petr Machata <pmachata@redhat.com> - 2.5.33-13
713cbc
- Patch with -fPIC only after the autogen.sh is run.
713cbc
713cbc
* Thu Jan  3 2008 Petr Machata <pmachata@redhat.com> - 2.5.33-12
713cbc
- Run autogen.sh before the rest of the build.
713cbc
- Add BR autoconf automake gettext-devel.
713cbc
713cbc
* Thu Aug 30 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-11
713cbc
- Add BR gawk
713cbc
- Fix use of awk in one of the tests
713cbc
713cbc
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.5.33-10
713cbc
- Rebuild for selinux ppc32 issue.
713cbc
713cbc
* Fri Jun 22 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-9
713cbc
- Remove wrong use of @includedir@ in Makefile.in.
713cbc
- Spec cleanups.
713cbc
- Related: #225758
713cbc
713cbc
* Fri Jun 22 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-8
713cbc
- Don't emit yy-prefixed variables in C++ mode.  Thanks Srinivas Aji.
713cbc
- Related: #242742
713cbc
- Related: #244259
713cbc
713cbc
* Fri May 11 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-7
713cbc
- Allow joining short options into one commandline argument.
713cbc
- Resolves: #239695
713cbc
713cbc
* Fri Mar 30 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-5
713cbc
- Make yy-prefixed variables available to scanner even with -P.
713cbc
713cbc
* Fri Feb  2 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-4
713cbc
- Use %%find_lang to package locale files.
713cbc
713cbc
* Wed Jan 31 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-3
713cbc
- Compile with -fPIC.
713cbc
713cbc
* Tue Jan 30 2007 Petr Machata <pmachata@redaht.com> - 2.5.33-2
713cbc
- Add Requires:m4.
713cbc
713cbc
* Fri Jan 19 2007 Petr Machata <pmachata@redhat.com> - 2.5.33-1
713cbc
- Rebase to 2.5.33
713cbc
713cbc
* Tue Jul 18 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-41
713cbc
- Reverting posix patch.  Imposing posix because of warning is too
713cbc
  much of a restriction.
713cbc
713cbc
* Sun Jul 16 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-40
713cbc
- using dist tag
713cbc
713cbc
* Fri Jul 14 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-39
713cbc
- fileno is defined in posix standard, so adding #define _POSIX_SOURCE
713cbc
  to compile without warnings (#195687)
713cbc
- dropping 183098 test, since the original bug was already resolved
713cbc
713cbc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-38.1
713cbc
- rebuild
713cbc
713cbc
* Fri Mar 10 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-38
713cbc
- Caught the real cause of #183098.  It failed because the parser
713cbc
  built with `flex -f' *sometimes* made it into the final package, and
713cbc
  -f assumes seven-bit tables.  Solution has two steps.  Move `make
713cbc
  bigcheck' to `%%check' part, where it belongs anyway, so that flexes
713cbc
  built during `make bigcheck' don't overwrite original build.  And
713cbc
  change makefile so that `make bigcheck' will *always* execute *all*
713cbc
  check commands.
713cbc
713cbc
* Wed Mar  8 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-37.4
713cbc
- adding test for #183098 into build process
713cbc
713cbc
* Fri Mar  3 2006 Petr Machata <pmachata@redhat.com> - 2.5.4a-37.3
713cbc
- rebuilt, no changes inside. In hunt for #183098
713cbc
713cbc
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-37.2
713cbc
- bump again for double-long bug on ppc(64)
713cbc
713cbc
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4a-37.1
713cbc
- rebuilt for new gcc4.1 snapshot and glibc changes
713cbc
713cbc
* Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-37
713cbc
- adding `make bigcheck' into build process.  Refreshing initscan.c to
713cbc
  make this possible.
713cbc
713cbc
* Wed Jan 18 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-36
713cbc
- Applying Jonathan S. Shapiro's bugfix-fixing patch. More std:: fixes
713cbc
  and better way to silent warnings under gcc.
713cbc
713cbc
* Fri Jan 13 2006 Petr Machata <pmachata@redhat.com> 2.5.4a-35
713cbc
- Adding `std::' prefixes, got rid of `using namespace std'. (#115354)
713cbc
- Dummy use of `yy_flex_realloc' to silent warnings. (#30943)
713cbc
- Adding URL of flex home page to spec (#142675)
713cbc
713cbc
* Sun Dec 18 2005 Jason Vas Dias<jvdias@redhat.com>
713cbc
- rebuild with 'flex-pic.patch' to enable -pie links
713cbc
  on x86_64 (patch from Jesse Keating) .
713cbc
713cbc
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Sun Apr 10 2005 Jakub Jelinek <jakub@redhat.com> 2.5.4a-34
713cbc
- rebuilt with GCC 4
713cbc
- add %%check script
713cbc
713cbc
* Tue Aug 24 2004 Warren Togami <wtogami@redhat.com> 2.5.4a-33
713cbc
- #116407 BR byacc
713cbc
713cbc
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
713cbc
- rebuilt
713cbc
713cbc
* Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 2.5.4a-28
713cbc
- don't include -debuginfo files in package.
713cbc
713cbc
* Mon Nov  4 2002 Than Ngo <than@redhat.com> 2.5.4a-27
713cbc
- YY_NO_INPUT patch from Jean Marie
713cbc
713cbc
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
713cbc
- automated rebuild
713cbc
713cbc
* Tue Jun 18 2002 Than Ngo <than@redhat.com> 2.5.4a-25
713cbc
- don't forcibly strip binaries
713cbc
713cbc
* Thu May 23 2002 Tim Powers <timp@redhat.com>
713cbc
- automated rebuild
713cbc
713cbc
* Tue Apr  2 2002 Than Ngo <than@redhat.com> 2.5.4a-23
713cbc
- More ISO C++ 98 fixes (#59670)
713cbc
713cbc
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 2.5.4a-22
713cbc
- rebuild in new enviroment
713cbc
713cbc
* Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5.4a-21
713cbc
- More ISO C++ 98 fixes (#59670)
713cbc
713cbc
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5.4a-20
713cbc
- Fix ISO C++ 98 compliance (#59670)
713cbc
713cbc
* Wed Jan 23 2002 Than Ngo <than@redhat.com> 2.5.4a-19
713cbc
- fixed #58643
713cbc
713cbc
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
713cbc
- automated rebuild
713cbc
713cbc
* Tue Nov  6 2001 Than Ngo <than@redhat.com> 2.5.4a-17
713cbc
- fixed for working with gcc 3 (bug #55778)
713cbc
713cbc
* Sat Oct 13 2001 Than Ngo <than@redhat.com> 2.5.4a-16
713cbc
- fix wrong License (bug #54574)
713cbc
713cbc
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
713cbc
- Bump release + rebuild.
713cbc
713cbc
* Sat Sep 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
713cbc
- Fix generation of broken code (conflicting isatty() prototype w/ glibc 2.2)
713cbc
  This broke, among other things, the kdelibs 2.0 build
713cbc
- Fix source URL
713cbc
713cbc
* Thu Sep  7 2000 Jeff Johnson <jbj@redhat.com>
713cbc
- FHS packaging (64bit systems need to use libdir).
713cbc
713cbc
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
713cbc
- automatic rebuild
713cbc
713cbc
* Tue Jun  6 2000 Bill Nottingham <notting@redhat.com>
713cbc
- rebuild, FHS stuff.
713cbc
713cbc
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
713cbc
- handle compressed man pages
713cbc
713cbc
* Fri Jan 28 2000 Bill Nottingham <notting@redhat.com>
713cbc
- add a libl.a link to libfl.a
713cbc
713cbc
* Wed Aug 25 1999 Jeff Johnson <jbj@redhat.com>
713cbc
- avoid uninitialized variable warning (Erez Zadok).
713cbc
713cbc
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
713cbc
- auto rebuild in the new build environment (release 6)
713cbc
713cbc
* Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
713cbc
- build for 6.0 tree
713cbc
713cbc
* Mon Aug 10 1998 Jeff Johnson <jbj@redhat.com>
713cbc
- build root
713cbc
713cbc
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
713cbc
- translations modified for de, fr, tr
713cbc
713cbc
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
713cbc
- updated from 2.5.4 to 2.5.4a
713cbc
713cbc
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
713cbc
- built against glibc
713cbc
713cbc
* Thu Mar 20 1997 Michael Fulbright <msf@redhat.com>
713cbc
- Updated to v. 2.5.4