|
|
|
@ -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 <tigro@msvsphere-os.ru> - 2.2-1
|
|
|
|
|
- Rebuilt for MSVSphere 9.5
|
|
|
|
|
|
|
|
|
|
* Wed Dec 22 2021 Orion Poplawski <orion@nwra.com> - 2.2-1
|
|
|
|
|
- Update to 2.2
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 13 2021 Kyle Lexmond <fedora@kyl191.net> - 2.1.1-1
|
|
|
|
|
- Update to 2.1.1
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Sep 9 21:15:59 MDT 2020 Orion Poplawski <orion@nwra.com> - 2.0.3-1
|
|
|
|
|
- Update to 2.0.3
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Oct 7 2018 Orion Poplawski <orion@nwra.com> - 1.1.1-1
|
|
|
|
|
- Update to 1.1.1 (bugz #1607177, 1606091)
|
|
|
|
|
- Run tests
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Apr 13 2016 Ben Boeckel <mathstuf@gmail.com> - 0.16-1
|
|
|
|
|
- update to 0.16
|
|
|
|
|
- replace %%{__foo} usage
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|