Accepting request 1068466 from home:mcepl:neovim

- VERSION string used in generating *.pc file
  (among other things) has been hardcoded to 0.6.3
  (gh#tree-sitter/tree-sitter#1608), we should at least fix it
  using sed.

OBS-URL: https://build.opensuse.org/request/show/1068466
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=13
This commit is contained in:
Matej Cepl 2023-03-01 14:00:47 +00:00 committed by Git OBS Bridge
parent d10e68f11a
commit e50cc08076
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Mar 1 13:55:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
- VERSION string used in generating *.pc file
(among other things) has been hardcoded to 0.6.3
(gh#tree-sitter/tree-sitter#1608), we should at least fix it
using sed.
-------------------------------------------------------------------
Wed Jan 18 10:05:05 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -70,6 +70,9 @@ developing applications that use %{name}.
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
# fix VERSION in Makefile
sed -i -e '/^VERSION/s/:= .*$/:= %{version}/' Makefile
%build
%{cargo_build}
export CFLAGS='%{optflags}'