Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > ce6f98ed75fde6bab43b4fae2b570eb3 > files > 4

flex-2.5.4a-18mdk.src.rpm

Summary:	A tool for creating scanners (text pattern recognizers)
Name:		flex
Version:	2.5.4a
Release:	18mdk
License:	GPL
Group:		Development/Other
URL: 		http://www.gnu.org/software/flex/flex.htm
Source:		ftp.irisa.fr/pub/non-gnu/flex/flex-2.5.4a.tar.bz2
Patch0:		flex-2.5.4a-skel.patch.bz2
Patch1:         flex-2.5.4-glibc22.patch
BuildRequires:	byacc
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description 
The flex program generates scanners. Scanners are
programs which can recognize lexical patterns in text.

Flex takes pairs of regular expressions and C code as input and
generates a C source file as output. The output file is compiled and
linked with a library to produce an executable.

The executable searches through its input for occurrences of the
regular expressions. When a match is found, it executes the
corresponding C code.

Flex was designed to work with both Yacc and Bison, and is used by
many programs as part of their build process.

You should install flex if you are going to use your system for
application development.

%prep
rm -fr $RPM_BUILD_ROOT

%setup -q -n flex-2.5.4
%patch0 -p1
%patch1 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}

%make

%install

%makeinstall

cd $RPM_BUILD_ROOT%{_bindir}
ln -sf flex lex

cd $RPM_BUILD_ROOT%{_mandir}/
mkdir man1
mv flex.1 man1
cd man1
ln -s flex.1 lex.1
ln -s flex.1 flex++.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%doc COPYING NEWS README
%{_bindir}/*
%{_mandir}/man1/*
%{_libdir}/libfl.a
%{_includedir}/FlexLexer.h

%changelog
* Wed Jan  2 2002 Warly <warly@mandrakesoft.com> 2.5.4a-18mdk
- really apply the patch

* Tue Dec  4 2001 Warly <warly@mandrakesoft.com> 2.5.4a-17mdk
- Fix generation of broken code (conflicting isatty() prototype w/ glibc 2.2) (redhat fix)

* Sun Sep 09 2001 Stefan van der Eijk <stefan@eijk.nu> 2.5.4a-16mdk
- BuildRequires: byacc

* Wed Sep  5 2001 Warly <warly@mandrakesoft.com> 2.5.4a-15mdk
- fix some rpmlint errors

* Fri Apr 06 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.5.4a-14mdk
- Rebuild to fix an obscure problem I had building the kernel with aic7xxx
  enabled (donno why).

* Tue Sep 12 2000 David BAUDENS <baudens@mandrakesoft.com> 2.5.4a-13mdk
- Allow to build (aka don't use %%configure macro)
- Macrozification for other parts of spec

* Wed May 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.5.4a-12mdk
- Use %{ _tmppath}
- Really use spec-helper.

* Sun Apr 02 2000 Jerome Martin <jerome@mandrakesoft.com> 2.5.4a-11mdk
- Fix rpm group
- specfile cleanup for spec-helper

* Wed Nov 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- avoid uninitialized variable warning.

* Mon May 17 1999 Axalon Bloodstone <axalon@jumpstart.netpirate.org>
- incorrect symlinks

* Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 6)

* Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
- build for 6.0 tree

* Mon Aug 10 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
- updated from 2.5.4 to 2.5.4a

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc

* Thu Mar 20 1997 Michael Fulbright <msf@redhat.com>
- Updated to v. 2.5.4