Accepting request 929494 from home:firstyear:branches:editors

- Add cargo audit service to detect potential security issues

OBS-URL: https://build.opensuse.org/request/show/929494
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=3
This commit is contained in:
Matej Cepl 2021-11-05 14:13:21 +00:00 committed by Git OBS Bridge
parent cae4b808ee
commit 3e85311053
3 changed files with 12 additions and 4 deletions

4
_service Normal file
View File

@ -0,0 +1,4 @@
<services>
<service name="cargo_audit" mode="disabled">
</service>
</services>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 5 03:18:24 UTC 2021 - William Brown <william.brown@suse.com>
- Add cargo audit service to detect potential security issues
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 2 22:49:27 UTC 2021 - Matej Cepl <mcepl@suse.com> Fri Jul 2 22:49:27 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package tree-sitter # spec file for package tree-sitter
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define somajor 0 %define somajor 0
%define libdirname tree_sitter %define libdirname tree_sitter
Name: tree-sitter Name: tree-sitter
@ -53,7 +54,6 @@ library. It can build a concrete syntax tree for a source file
and efficiently update the syntax tree as the source file is and efficiently update the syntax tree as the source file is
edited. This is the package with the dynamically linked C library. edited. This is the package with the dynamically linked C library.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: lib%{name}%{somajor} = %{version} Requires: lib%{name}%{somajor} = %{version}
@ -88,7 +88,6 @@ export PREFIX='%{_prefix}' LIBDIR='%{_libdir}' INCLUDEDIR='%{_includedir}'
install -p -m 0755 -D target/release/tree-sitter \ install -p -m 0755 -D target/release/tree-sitter \
%{buildroot}%{_bindir}/tree-sitter %{buildroot}%{_bindir}/tree-sitter
find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete -print find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete -print
%post -n lib%{name}%{somajor} -p /sbin/ldconfig %post -n lib%{name}%{somajor} -p /sbin/ldconfig