diff --git a/.gitignore b/.gitignore index d7a1ec9..8713dcd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/re2c-0.14.3.tar.gz +SOURCES/re2c-2.2.tar.xz diff --git a/.re2c.metadata b/.re2c.metadata index 50b78c0..cb78367 100644 --- a/.re2c.metadata +++ b/.re2c.metadata @@ -1 +1 @@ -d0394658ffcd6164de8cfb27e003bae5cd881af8 SOURCES/re2c-0.14.3.tar.gz +93ac87e82c02bc9136f74050767acaa890f3ae88 SOURCES/re2c-2.2.tar.xz diff --git a/SPECS/re2c.spec b/SPECS/re2c.spec index e7c6560..6bc117a 100644 --- a/SPECS/re2c.spec +++ b/SPECS/re2c.spec @@ -1,11 +1,16 @@ -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: 2.2 +Release: 1%{?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 +# For tests +BuildRequires: python3 %description re2c is a tool for writing very fast and very flexible scanners. Unlike any @@ -18,34 +23,85 @@ 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 +%{_datadir}/re2c/ %{_mandir}/man1/re2c.1* +%{_mandir}/man1/re2go.1* %changelog +* Mon Nov 18 2024 Arkady L. Shane - 2.2-1 +- Rebuilt for MSVSphere 9.5 + +* Wed Dec 22 2021 Orion Poplawski - 2.2-1 +- Update to 2.2 + +* 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