Dominique Leuenberger 2023-03-02 22:03:21 +00:00 committed by Git OBS Bridge
commit 826f5e7b12
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}'