commit 762b0401a0e11b034a6887ad26f722b5644c4844c2328b0477362b8ef9240873 Author: Dirk Stoecker Date: Wed May 4 14:24:00 2022 +0000 Accepting request 974946 from home:uncomfyhalomacro I want to maintain lapce in editors OBS-URL: https://build.opensuse.org/request/show/974946 OBS-URL: https://build.opensuse.org/package/show/editors/lapce?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..bab0080 --- /dev/null +++ b/_service @@ -0,0 +1,28 @@ + + + https://github.com/lapce/lapce + @PARENT_TAG@~@TAG_OFFSET@ + git + v0.0.12 + * + v(\d+\.\d+\.\d+) + \1 + enable + socvirnyl.estela@gmail.com + + + + *.tar + xz + + + + lapce + xz + true + + + lapce + + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..8a4b579 --- /dev/null +++ b/cargo_config @@ -0,0 +1,35 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source."https://github.com/lapce/druid"] +git = "https://github.com/lapce/druid" +replace-with = "vendored-sources" + +[source."https://github.com/lapce/piet-wgpu"] +git = "https://github.com/lapce/piet-wgpu" +replace-with = "vendored-sources" + +[source."https://github.com/lapce/structdesc"] +git = "https://github.com/lapce/structdesc" +replace-with = "vendored-sources" + +[source."https://github.com/lapce/winit"] +git = "https://github.com/lapce/winit" +branch = "new-keyboard-all" +replace-with = "vendored-sources" + +[source."https://github.com/lapce/xi-editor"] +git = "https://github.com/lapce/xi-editor" +replace-with = "vendored-sources" + +[source."https://github.com/maroider/xkbcommon-dl"] +git = "https://github.com/maroider/xkbcommon-dl" +rev = "900832888ad6f11011d1369befb344a9aa8a9610" +replace-with = "vendored-sources" + +[source."https://github.com/tree-sitter/tree-sitter-php.git"] +git = "https://github.com/tree-sitter/tree-sitter-php.git" +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/lapce-0.0.12~0.tar.xz b/lapce-0.0.12~0.tar.xz new file mode 100644 index 0000000..0a89526 --- /dev/null +++ b/lapce-0.0.12~0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5c5153e29954ac8fd3bed319fc12f482685b8222a00175f040778e90e70fd3d +size 1578008 diff --git a/lapce.changes b/lapce.changes new file mode 100644 index 0000000..0a241bf --- /dev/null +++ b/lapce.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed May 4 14:06:02 UTC 2022 - Soc Virnyl Estela + +- add lapce.sh. workaround for running inside Wayland. + +------------------------------------------------------------------- +Wed May 4 13:52:18 UTC 2022 - Soc Virnyl Estela + +- Initial spec for lapce (0.0.12) + diff --git a/lapce.desktop b/lapce.desktop new file mode 100644 index 0000000..0baa127 --- /dev/null +++ b/lapce.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Lapce +GenericName=Text Editor +Comment=Performant and light editor +TryExec=lapce.sh +Exec=lapce.sh %F +Icon=lapce +Type=Application +Keywords=Text;editor;Lapce +Categories=TextEditor;Development;IDE; +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++ diff --git a/lapce.sh b/lapce.sh new file mode 100644 index 0000000..5a08d04 --- /dev/null +++ b/lapce.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash + +if [ -n "${WAYLAND_DISPLAY}" ] +then + env -u WAYLAND_DISPLAY /usr/bin/lapce "$@" +else + /usr/bin/lapce "$@" +fi diff --git a/lapce.spec b/lapce.spec new file mode 100644 index 0000000..fe21b04 --- /dev/null +++ b/lapce.spec @@ -0,0 +1,69 @@ +# +# spec file for package lapce +# +# Copyright (c) 2022 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/ +# + + +Name: lapce +Version: 0.0.12~0 +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.xz +Source1: vendor.tar.xz +Source2: cargo_config +Source3: lapce.desktop +Source4: lapce.sh +BuildRequires: cargo-packaging +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: libgcc_s1 +BuildRequires: pkgconfig +BuildRequires: python3 +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xkbcommon) + +%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 +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +%{cargo_build} + +%install +install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name} +install -Dm 0755 %{SOURCE4} %{buildroot}%{_bindir}/lapce.sh +install -Dm 0644 extra/images/logo.svg %{buildroot}%{_datadir}/pixmaps/lapce.svg +install -Dm 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop + +%files +%license LICENSE +%doc README.md +%{_bindir}/lapce +%{_bindir}/lapce.sh +%{_datadir}/applications/lapce.desktop +%{_datadir}/pixmaps/lapce.svg + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..54b4da5 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca48e44fe33e9f2b2d5a972998eb7477f0e34d7ef95eb9c67d52d3f36ba938d1 +size 44943872