2024-01-05 22:27:19 +01:00
|
|
|
Name: flex
|
2024-01-05 22:27:19 +01:00
|
|
|
Epoch: 1
|
2024-01-05 22:27:19 +01:00
|
|
|
Version: 2.6.4
|
2024-04-19 16:06:00 +02:00
|
|
|
Release: 6mamba
|
2024-01-05 22:27:19 +01:00
|
|
|
Summary: A tool for creating scanners (loxical pattern recognizers)
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-04-19 16:06:00 +02:00
|
|
|
URL: https://github.com/westes/flex
|
2024-01-05 22:27:19 +01:00
|
|
|
Source: https://github.com/westes/flex.git/v%{version}/flex-%{version}.tar.bz2
|
2024-01-05 22:27:19 +01:00
|
|
|
Patch1: flex-2.6.4-glibc-2.26.patch
|
2024-01-05 22:27:19 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 22:27:19 +01:00
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: texinfo
|
2024-01-05 22:27:19 +01:00
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: indent >= 2.2.9
|
|
|
|
BuildRequires: help2man >= 1.33.1
|
|
|
|
%endif
|
|
|
|
Requires(post):%{__install_info}
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n libfl
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Flex shared library
|
|
|
|
|
|
|
|
%description -n libfl
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n libfl-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: libfl = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libfl-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-05 22:27:20 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-04-19 16:06:00 +02:00
|
|
|
%patch 1 -p1
|
|
|
|
|
2024-01-05 22:27:20 +01:00
|
|
|
./autogen.sh
|
2024-01-05 22:27:19 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%if "%{_host}" != "%{_build}"
|
|
|
|
sed -i "/#define malloc rpl_malloc/d" config.h
|
|
|
|
sed -i "/#define realloc rpl_realloc/d" config.h
|
|
|
|
%endif
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
ln -s flex %{buildroot}/%{_bindir}/lex
|
2024-04-19 16:06:00 +02:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/info/dir
|
2024-01-05 22:27:19 +01:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info %{name}.info
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%uninstall_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/flex
|
|
|
|
%{_bindir}/flex++
|
|
|
|
%{_bindir}/lex
|
2024-04-19 16:06:00 +02:00
|
|
|
%{_datadir}/info/%{name}.info*
|
2024-01-05 22:27:19 +01:00
|
|
|
%{_datadir}/man/man1/*
|
|
|
|
|
|
|
|
%files -n libfl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfl.so.*
|
2024-04-19 16:06:00 +02:00
|
|
|
%doc COPYING
|
2024-01-05 22:27:19 +01:00
|
|
|
|
|
|
|
%files -n libfl-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/FlexLexer.h
|
|
|
|
%{_libdir}/libfl.a
|
|
|
|
%{_libdir}/libfl.so
|
|
|
|
%dir %{_datadir}/doc/flex
|
2024-01-05 22:27:19 +01:00
|
|
|
%{_datadir}/doc/flex/*
|
2024-01-05 22:27:19 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-04-19 16:06:00 +02:00
|
|
|
* Thu Apr 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-6mamba
|
|
|
|
- remove conflicting info dir file
|
|
|
|
|
|
|
|
* Wed Apr 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-5mamba
|
|
|
|
- URL updated (closes #1)
|
|
|
|
|
2024-01-05 22:27:20 +01:00
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-4mamba
|
|
|
|
- rebuilt with debug package
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Tue Nov 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-3mamba
|
|
|
|
- patched to fix segfault with glibc 2.26
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Wed Oct 18 2017 Davide Madrisan <davide.madrisan@gmail.com> 2.6.4-2mamba
|
|
|
|
- rebuild for removing the linker dependency to libc.so.6(GLIBC_2.26)
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Mon Oct 16 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-1mamba
|
|
|
|
- update to 2.6.4
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Sat Dec 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- downgrade to 2.6.1, 2.6.2 is too buggy, bump epoch
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Sat Oct 29 2016 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- update to 2.6.1
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Sat Dec 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.0-2mamba
|
|
|
|
- added upstream patch to fix a cxx-style comment in c code compiler warning
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Sat Nov 21 2015 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:27:19 +01:00
|
|
|
* Thu Mar 27 2014 Automatic Build System <autodist@mambasoft.it> 2.5.39-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Feb 15 2014 Automatic Build System <autodist@mambasoft.it> 2.5.38-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 04 2012 Automatic Build System <autodist@mambasoft.it> 2.5.37-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jul 22 2012 Automatic Build System <autodist@mambasoft.it> 2.5.36-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 27 2008 Aleph0 <aleph0@openmamba.org> 2.5.35-1mamba
|
|
|
|
- update to 2.5.35
|
|
|
|
|
|
|
|
* Mon Dec 17 2007 Aleph0 <aleph0@openmamba.org> 2.5.34-1mamba
|
|
|
|
- update to 2.5.34
|
|
|
|
|
|
|
|
* Wed Sep 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.33-1mamba
|
|
|
|
- update to 2.5.33
|
|
|
|
|
|
|
|
* Mon Mar 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.5.33-6qilnx
|
|
|
|
- security update for CVE-2006-0459 (qibug#139)
|
|
|
|
|
|
|
|
* Mon Nov 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.5.31-5qilnx
|
|
|
|
- added lex, symlink to flex
|
|
|
|
|
|
|
|
* Mon Sep 26 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.5.31-4qilnx
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Fri Nov 19 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.5.31-3qilnx
|
|
|
|
- fixed the error "`yytext_ptr' undeclared ..."
|
|
|
|
|
|
|
|
* Wed Mar 31 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.31-2qilnx
|
|
|
|
- added a patch that fixes some compatibility issues with 2.5.4a
|
|
|
|
|
|
|
|
* Thu Feb 12 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.5.31-1qilnx
|
|
|
|
- specfile updated
|
|
|
|
- rebuilt with flex 2.5.31
|
|
|
|
|
|
|
|
* Mon Apr 14 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 2.5.4a-1qilnx
|
|
|
|
- creation of flex package
|