2019-09-30 10:38:56 -04:00
|
|
|
Name: flex
|
2020-08-03 20:05:17 +08:00
|
|
|
Version: 2.6.4
|
2024-08-10 17:04:46 +08:00
|
|
|
Release: 8
|
2019-09-30 10:38:56 -04:00
|
|
|
Summary: A fast lexical analyzer generator
|
2024-08-10 17:04:46 +08:00
|
|
|
License: BSD-3-Clause-flex AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH Texinfo-exception AND FSFAP AND FSFUL AND FSFULLR AND FSFULLRWD AND GPL-2.0-or-later AND X11
|
2019-09-30 10:38:56 -04:00
|
|
|
URL: https://github.com/westes/flex
|
2020-08-03 20:05:17 +08:00
|
|
|
Source0: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0000: build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch
|
|
|
|
|
Patch0001: filter-memory-leak-free-scanner-postprocessing.patch
|
|
|
|
|
Patch0002: scanner-c-i-j-should-preserve-case.patch
|
|
|
|
|
Patch0003: filter-Output-correct-line-value-for-current-file.patch
|
|
|
|
|
Patch0004: scanner-memory-leak-free-scanner-generator.patch
|
|
|
|
|
Patch0005: scanner-Ignore-comment-lines-in-skeleton-files.patch
|
|
|
|
|
Patch0006: mkskel.sh-fix-EOL-issue-for-CRLF-systems.patch
|
|
|
|
|
Patch0007: scanner-temporarily-protect-against-ccl-overflow-ove.patch
|
|
|
|
|
Patch0008: scanner-prevent-overflow-in-add_action.patch
|
|
|
|
|
Patch0009: 0001-scanner-fix-default-of-yy_top_state.patch
|
|
|
|
|
Patch0010: 0002-scanner-fix-default-of-yy_top_state.patch
|
2024-07-30 16:47:04 +08:00
|
|
|
Patch0011: 0003-backport-Fix-pattern-documentation-for-case-insensitive-ranges.patch
|
2024-08-09 16:52:16 +08:00
|
|
|
Patch0012: 0004-backport-fix-typo.patch
|
2020-08-03 20:05:17 +08:00
|
|
|
|
2022-07-12 17:33:02 +08:00
|
|
|
BuildRequires: gcc gcc-c++ gettext help2man m4 bison texinfo automake autoconf
|
2019-09-30 10:38:56 -04:00
|
|
|
Requires: m4
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Flex is a tool for generating scanners: programs which recognize lexical
|
|
|
|
|
patterns in text.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries for flex scanner generator
|
|
|
|
|
Obsoletes: flex-static < 2.5.35-15
|
|
|
|
|
Provides: flex-static
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the library with default implementations of
|
|
|
|
|
`main' and `yywrap' functions that the client binary can choose to use
|
|
|
|
|
instead of implementing their own.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Documents for %{name}
|
|
|
|
|
Buildarch: noarch
|
|
|
|
|
Requires: man info
|
|
|
|
|
Provides: flex-doc
|
|
|
|
|
Obsoletes: flex-doc
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Man pages and other related documents for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-08-03 20:05:17 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 10:38:56 -04:00
|
|
|
|
|
|
|
|
%build
|
2020-08-03 20:05:17 +08:00
|
|
|
autoreconf
|
2019-09-30 10:38:56 -04:00
|
|
|
%configure
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2024-08-10 17:04:46 +08:00
|
|
|
%delete_la
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
|
rm -f %{buildroot}%{_docdir}/%{name}/{AUTHORS,COPYING,ONEWS,NEWS,README.md}
|
2019-09-30 10:38:56 -04:00
|
|
|
find %{buildroot} \( -name '*.la' -or -name '*.so' \) -delete
|
|
|
|
|
find %{buildroot} \( -name '*.so.2' -or -name '*.so.2.0.0' \) -delete
|
|
|
|
|
|
2024-08-10 17:04:46 +08:00
|
|
|
pushd ${RPM_BUILD_ROOT}
|
2019-09-30 10:38:56 -04:00
|
|
|
ln -sf flex .%{_bindir}/lex
|
|
|
|
|
ln -sf flex .%{_bindir}/flex++
|
|
|
|
|
ln -s flex.1 .%{_mandir}/man1/lex.1
|
|
|
|
|
ln -s flex.1 .%{_mandir}/man1/flex++.1
|
|
|
|
|
ln -s libfl.a .%{_libdir}/libl.a
|
2024-08-10 17:04:46 +08:00
|
|
|
popd
|
2019-09-30 10:38:56 -04:00
|
|
|
|
2022-07-12 17:33:02 +08:00
|
|
|
%check
|
2024-08-10 17:04:46 +08:00
|
|
|
%make_build check
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2019-09-30 10:38:56 -04:00
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_includedir}/FlexLexer.h
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%files help
|
2024-08-10 17:04:46 +08:00
|
|
|
%doc AUTHORS ONEWS NEWS README.md
|
2019-09-30 10:38:56 -04:00
|
|
|
%{_mandir}/man1/*
|
2024-08-10 17:04:46 +08:00
|
|
|
%{_infodir}/flex.info*
|
2019-09-30 10:38:56 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2024-08-10 17:04:46 +08:00
|
|
|
* Sat Aug 10 2024 Funda Wang <fundawang@yeah.net> - 2.6.4-8
|
|
|
|
|
- cleanup spec
|
|
|
|
|
|
2024-08-09 16:52:16 +08:00
|
|
|
* Fri Aug 9 2024 guojunding <guojunding@kylinos.cn> - 2.6.4-7
|
|
|
|
|
- Fix typo
|
|
|
|
|
|
2024-07-30 16:47:04 +08:00
|
|
|
* Tue Jul 30 2024 guojunding <guojunding@kylinos.cn> - 2.6.4-6
|
|
|
|
|
- Fix pattern documentation for case-insensitive ranges
|
|
|
|
|
|
2022-07-12 17:33:02 +08:00
|
|
|
* Tue Jul 12 2022 panxiaohe <panxh.life@foxmail.com> - 2.6.4-5
|
|
|
|
|
- enable check test suite
|
|
|
|
|
- delete duplicate package files: NEWS,README.md
|
|
|
|
|
|
2022-06-13 16:57:38 +08:00
|
|
|
* Mon Jun 13 2022 panxiaohe <panxh.life@foxmail.com> - 2.6.4-4
|
|
|
|
|
- modify license
|
|
|
|
|
|
2021-05-28 11:22:42 +08:00
|
|
|
* Fri May 28 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 2.6.4-3
|
|
|
|
|
- The autoreconf command is used during compilation.
|
|
|
|
|
Therefore,the automake and autoconf compilation dependencies need to added.
|
|
|
|
|
|
2020-08-03 20:05:17 +08:00
|
|
|
* Sun Jun 28 2020 openEuler liuchengaung<liuchenguang4@huawei.com> - 2.6.4-2
|
|
|
|
|
- quality enhancement synchronization github patch
|
|
|
|
|
|
|
|
|
|
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.4-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 2.6.4
|
|
|
|
|
|
2020-01-12 17:51:59 +08:00
|
|
|
* Tue Jan 7 2020 chengquan<chengquan3@huawei.com> - 2.6.1-13
|
2020-01-07 16:11:08 +08:00
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove useless patches
|
|
|
|
|
|
2019-09-30 10:38:56 -04:00
|
|
|
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 2.6.1-12
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add help package
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6.1-11
|
|
|
|
|
- Package init
|
|
|
|
|
|