From b0f6cda2dae88a656cc89e369f513b07e74f2053 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 10:12:25 +0300 Subject: [PATCH] import re2c-3.1-3.el10 --- .gitignore | 2 +- .re2c.metadata | 2 +- SPECS/re2c.spec | 118 ++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 100 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index d7a1ec9..31f772a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/re2c-0.14.3.tar.gz +SOURCES/re2c-3.1.tar.xz diff --git a/.re2c.metadata b/.re2c.metadata index 50b78c0..98241ad 100644 --- a/.re2c.metadata +++ b/.re2c.metadata @@ -1 +1 @@ -d0394658ffcd6164de8cfb27e003bae5cd881af8 SOURCES/re2c-0.14.3.tar.gz +92911537397b9904ac6679e7c29277d0b71b0231 SOURCES/re2c-3.1.tar.xz diff --git a/SPECS/re2c.spec b/SPECS/re2c.spec index e7c6560..51a99ff 100644 --- a/SPECS/re2c.spec +++ b/SPECS/re2c.spec @@ -1,11 +1,15 @@ -Summary: Tool for generating C-based recognizers from regular expressions +Summary: Tool for generating C, C++, and go recognizers from regular expressions Name: re2c -Version: 0.14.3 -Release: 2%{?dist} +Version: 3.1 +Release: 3%{?dist} License: Public Domain -Group: Development/Tools -URL: http://re2c.org/ -Source: http://downloads.sf.net/re2c/re2c-%{version}.tar.gz +URL: https://re2c.org/ +Source: https://github.com/skvadrik/re2c/releases/download/%{version}/re2c-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: python3 %description re2c is a tool for writing very fast and very flexible scanners. Unlike any @@ -18,34 +22,108 @@ quality. %prep %setup -q -# Fix all those executable files, set executable only the ones that need to be -find . -type f -exec chmod -x {} \; -%{__chmod} +x configure depcomp install-sh missing %build -%configure -# Build re2c, then our own scanner.cc, then rebuild the final re2c with it -%{__make} %{?_smp_mflags} re2c -%{__rm} -f scanner.cc -./re2c -b -o scanner.cc scanner.re -%{__rm} -f re2c scanner.o -%{__make} %{?_smp_mflags} +%configure --disable-silent-rules +%make_build %install -%{__rm} -rf %{buildroot} -%{__install} -D -p -m 0755 re2c %{buildroot}%{_bindir}/re2c -%{__install} -D -p -m 0644 re2c.1 %{buildroot}%{_mandir}/man1/re2c.1 +%make_install + + +%check +make tests %files -%doc CHANGELOG README examples/ doc/* lessons/ +%license LICENSE +%doc CHANGELOG README.md examples/ doc/* %{_bindir}/re2c +%{_bindir}/re2go +%{_bindir}/re2rust +%{_datadir}/re2c/ %{_mandir}/man1/re2c.1* +%{_mandir}/man1/re2go.1* +%{_mandir}/man1/re2rust.1* %changelog +* Sat Jan 04 2025 Arkady L. Shane - 3.1-3 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 26 2024 Orion Poplawski - 3.1-1 +- Update to 3.1 + +* Mon Jan 22 2024 Fedora Release Engineering - 2.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 2.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jun 13 2021 Kyle Lexmond - 2.1.1-1 +- Update to 2.1.1 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Sep 9 21:15:59 MDT 2020 Orion Poplawski - 2.0.3-1 +- Update to 2.0.3 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Oct 7 2018 Orion Poplawski - 1.1.1-1 +- Update to 1.1.1 (bugz #1607177, 1606091) +- Run tests + +* Sat Jul 14 2018 Fedora Release Engineering - 0.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.16-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Apr 13 2016 Ben Boeckel - 0.16-1 +- update to 0.16 +- replace %%{__foo} usage + * Thu Feb 04 2016 Fedora Release Engineering - 0.14.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild