2022-05-04 14:24:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package lapce
|
|
|
|
#
|
2024-01-07 04:04:22 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-05-04 14:24:00 +00:00
|
|
|
#
|
|
|
|
# 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
|
2024-05-28 14:47:37 +00:00
|
|
|
Version: 0.4.0
|
2022-05-04 14:24:00 +00:00
|
|
|
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
|
2023-03-01 10:42:00 +00:00
|
|
|
Source0: %{name}-%{version}.tar.zst
|
|
|
|
Source1: vendor.tar.zst
|
2022-09-04 07:29:56 +00:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: c_compiler
|
2022-05-04 14:24:00 +00:00
|
|
|
BuildRequires: cargo-packaging
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3
|
2023-03-01 10:47:07 +00:00
|
|
|
BuildRequires: rust
|
|
|
|
BuildRequires: zstd
|
2022-05-24 11:02:59 +00:00
|
|
|
BuildRequires: pkgconfig(atk) >= 2.18
|
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.14
|
2022-08-08 08:34:59 +00:00
|
|
|
BuildRequires: pkgconfig(cairo-gobject)
|
2022-08-11 08:32:41 +00:00
|
|
|
BuildRequires: pkgconfig(expat)
|
2022-05-04 14:24:00 +00:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2022-05-24 11:02:59 +00:00
|
|
|
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
|
2022-05-04 14:24:00 +00:00
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
2022-10-25 21:47:54 +00:00
|
|
|
ExclusiveArch: %{rust_tier1_arches}
|
2022-05-04 14:24:00 +00:00
|
|
|
|
|
|
|
%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
|
2022-09-04 07:29:56 +00:00
|
|
|
%autosetup -a1
|
2022-05-04 14:24:00 +00:00
|
|
|
|
|
|
|
%build
|
2023-03-22 21:22:52 +00:00
|
|
|
# We disable default feature as they include auto-update.
|
2023-04-14 14:12:19 +00:00
|
|
|
# For reference:
|
2023-03-22 21:22:52 +00:00
|
|
|
# https://github.com/lapce/lapce/blob/0ded46c988d72b563bd78b29cc11107d4e2248bc/lapce-ui/Cargo.toml#L48
|
2023-11-22 07:18:17 +00:00
|
|
|
%{cargo_build} --no-default-features -p lapce-app --features all-languages
|
2022-05-04 14:24:00 +00:00
|
|
|
|
|
|
|
%install
|
2022-09-04 07:29:56 +00:00
|
|
|
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
2022-11-06 02:31:44 +00:00
|
|
|
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}-proxy
|
2022-10-15 00:45:47 +00:00
|
|
|
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/dev.%{name}.%{name}.metainfo.xml
|
2022-10-15 00:28:26 +00:00
|
|
|
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/linux/dev.%{name}.%{name}.desktop %{buildroot}%{_datadir}/applications/dev.%{name}.%{name}.desktop
|
2022-11-01 14:31:36 +00:00
|
|
|
install -Dm 0644 %{_builddir}/%{name}-%{version}/extra/images/logo.png %{buildroot}%{_datadir}/pixmaps/dev.%{name}.%{name}.png
|
2022-05-04 14:24:00 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2022-12-28 03:36:58 +00:00
|
|
|
%doc README.md docs/*.md
|
2022-05-04 14:24:00 +00:00
|
|
|
%{_bindir}/lapce
|
2022-11-06 02:01:36 +00:00
|
|
|
%{_bindir}/lapce-proxy
|
2022-08-06 13:18:11 +00:00
|
|
|
%{_datadir}/metainfo/dev.lapce.lapce.metainfo.xml
|
|
|
|
%{_datadir}/applications/dev.lapce.lapce.desktop
|
2022-11-01 14:31:36 +00:00
|
|
|
%{_datadir}/pixmaps/dev.lapce.lapce.png
|
2022-05-04 14:24:00 +00:00
|
|
|
|
|
|
|
%changelog
|