Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bravoall1552:lincom2010.7.6
flex
flex.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File flex.spec of Package flex
# # spec file for package flex (version 2.5.35) # # Copyright (c) Lincom Software Team. All spec files # are released under the CC-BY-NC-ND, version 3 United States. # # Basic Information Name: flex Version: 2.5.35 Release: 5%{?dist} Summary: Tool for generating scanners or tokenizers. Group: Development/Tools License: GNU GPL URL: http://flex.sourceforge.net/ # Source Information Source0: http://prdownloads.sourceforge.net/flex/flex-%{version}.tar.bz2 Patch0: http://www.linuxfromscratch.org/patches/lfs/development/flex-2.5.35-gcc44-1.patch # Build Information BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 Requires(post): /sbin/install-info Requires(preun): /sbin/install-info Provides: flex-static %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 %setup -q %patch0 -p1 %build %configure --prefix=/usr make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} ln -sv libfl.a %{buildroot}%{_libdir}/libl.a cat > %{buildroot}%{_bindir}/lex << "EOF" #!/bin/sh # Begin /usr/bin/lex exec /usr/bin/flex -l "$@" # End /usr/bin/lex EOF chmod -v 755 %{buildroot}%{_bindir}/lex rm -f $RPM_BUILD_ROOT/%{_infodir}/dir %find_lang flex %clean rm -rf %{buildroot} %post if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs /sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||: fi %preun if [ $1 = 0 ]; then if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir ||: fi fi %files -f flex.lang %defattr(-,root,root) %doc COPYING NEWS README doc/flex.pdf %{_bindir}/* %{_mandir}/man1/* %{_includedir}/FlexLexer.h %{_infodir}/flex.info* %{_libdir}/*.a %changelog * Sun Jan 24 2010 Robert Xu <robxu9@gmail.com> 2.5.35-5 - Fedora Split flex; We kept it together. - Added gcc-44 patch * Sun Nov 14 2009 Robert Xu <robxu9@gmail.com> 2.5.35-1 - Created Initial Spec File.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor