- fix build on Leap 15.5

OBS-URL: https://build.opensuse.org/package/show/editors/neovide?expand=0&rev=7
This commit is contained in:
Jianhua Lu 2024-09-13 08:29:43 +00:00 committed by Git OBS Bridge
commit f8064e1a98
11 changed files with 183 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
_service Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/neovide/neovide.git</param>
<param name="revision">@PARENT_TAG@</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual"/>
<service name="tar" mode="manual"/>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">zstd</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">neovide</param>
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/neovide/neovide.git</param>
<param name="changesrevision">9c23c432b8105f39d9e9ddc2732d3350a0323cc9</param>
</service>
</servicedata>

3
neovide-0.13.3.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08b75a137c9697f9f05c20390e9b2fbcab9868b9c563455ea0db5b97e9be096e
size 25549299

36
neovide.changes Normal file
View File

@ -0,0 +1,36 @@
-------------------------------------------------------------------
Fri Sep 13 08:00:58 UTC 2024 - Jianhua Lu <lujianhua000@gmail.com>
- fix build on Leap 15.5
-------------------------------------------------------------------
Wed Sep 11 13:58:01 UTC 2024 - Jianhua Lu <lujianhua000@gmail.com>
- format spec file
- add neovim as requires
-------------------------------------------------------------------
Fri Sep 6 12:45:21 UTC 2024 - Jianhua Lu <lujianhua000@gmail.com>
- Fix build on Leap 15.6
- Add x86_64 and aarch64 to ExclusiveArch
-------------------------------------------------------------------
Thu Sep 05 09:54:21 UTC 2024 - lujianhua000@gmail.com
- Update to version 0.13.3:
* Release 0.13.3 (#2713)
* fix: use pre-defined font weights only if user does not specify one (#2710)
* Release 0.13.2 (#2697)
* feat: update deployment scripts for macOS .dmg creation (#2700)
* Unset ARGV0 to fix AppImage launch (#2691)
* fix: Fix the remote clipboard support (#2696)
* Ensure that the mouse position is positive (#2690)
* fix: A smal tweak to how the baseline offset and underline position is calculated (#2687)
* fix: update the ui command to use tabs based on settings (#2692)
* fix: Ensure windows settings are initialized when the window is created (#2619)
-------------------------------------------------------------------
Thu Sep 5 01:30:05 UTC 2024 - Jianhua Lu <lujianhua000@gmail.com>
- New package neovide

4
neovide.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: neovide
version: 0.13.3
mtime: 1721120750
commit: 9c23c432b8105f39d9e9ddc2732d3350a0323cc9

82
neovide.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package neovide
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skia_version m126-0.74.2
%define wuffs_commit e3f919ccfe3ef542cfc983a82146070258fb57f8
Name: neovide
Version: 0.13.3
Release: 0
Summary: Neovim gui
License: MIT
URL: https://github.com/neovide/neovide
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: https://github.com/rust-skia/skia/archive/m126-0.74.2/skia-%{skia_version}.tar.gz
Source3: https://github.com/google/wuffs-mirror-release-c/archive/%{wuffs_commit}/wuffs-%{wuffs_commit}.tar.gz
BuildRequires: cargo-packaging
BuildRequires: cargo >= 1.80
BuildRequires: clang
BuildRequires: gcc-c++
BuildRequires: gn
BuildRequires: hicolor-icon-theme
BuildRequires: ninja
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} && 0%{?suse_version} < 1550
# clang++ needs gcc13 c++ headers to compile skia on Leap 15.6
BuildRequires: libstdc++6-devel-gcc13
%endif
Requires: neovim >= 0.10.0
ExclusiveArch: x86_64 aarch64
%description
No Nonsense Neovim Client in Rust
%prep
%setup -q -a 1 -a 2 -a 3
mkdir -p skia-%{skia_version}/third_party/externals/
mv wuffs-mirror-release-c-%{wuffs_commit} skia-%{skia_version}/third_party/externals/wuffs
%build
export SKIA_SOURCE_DIR=${PWD}/skia-%{skia_version}
export SKIA_USE_SYSTEM_LIBRARIES=true
export SKIA_NINJA_COMMAND=ninja
export SKIA_GN_COMMAND=gn
%{cargo_build}
%install
install -Dm755 target/release/neovide %{buildroot}%{_bindir}/neovide
install -Dm644 assets/neovide.desktop %{buildroot}%{_datadir}/applications/neovide.desktop
install -Dm644 assets/neovide.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/neovide.svg
%files
%doc README.md
%license LICENSE
%{_bindir}/neovide
%{_datadir}/applications/neovide.desktop
%{_datadir}/icons/hicolor/scalable/apps/neovide.svg
%changelog

3
skia-m126-0.74.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bb27363dbd5823696bf940542fe57e45a10ffa3b4aeab070c25f7108cec3054
size 67676489

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f80e57910d0818e112ec73cef890a95c07bc3212966f7bb378d0f6ab684cf48
size 42845482

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e849dab1f372f16b782ba7528e7f70281e35425bd2d644c92a36fb95909f98db
size 329864