diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..7e40f87 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libtree-sitter0 diff --git a/tree-sitter.changes b/tree-sitter.changes index 662a2cb..aaa7a3a 100644 --- a/tree-sitter.changes +++ b/tree-sitter.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 6 19:36:21 UTC 2023 - Andreas Schneider + +- Build AVX2 enabled hwcaps library for x86_64-v3 +- Add baselibs.conf for proper generation of libraries. + ------------------------------------------------------------------- Wed Apr 5 18:02:16 UTC 2023 - Matej Cepl diff --git a/tree-sitter.spec b/tree-sitter.spec index 218a8b2..c5d1493 100644 --- a/tree-sitter.spec +++ b/tree-sitter.spec @@ -26,10 +26,12 @@ License: MIT URL: https://tree-sitter.github.io/ Source0: https://github.com/tree-sitter/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz Source1: vendor.tar.xz -Source2: cargo_config +Source10: cargo_config +Source11: baselibs.conf BuildRequires: cargo-packaging BuildRequires: rust > 1.40 Requires: lib%{name}%{somajor} = %{version} +%{?suse_build_hwcaps_libs} %description Tree-sitter is a parser generator tool and an incremental parsing @@ -65,7 +67,7 @@ developing applications that use %{name}. %autosetup -p1 -a1 mkdir -p .cargo -cp %{SOURCE2} .cargo/config +cp %{SOURCE10} .cargo/config # fix VERSION in Makefile sed -i -e '/^VERSION/s/:= .*$/:= %{version}/' Makefile