File project.diff of Package tree-sitter

--- _service.orig
+++ _service
@@ -1,5 +1,32 @@
 <services>
-  <service name="download_files" mode="manual" />
+  <service name="obs_scm" mode="manual">
+    <param name="url">https://github.com/tree-sitter/tree-sitter</param>
+    <param name="scm">git</param>
+    <!--
+    <param name="versionformat">@PARENT_TAG@+git%cd.%h</param>
+    -->
+    <param name="versionformat">v0.25.10</param>
+    <param name="revision">v0.25.10</param>
+
+    <!-- START DEFAULT PATTERN, useful at new release -->
+    <param name="versionrewrite-pattern">v(.*)</param>
+    <!-- END DEFAULT PATTERN -->
+
+    <!-- START wrong tag @ release FIX -->
+    <!--
+    <param name="versionrewrite-pattern">release-0.25</param>
+    <param name="versionrewrite-replacement">0.25.9</param>
+    -->
+    <!-- END wrong tag @ release FIX -->
+
+    <param name="changesgenerate">enable</param>
+  </service>
+  <service name="set_version" mode="manual"/>
+  <service name="tar" mode="manual"/>
+  <service name="recompress" mode="manual">
+    <param name="compression">gz</param>
+    <param name="file">*.tar</param>
+  </service>
   <service name="cargo_vendor" mode="manual">
      <param name="srctar">tree-sitter-*.tar.gz</param>
      <param name="update">true</param>
--- tree-sitter.changes.orig
+++ tree-sitter.changes
@@ -1,4 +1,326 @@
 -------------------------------------------------------------------
+Tue Sep 23 06:52:29 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Swapping to release tarball vs. git as pre-releases can goof things up
+- Update to version 0.25.10:
+  * fix(lib): improve wasm scanner serialization error handling
+  * fix(xtask): make building the wasm stdlib work again
+  * fix(lib/wasm): keep track of freed blocks that are not the last allocated
+    pointer
+  * fix(wasm): fix alias map size computation
+  * build: update Cargo.lock
+  * fix: lint
+  * feat(test): pin fixture grammars to specific commits
+  * perf(xtask); check out the tag directly for fixtures
+  * build: define _DARWIN_C_SOURCE
+  * fix(rust): pass correct fd to C lib's ts_tree_print_dot_graph
+  * 0.25.10
+
+-------------------------------------------------------------------
+Sun Sep 07 00:43:11 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.9+git20250904.e659ddd:
+  * build(nix): add cross and typescript to dev shell
+  * chore: update flake
+  * build(nix): use fenix for rust toolchain
+  * feat(nix): add cross compilation support
+  * refactor(nix): remove openssl dependency
+  * ci: remove separate step for generate fixtures
+  * fix(xtask): run all tests with the `--all` flag
+  * fix(lib): don't run code snippet as a doctest
+  * fix(rust): do not interpret readme doc comments as doc tests
+  * fix(generate): use correct state id when adding terminal states to non terminal extras
+  * ci: switch to arm runner
+  * fix(generate): return error when single state transitions have indirectly recursive cycles.
+  * fix(test): improve readability of corpus error message mismatch
+  * fix(xtask): reset fixtures when checking out new version
+  * build: bump emscripten to 4.0.12
+  * test(fixtures): bump javascript grammar to 0.25.0
+  * perf(xtask); check out the tag directly for fixtures
+  * ci: use armv7hf
+  * ci: pass in matrix target to xtask commands
+  * fix(loader): correct logic when downloading wasi-sdk
+  * refactor(xtask): use the git binary to perform git operations
+  * refactor(loader): use the tar binary to extract the wasi sdk
+  * refactor(loader): use the curl binary instead of `ureq` to download wasi-sdk
+  * fix(xtask): update paths in bump-version
+  * feat(loader): allow specifying the wasi sdk path
+  * build(web): mark `@types/emscripten` as a dev dep
+  * refactor(web): clean up preserving sourcemap logic, don't copy lib files
+  * fix(xtask): restore stripped `sourcesContent` when building the wasm module
+  * feat: add nix flake
+  * feat: use `compileStreaming` when loading wasm parsers
+  * feat(c): rename DecodeFunction to TSDecodeFunction
+  * fixup: remove permission check
+  * ci(spam): fix permission check
+  * fix(playground): account for missing button
+  * fix(cli): canonicalize `--lib-path` arguments
+  * feat(test): pin fixture grammars to specific commits
+  * feat(xtask): automate edits to emscripten generated d.ts
+  * feat(web)!: use bigint for timeouts
+  * fix(xtask): add heap symbols to emscripten exported methods
+  * chore(web): remove source files from package
+  * build(deps): bump wasmparser from 0.224.1 to 0.229.0 in the cargo group
+  * refactor(web): use nullish coalescing operator
+  * build(deps): bump the npm group across 1 directory with 9 updates
+  * fix(npm): add directory to repository fields
+  * ci(dependabot): update npm dependencies
+  * chore: remove emscripten xtask & workflow
+  * fix(web): correct type errors, improve build
+  * fix(cli): fix DSL type declarations
+  * build(zig): support wasmtime in more archs
+  * fix(rust): make some methods `const`
+  * build(rust)!: bump MSRV to 1.84.0
+  * build(deps): bump wasmtime-c-api to v33.0.2
+  * fix(xtask): commit Cargo.lock in upgrade_wasmtime
+  * fix(web): update `.d.ts` files
+  * fix(generate): warn users when extra rule can lead to parser hang
+  * feat(web): inline C source code in source map
+  * fix(bindings): properly detect MSVC compiler
+  * ci: add a spam closing workflow
+  * feat(ci): build libraries on windows x64 with mingw
+  * build(zig): support wasmtime for ARM64 Windows (MSVC)
+  * fix(lib): allow error nodes to match when they are child nodes
+  * ci: bump actions/upload-pages-artifact from 3 to 4 in the actions group
+  * fix(lib): check if an `ERROR` node is named before assuming it's the builtin error node
+  * style(zig): reformat files
+  * build(zig): use ArrayListUnmanaged
+  * build(zig): don't link wasmtime in static build
+  * build(zig): expose wasmtimeDep function
+  * docs: clarify definition of newline
+  * docs: clarify that a reserved rule must exist in the grammar
+  * fix(cli): show rule names for rules with metadata
+  * fix(bindings): improve zig dependency fetching logic
+  * fix(bindings): add tree-sitter as npm dev dependency
+  * fix(rust): EqCapture accepted cases where number of captured nodes differed by one
+  * build(deps): bump the cargo group with 8 updates
+  * fix(wasm): delete `var_i32_type` after initializing global stack pointer value
+  * feat(playground): add a button to copy the tree
+  * refactor(playground): move style to head
+  * fix(cli): correct resource paths
+  * feat(cli): Version updates (#4179)
+  * feat(lib): add lldb pretty-printers for some C lib types
+  * fix(c): add Haiku support to endian.h
+  * build(zig)!: upgrade build.zig to zig 0.15
+  * docs: change WASM/wasm to Wasm
+  * build(deps): bump the cargo group with 5 updates
+  * fix(playground): scroll with vanilla JS
+  * docs: replace `TSInput` by `TSInputEdit` in "Advanced Parsing"
+  * docs(web): fix deno import example
+  * fix(bindings): make npm repository field an object
+  * fix(bindings): don't ignore lockfiles
+  * ci: bump the actions group with 2 updates
+  * build(deps): bump the cargo group with 4 updates
+  * fix(cli): escape delimiters '"' and '`' in cst node text
+  * fix(cli): remove trailing whitespace in cst print
+  * fix(docs): correct awkward wording in `fail-fast` listing
+  * refactor(test): replace long tuples with structs
+  * feat(test): allow cst as expected output of test case
+  * fix(rust): adapt to new nightly iterator lints
+  * feat(cli): rebuild parsers by default when `--grammar-path` is passed.
+  * feat(cli): add `--rebuild` flag to `query`, `highlight`, and `tags` commands
+  * fix(rust): make `String` clones more explicit
+  * fix(rust): remove redundant `String` clones
+  * fix(bindings): fix clean makefile target
+  * fix(bindings): update zig template files (#4637)
+  * fix(cli): drop homepage link from config
+  * refactor(cli): conditional assignment consistency
+  * refactor(cli): drop unused function
+  * fix(bindings): use custom class name
+  * fix(ci): ignore mismatched_lifetime_syntaxes lint when building wasmtime
+  * fix(rust): ignore new mismatched-lifetime-syntaxes lint
+  * build(deps): bump the cargo group with 5 updates
+  * fix(docs): add information on missing cli command options
+  * feat(cli): include language name in `dump-languages` output
+  * refactor(loader): replace `replace_dashes_with_underscores` with rust std lib
+  * feat(cli): allow users to specify dynamic libraries directly for parse, query, test, and fuzz subcommands
+  * fix(rust)!: take `u32` for index parameter to `Node::{child, named_child}`
+  * fix(docs): indicate CJS env var export is different on Windows platforms
+  * fix(rust): correct indices for `Node::utf16_text`
+  * build(deps): bump the cargo group with 2 updates
+  * fix(cli): improve error message when language in list can't be found (#4643)
+  * fix(cli): add `reserved`  type declarations and schema
+  * feat(bindings): generate in 2 steps via make/cmake (#4646)
+  * fix(query): prevent cycles when analyzing hidden children
+  * fix(cli): eliminate leak of version string
+  * fix(docs): update cli path for install commands
+  * feat(generate): Support for --stage=json/parser/lib
+  * refactor: Expose node_types_json without generating C code
+  * feat: Only evaluate grammar.js to grammar.json
+  * feat(bindings): improve python binding test
+  * fix(bindings): improve python platform detection
+  * fix(bindings): only include top level LICENSE file
+  * fix(bindings): use parser title in lib.rs description
+  * feat(rust): Add direct links to documentation
+  * fix(rust): prevent overflow in error message calculation
+  * Revert "feat(generate): warn about unreachable variables (#4567)"
+  * feat(generate): warn about unreachable variables (#4567)
+  * docs(license): update year
+  * fix(rust): address nightly clippy lint `useless_if_let_seq`
+  * feat(cargo): update etcetera to 0.10
+  * perf(generate): reserve more `Vec` capacities
+  * fix(build.zig): remove deprecated `addStaticLibrary()`
+  * build(deps): bump the cargo group with 3 updates
+  * fix(lib): add wasm32 support to portable/endian.h (#4607)
+  * chore(web): fix indentation in type files
+  * build(bindings): update Makefile
+  * build(make): cleanup include dir on uninstall
+  * build(make): invoke `ln` in the link directory
+  * ci: don't build the C library with MinGW
+  * build(make): fix MinGW builds
+  * docs: update bindings list
+
+-------------------------------------------------------------------
+Sun Jul 13 18:56:30 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.8+git20250713.854f527:
+  * perf: reorder conditional operands
+  * fix(generate): propagate node types error
+
+-------------------------------------------------------------------
+Sat Jul 12 20:31:21 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.7+git20250712.5ed2c77:
+  * perf: reorder expensive conditional operand
+  * chore(rust): remove empty `grammar_files` file
+  * fix(test): unwrap result of `get_node_types` in `test_node_types_deeper_extras` test
+  * fix(generate): use topological sort for subtype map
+  * perf: More efficient computation of used symbols
+  * perf: reserve `Vec` capacities where appropriate
+  * chore: remove redundant words in comment
+  * build(deps): bump the cargo group across 1 directory with 3 updates
+  * Fix 'extra' field generation for node-types.json
+  * Add test demonstrating failure to populate 'extra'
+  * fix(xtask): run generate crate unit tests
+  * fix(ci): run generate crate unit tests
+  * fix(rust): ignore new nightly lint, correct order of lint list
+  * fix(docs): don't show mdbook help popup when using code editor
+  * ci(nvim-ts): update paths to refactor
+  * fix(cli): require correct setuptools version
+  * fix(generate): only display conflicting symbol name in non-terminal word token error message if available
+  * fix(rust): remove unused `Command` import
+  * build(deps): bump brace-expansion in /crates/cli/eslint
+  * build(deps): bump the cargo group with 4 updates
+  * build(deps): bump esbuild and tsx in /lib/binding_web
+  * fix(playground): initialize tree nodes with a 'plain' class
+  * feat(cli): support selecting bindings in init cmd
+  * fix(web): fix typing for Parser.init
+  * Fix type definitions in `exports`…
+  * chore: use issue types in templates
+  * docs: fix CLI link in readme (#4514)
+  * build(rust): use $CARGO_PKG_RUST_VERSION when generating bindings (#4512)
+  * fix(loader): fix no-default-features build (#4505)
+  * build(deps): bump the cargo group with 8 updates
+  * fix(xtask): limit `test` command to a single thread on windows (#4489)
+  * fix(bindings): update swift & node dependencies (#4432)
+  * Reorganize rust crates into a flat `crates` directory, simplify some CI steps (#4496)
+  * fix(test): remove period in `test_flatten_grammar_with_recursive_inline_variable`
+  * fix(query)!: assert that predicates end in `!` or `?`
+  * fix(cli): use a generic `Into<Path>` over single type for path arguments
+  * fix(query): correct expected and actual capture names in query assertions error message
+  * feat(cli): add `grammar-path` to `init`, `test`, `version`, `fuzz`, `query`, `highlight` and `tags` subcommands
+  * docs(highlight): update README with the new way to load languages
+  * docs: fix indentation & formatting
+  * fix(highlight): account for carriage return at EOF and chunk ends
+  * fix(lib): replace raw array accesses with `array_get`
+
+-------------------------------------------------------------------
+Wed Jun 04 16:36:30 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.6+git20250604.50622f7:
+  * fix(generate): re-enable default url features
+  * Fully fix field underflow in go_to_previous_sibling (#4483)
+  * build(deps): bump the cargo group with 5 updates
+  * docs: update broken link in the playground page
+  * fix(build): pkgconfig and use of GNUInstallDirs (#4319)
+  * Revert "feat: add build sha to parser.c header comment" (#4475)
+  * Ignore lock files in grammar repos
+  * docs: mention ~ and $HOME for parser-directories
+
+-------------------------------------------------------------------
+Wed May 28 02:17:27 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.5+git20250527.b8ba76b:
+  * Fix hang in npm install script
+  * Fix crash w/ goto_previous_sibling when parent node has leading extra child (#4472)
+  * fix: wasi has endian.h
+  * build(deps): bump cc from 1.2.22 to 1.2.23 in the cargo group
+  * illumos has endian.h
+  * build(deps): bump the cargo group with 6 updates
+
+-------------------------------------------------------------------
+Mon May 12 14:16:11 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.4+git20250511.31b9717:
+  * fix(lib): return early for empty predicate step slice
+  * build(deps): bump the cargo group with 2 updates
+  * fix(query): correct `last_child_step_index` in cases where a new step wasn't created.
+  * fix(rust): address new clippy lint
+  * fix(rust): ignore obfuscated_if_else lint
+  * build(deps): bump vite from 6.3.2 to 6.3.4 in /lib/binding_web
+  * fix(lib): do not access the alias sequence for the `end` subtree in `ts_subtree_summarize_children`
+  * build(deps): bump the cargo group with 3 updates
+  * fix(generate): mark url as a Windows-only dependency
+  * docs(rust): remove adding `cc` as a build dependency for consumers
+  * fix(parse): explicitly move temporaries in the logger callback
+  * fix(xtask): properly trim emscripten version at the source (#4402)
+  * Fix wasm build issues introduced by switching to wasi-sdk (#4407)
+  * cli: Compile parsers to wasm using `wasi-sdk`, not emscripten (#4393)
+  * Add zed config file (enable all cargo features for rust-analyzer)
+  * docs: fix typo
+  * build(deps): bump the cargo group with 2 updates
+  * perf(highlight): use `BTreeMap` over `IndexMap` for highlight configs
+  * fix(ci): increase timeouts for flaky tests
+  * style(cli): formatting
+  * build(deps): bump vite from 6.1.0 to 6.2.6 in /lib/binding_web
+  * feat(web): export wasm files to better support bundling use cases
+  * docs(cli): improve documentation for the `edits` argument when parsing code
+  * fix(web): replace dynamic require with import
+  * docs(rust): improve bindings' crate doc
+  * fix(web): correct childWithDescendant() functionality
+  * fix(ci): trigger build_wasm workflow when xtask is modified
+  * fix(xtask): trim `EMSCRIPTEN_TAG` arg to docker command in `build-wasm` command
+  * build(deps): bump the cargo group with 4 updates
+  * fix(bindings): report wasm store error in rust bindings `set_language`
+  * fix(lib): reset parser options after use
+
+-------------------------------------------------------------------
+Sun Apr 13 02:25:09 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
+
+- Update to version 0.25.3+git20250410.b341073:
+  * Make highlighting more deterministic when themes are ambiguous
+  * fix(rust): clarify error message for non-token reserved words
+  * Fix WASI build by not calling a non-existent function. (#4343)
+  * chore(generate): add `@generated` to parser.c header (#4338)
+  * ci: bump actions/create-github-app-token in the actions group
+  * build(deps): bump the cargo group across 1 directory with 5 updates
+  * Fix typo of "corresponds"
+  * docs: Fix link to named-vs-anonymous-nodes section
+  * fix(cli): display "N/A" in parse stats where appropriate when no parsing took place
+  * fix(highlight): account for multiple rows in highlight testing assertions
+  * fix(rust): address new nightly lint for pointer comparisons
+  * build(deps): update emscripten to v4.0.5
+  * fix(rust): use core crates for no_std
+  * fix(rust): address new clippy lint for pointer comparisons
+  * build(deps): bump the cargo group across 1 directory with 8 updates
+  * build.zig.zon: Fix package hashes for Zig 0.14
+  * chore(cli): remove deprecated `--no-bindings` flag from `generate` command
+  * build(deps): bump the cargo group across 1 directory with 21 updates
+  * refactor(web): change return types to `Node[]` in child-related methods
+  * fix(build): `make install` shouldn’t fail when a parser bundles no queries (#4284)
+  * fix(xtask): error if new version supplied to `bump-version` is less than or equal to current version
+  * fix(build): bump version to 0.26.0
+  * build(deps): bump emscripten to 4.0.4
+  * build(deps): bump ring from 0.17.8 to 0.17.13
+  * feat(lib): quote invalid nodes, fields, and captures
+  * fix(cli): properly escape invisible characters in parse error output
+  * fix(docs): update test command flag from -f to -i
+  * feat(build): update build.zig.zon for zig 0.14
+  * docs(bindings): Add "Using WASM Grammar files" section to `binding_rust` (#4235)
+  * fix(lib): remove duplicate TSLanguageMetadata typedef (#4268)
+  * fix(rust): adapt to new nightly lint
+
+-------------------------------------------------------------------
 Sat Apr 12 10:32:50 UTC 2025 - Michal Vyskocil <michal.vyskocil@gmail.com>
 
 - update to 0.25.3:
@@ -20,6 +342,56 @@ Sat Apr 12 10:32:50 UTC 2025 - Michal Vy
       empty extra tokens
 
 -------------------------------------------------------------------
+Wed Mar 05 06:17:08 UTC 2025 - scott.bradnick@suse.com
+
+- Update to version 0.25.3+git20250304.066fd77:
+  * Fix cases where error recovery could infinite loop (#4257)
+  * fix(generate): mark `TSCharacterRange` as `static` (#4255)
+  * Mark all format-like macros for Clippy
+  * ci: separate nightly lints to separate job
+  * fix(test): update expected tree-sitter-rust supertypes
+  * fix(rust): adapt to some new nightly lints
+  * typo: but is only works → but it only works (#4242)
+  * fix(wasm): restore passing in ERROR to `descendantsOfType` (#4226)
+
+-------------------------------------------------------------------
+Tue Feb 18 17:03:15 UTC 2025 - scott.bradnick@suse.com
+
+- Update to version 0.25.2+git20250217.b26b7f8:
+  * Decrease the MSRV for the tree-sitter-language crate (#4221)
+  * Reset result_symbol field of lexer in wasm memory in between invocations (#4218)
+  * Ignore external tokens that are zero-length and extra (#4213)
+  * Fix crash when loading languages w/ old ABI via wasm (#4210)
+  * feat: Windows support using MinGW-w64 (#4201)
+  * ci: remove benchmark step
+  * ci: rename web files, and upload a tarball for web-tree-sitter assets
+  * refactor(web): rename `tree-sitter.js` to `web-tree-sitter.js`
+  * fix(rust): adapt to new clippy lints
+  * fix: add `generate` crate to workspace members
+  * fix(web): provide type in the exports
+
+-------------------------------------------------------------------
+Tue Feb 04 17:30:30 UTC 2025 - scott.bradnick@suse.com
+
+- Update to version 0.25.1+git20250202.14647b2:
+  * build: add a comment explaining why we undef _POSIX_C_SOURCE
+  * build: fix compilation on NetBSD a different way
+  * Revert "build: do not define _POSIX_C_SOURCE on NetBSD"
+  * build: do not define _POSIX_C_SOURCE on NetBSD
+  * build: bump version to 0.25.1
+  * docs: correct build steps for WASM files
+  * style(rust): correct doc comments
+  * fix(bindings): correct Zig bindings to expose a `language` function
+  * fix(lib): prevent finished_tree assertion failure
+  * ci: use `ubuntu-22.04` for x64 builds
+  * feat(cli): specify abi version via env var
+  * build: update authors
+  * feat(web): include C source files for debugging
+  * build(web): relocate source files in WASM sourcemap
+  * build(web): bump deps
+  * chore: adapt to latest clippy lints
+
+-------------------------------------------------------------------
 Mon Feb  3 14:43:37 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
 
 - update to 0.25.1:
@@ -58,6 +430,23 @@ Sat Feb  1 15:06:02 UTC 2025 - Richard R
 - increase minimum rust version
 
 -------------------------------------------------------------------
+Fri Jan 31 15:48:14 UTC 2025 - scott.bradnick@suse.com
+
+- Swapping over to GitHub source, neovim HEAD requires it
+- Updating to somajor 0_25
+- Update to version 0.25.0+git20250131.51acdf9:
+  * feat(bindings)!: update swift bindings
+  * chore(bindings): include license file in crate
+  * chore(web): update type definitions
+  * fix(web): correct doc comment
+  * build(cli): explicitly include files
+  * fix(cli): propagate error flag in parse summary
+  * fix(web): update `check-artifacts` script
+  * build: bump dependencies
+  * build: bump `tree-sitter-language` to 0.1.4
+  * ci(release): correct build steps for web-tree-sitter
+
+-------------------------------------------------------------------
 Fri Jan 17 03:31:29 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
 
 - update to 0.24.7:
--- tree-sitter.spec.orig
+++ tree-sitter.spec
@@ -18,12 +18,13 @@
 
 %define         somajor 0_25
 Name:           tree-sitter
-Version:        0.25.3
+Version:        0.25.10
 Release:        0
 Summary:        An incremental parsing system for programming tools
 License:        GPL-2.0-only AND MIT
 URL:            https://tree-sitter.github.io/
-Source0:        https://github.com/tree-sitter/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+#Source0:        https://github.com/tree-sitter/%%{name}/archive/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
+Source0:        %{name}-%{version}.tar.gz
 Source1:        vendor.tar.zst
 Source11:       baselibs.conf
 Source20:       tree-sitter-target.py
@@ -34,7 +35,16 @@ Source24:       compile-macros.sh
 Source25:       treesitter_grammar.attr
 Source26:       treesitter_grammar.req
 BuildRequires:  cargo-packaging
+BuildRequires:  fdupes
 BuildRequires:  rust > 1.82.0
+### ?
+BuildRequires:  libclang13
+BuildRequires:  libclang-cpp18
+BuildRequires:  libclang-cpp19
+BuildRequires:  libclang-cpp20
+BuildRequires:  libclang-cpp21
+BuildRequires:  libstdc++6-devel-gcc15
+#####
 Requires:       lib%{name}%{somajor} = %{version}
 Requires:       nodejs
 %{?suse_build_hwcaps_libs}
@@ -54,7 +64,7 @@ edited. Tree-sitter aims to be:
 
 %package     -n lib%{name}%{somajor}
 Summary:        Asychronous I/O support library
-Obsoletes:      lib%{name}0 < %{version}
+Obsoletes:      lib%{name}%{somajor} < %{version}
 
 %description -n lib%{name}%{somajor}
 Tree-sitter is a parser generator tool and an incremental parsing
@@ -75,6 +85,7 @@ developing applications that use %{name}
 
 #remove gitignore file from docs
 rm %{_builddir}/%{name}-%{version}/docs/.gitignore
+%fdupes -s %{_builddir}
 
 cp %{SOURCE21} .
 cp %{SOURCE22} .
@@ -83,6 +94,10 @@ cp %{SOURCE23} .
 # fix VERSION in Makefile
 sed -i -e '/^VERSION/s/:= .*$/:= %{version}/' Makefile
 
+### Getting checksum errors with this
+#find . -name .gitignore -exec rm -fv {} \;
+#####
+
 %build
 %{cargo_build}
 %make_build PREFIX=%{_prefix} LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir}
openSUSE Build Service is sponsored by