SHA256
1
0
forked from pool/lapce

- Update to version 0.4.2:

* update CHANGELOG
  * only cancel completion popup if scrolled vertically
  * bump floem to fix panic
  * bump to latest floem
  * some style changes
  * add "Reveal in File Explorer" to right_click of editor (#3437)
  * By default, open the parent directory. (#3439)
  * reveal file in explorer centered
  * Implement a selection visual effect in the File Explorer. (#3434)
  * A few style tweaks
  * scroll style fix
  * make file explorer horizontal scrollable
  * update CHANGELOG
  * change some panel icons
  * implement document symbol (#3425)
  * Implement 'Go To Location' functionality in the Diff editor. (#3426)
  * Filter out code-len without commands. (#3427)
  * implement on screen find
  * update changelog
  * Fix pointer down on window message

OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=94
This commit is contained in:
Soc Virnyl Estela
2024-09-01 23:58:52 +00:00
committed by Git OBS Bridge
commit 37ecb0d6e4
11 changed files with 1463 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

11
_constraints Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<constraints>
<hardware>
<physicalmemory>
<size unit="G">16</size>
</physicalmemory>
<disk>
<size unit="G">16</size>
</disk>
</hardware>
</constraints>

21
_service Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/lapce/lapce</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="match-tag">v0.4.2</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="manual" name="tar" />
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">zstd</param>
</service>
<service mode="manual" name="set_version"/>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">lapce</param>
<param name="update">false</param>
</service>
</services>

4
_servicedata Normal file
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/lapce/lapce</param>
<param name="changesrevision">76ed075cd9932ebc24d20c36fbbf7d4a9b556d2c</param></service></servicedata>

3
lapce-0.4.0.tar.zst Normal file
View File

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

3
lapce-0.4.1.tar.zst Normal file
View File

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

3
lapce-0.4.2.tar.zst Normal file
View File

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

1285
lapce.changes Normal file

File diff suppressed because it is too large Load Diff

106
lapce.spec Normal file
View File

@@ -0,0 +1,106 @@
#
# spec file for package lapce
#
# 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/
#
%if 0%{?suse_version} && 0%{?suse_version} < 1550
%global force_gcc_version 13
%endif
%if 0%{?suse_version} > 1600
%bcond_without mold
%else
%bcond_with mold
%endif
%if %{with mold}
%global build_rustflags "-C" "linker=clang" "-C" "link-arg='-fuse-ld=/usr/bin/mold -Wl,-z,relro,-z,now'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none"
%endif
Name: lapce
Version: 0.4.2
Release: 0
Summary: Lightning-fast and Powerful Code Editor written in Rust
URL: https://github.com/lapce/lapce
License: (0BSD OR Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND MIT AND (Artistic-2.0 OR CC0-1.0) AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND ISC AND MIT AND (MIT OR Unlicense) AND MPL-2.0 AND MPL-2.0+ AND Zlib AND zlib-acknowledgement AND Apache-2.0
Group: Productivity/Text/Editors
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
%if 0%{?suse_version} > 1600
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: clang
BuildRequires: mold
%else
BuildRequires: gcc13
BuildRequires: gcc13-c++
BuildRequires: libstdc++6-devel-gcc13
%endif
BuildRequires: cargo-packaging
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: rust
BuildRequires: zstd
BuildRequires: pkgconfig(atk) >= 2.18
BuildRequires: pkgconfig(cairo) >= 1.14
BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gdk-3.0) >= 3.22
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.36.8
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(pango) >= 1.38
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xkbcommon)
ExclusiveArch: %{rust_tier1_arches}
%description
Lapce is written in pure Rust, with the UI in Druid
It uses Xi-Editor's Rope Science for text editing, and the
Wgpu Graphics API for rendering.
%prep
%autosetup -a1
%build
%if 0%{?force_gcc_version}
export CC="gcc-%{?force_gcc_version}"
export CXX="g++-%{?force_gcc_version}"
%endif
# We disable default feature as they include auto-update.
# For reference:
# https://github.com/lapce/lapce/blob/0ded46c988d72b563bd78b29cc11107d4e2248bc/lapce-ui/Cargo.toml#L48
%{cargo_build} --no-default-features -p lapce-app
%install
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}-proxy
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/dev.%{name}.%{name}.metainfo.xml
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.desktop %{buildroot}%{_datadir}/applications/dev.%{name}.%{name}.desktop
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/images/logo.png %{buildroot}%{_datadir}/pixmaps/dev.%{name}.%{name}.png
%files
%license LICENSE
%doc README.md docs/*.md
%{_bindir}/lapce
%{_bindir}/lapce-proxy
%{_datadir}/metainfo/dev.lapce.lapce.metainfo.xml
%{_datadir}/applications/dev.lapce.lapce.desktop
%{_datadir}/pixmaps/dev.lapce.lapce.png
%changelog

3
vendor.tar.zst Normal file
View File

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