diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-10 09:55:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-10 09:56:32 +0900 |
commit | b91a656f2496caa87c5b307b0969cea3c4183be5 (patch) | |
tree | a6d9d77272eefdbb2cf0b49327a3e179c676789a | |
parent | d97bcaac29892fdfedf726d9127af64b98390d1c (diff) | |
download | re2c-accepted/tizen/7.0/unified/20221110.061039.tar.gz re2c-accepted/tizen/7.0/unified/20221110.061039.tar.bz2 re2c-accepted/tizen/7.0/unified/20221110.061039.zip |
Bump to re2c 3.0tizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220210.012226accepted/tizen/unified/20220210.105946accepted/tizen/8.0/unified/20231005.095513accepted/tizen/7.0/unified/hotfix/20221116.111408accepted/tizen/7.0/unified/20221110.061039tizen_8.0tizen_7.0_hotfixtizen_7.0sandbox/dh0128.kwak/re2c-3.0-20220210sandbox/backup/re2c_3.0_20240122accepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I1689c648a3ea249c3edf49a89fce6399bdeeb2c1
-rw-r--r-- | .gitignore | 30 | ||||
-rw-r--r-- | benchmarks/submatch_dfa_aot/.gitignore | 2 | ||||
-rw-r--r-- | doc/papers/2019_efficient_posix_submatch_extraction_on_nfa/.gitignore | 4 | ||||
-rw-r--r-- | packaging/re2c.manifest | 5 | ||||
-rw-r--r-- | packaging/re2c.spec | 46 |
5 files changed, 51 insertions, 36 deletions
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 4e50ff5c..00000000 --- a/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Please do not use this ignore file to define platform specific files -# e.g. autogenerated files by IDE. -# -# For these purposes create a global .gitignore file, which is a list of rules -# for ignoring files in every Git repository on your computer. -# -# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore - -# The directories to ignore (do not add trailing '/'s, they skip symlinks). -/autom4te.cache -/m4 -/test_* -/.build* - -# Ignore user defined CMake presets -CMakeUserPresets.json - -# The files autogenerated by automake. -Makefile.in -aclocal.m4 -configure -compile -config.h.in -config.guess -config.sub -depcomp -install-sh -ltmain.sh -missing -test-driver diff --git a/benchmarks/submatch_dfa_aot/.gitignore b/benchmarks/submatch_dfa_aot/.gitignore deleted file mode 100644 index 5e73b523..00000000 --- a/benchmarks/submatch_dfa_aot/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -bin/** -data/*/big diff --git a/doc/papers/2019_efficient_posix_submatch_extraction_on_nfa/.gitignore b/doc/papers/2019_efficient_posix_submatch_extraction_on_nfa/.gitignore deleted file mode 100644 index c405ee62..00000000 --- a/doc/papers/2019_efficient_posix_submatch_extraction_on_nfa/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.aux -*.build_log -*.log -*.pdf diff --git a/packaging/re2c.manifest b/packaging/re2c.manifest new file mode 100644 index 00000000..017d22d3 --- /dev/null +++ b/packaging/re2c.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/re2c.spec b/packaging/re2c.spec new file mode 100644 index 00000000..6e8572d6 --- /dev/null +++ b/packaging/re2c.spec @@ -0,0 +1,46 @@ +Name: re2c +Version: 3.0 +Release: 0 +License: PD +Summary: Tool for generating C-based recognizers from regular expressions +Url: http://re2c.org/ +Group: Development/Libraries/C and C++ +Source: %{name}-%{version}.tar.bz2 +Source1001: re2c.manifest +BuildRequires: gcc-c++ + +%description +re2c is a tool for writing fast and flexible lexers. Unlike other such +tools, it concentrates solely on generating efficient code for matching +regular expressions. This makes it suitable for a wide variety of +applications. The generated scanners approach hand-crafted ones in +terms of size and speed. + +%prep +%setup -q +cp %{SOURCE1001} . +find -type d -name .svn -print0 | xargs -r0 rm -rf +find CHANGELOG lessons examples -type f -print0 \ + | xargs -r0 chmod -v a-x + +%build +export CFLAGS+=" -fPIC" +export CXXFLAGS+=" -fPIC" +export LDFLAGS+=" -pie" +mkdir -p m4 +autoreconf -i -W all + +%configure +%{__make} %{?_smp_mflags} + +%install +%make_install +%remove_docs + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_bindir}/re2c +%{_bindir}/re2go +%{_bindir}/re2rust +%{_datadir}/re2c/stdlib/unicode_categories.re |