Accepting request 983938 from editors
- Update to version 0.20.6: * 0.20.6 * libs: 0.20.6 * Properly incorporate lookahead bytes when recovering via missing token * Improve randomized testing setup * Run cargo test directly on CI * Set CLI as default workspace member * Don't generate primary states array if it will be unused due to abi version setting * tags: 0.20.2 * 0.20.5 * libs: 0.20.5 OBS-URL: https://build.opensuse.org/request/show/983938 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=4
This commit is contained in:
commit
afc1a8e8fa
23
_service
23
_service
@ -1,4 +1,27 @@
|
||||
<services>
|
||||
<service mode="disabled" name="obs_scm">
|
||||
<param name="url">https://github.com/tree-sitter/tree-sitter</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">ccd6bf554d922596ce905730d98a77af368bba5c</param>
|
||||
<param name="match-tag">*</param>
|
||||
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="changesauthor">socvirnyl.estela@gmail.com</param>
|
||||
</service>
|
||||
<service mode="disabled" name="tar" />
|
||||
<service mode="disabled" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service mode="disabled" name="set_version"/>
|
||||
<service name="cargo_vendor" mode="disabled">
|
||||
<param name="srcdir">tree-sitter</param>
|
||||
<param name="compression">xz</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
<service name="cargo_audit" mode="disabled">
|
||||
<param name="srcdir">tree-sitter</param>
|
||||
</service>
|
||||
</services>
|
||||
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:979ad0b36eb90975baf0c65d155d106276cac08afb1c2fe0ad54d4b7d498ce39
|
||||
size 2909707
|
3
tree-sitter-0.20.6.tar.xz
Normal file
3
tree-sitter-0.20.6.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d37eaef8a402a385998ff9aca3e1043b4a3bba899bceeff27a7178e1165b9de
|
||||
size 2924556
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5652d52a933a8f86dde61f74ddb90fa76104bea9af1601d36fb2ec2625b0d972
|
||||
size 8100748
|
@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 19 09:12:46 UTC 2022 - socvirnyl.estela@gmail.com
|
||||
|
||||
- Update to version 0.20.6:
|
||||
* 0.20.6
|
||||
* libs: 0.20.6
|
||||
* Properly incorporate lookahead bytes when recovering via missing token
|
||||
* Improve randomized testing setup
|
||||
* Run cargo test directly on CI
|
||||
* Set CLI as default workspace member
|
||||
* Don't generate primary states array if it will be unused due to abi version setting
|
||||
* tags: 0.20.2
|
||||
* 0.20.5
|
||||
* libs: 0.20.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 22 16:46:36 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -19,17 +19,16 @@
|
||||
%define somajor 0
|
||||
%define libdirname tree_sitter
|
||||
Name: tree-sitter
|
||||
Version: 0.20.4
|
||||
Version: 0.20.6
|
||||
Release: 0
|
||||
Summary: An incremental parsing system for programming tools
|
||||
License: MIT
|
||||
URL: https://tree-sitter.github.io/
|
||||
Source0: https://github.com/tree-sitter/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: tree-sitter-vendor.tar.xz
|
||||
BuildRequires: nodejs
|
||||
BuildRequires: npm
|
||||
# because of gh#meta-rust/cargo-bitbake#13
|
||||
BuildRequires: cargo > 1.40
|
||||
Source0: https://github.com/tree-sitter/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
|
||||
Source1: vendor.tar.xz
|
||||
Source2: cargo_config
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: rust > 1.40
|
||||
Requires: lib%{name}%{somajor} = %{version}
|
||||
|
||||
%description
|
||||
@ -64,20 +63,11 @@ developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a1
|
||||
|
||||
rm -v docs/.gitignore
|
||||
|
||||
mkdir .cargo
|
||||
cat >.cargo/config <<EOF
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "./vendor"
|
||||
EOF
|
||||
mkdir -p .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
|
||||
%build
|
||||
cargo build --release
|
||||
%{cargo_build}
|
||||
export CFLAGS='%{optflags}'
|
||||
export PREFIX='%{_prefix}' LIBDIR='%{_libdir}'
|
||||
%make_build
|
||||
@ -85,7 +75,7 @@ export PREFIX='%{_prefix}' LIBDIR='%{_libdir}'
|
||||
%install
|
||||
export PREFIX='%{_prefix}' LIBDIR='%{_libdir}' INCLUDEDIR='%{_includedir}'
|
||||
%make_install
|
||||
install -p -m 0755 -D target/release/tree-sitter \
|
||||
install -p -m 0755 -D %{_builddir}/%{name}-%{version}/target/release/tree-sitter \
|
||||
%{buildroot}%{_bindir}/tree-sitter
|
||||
|
||||
find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete -print
|
||||
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1a826a40e897b3a158752fdeeffb10a533768b469e79fdf417c90f039eedb053
|
||||
size 8102032
|
Loading…
Reference in New Issue
Block a user