lapce/lapce.spec

42 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-07-16 00:00:25 +00:00
Name: lapce-git
2022-07-15 23:37:51 +00:00
Version: 0.1.3.{{{ git_dir_version }}}
Release: 1
Summary: Lightning-fast and Powerful Code Editor written in Rust
License: Apache-2.0
URL: https://github.com/lapce/lapce
2022-07-16 04:19:12 +00:00
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
2022-07-16 22:43:52 +00:00
BuildRequires: cargo perl-FindBin cairo-devel cairo-gobject-devel atk-devel gdk-pixbuf2-devel pango-devel gtk3-devel gcc g++ perl-lib perl-File-Compare mold
2022-07-15 23:37:51 +00:00
%description
Lapce is written in pure Rust with a UI in Druid (which is also written in Rust).
It is designed with Rope Science from the Xi-Editor which makes for lightning-fast computation, and leverages OpenGL for rendering.
%prep
2022-07-16 04:27:40 +00:00
{{{ git_dir_setup_macro }}}
2022-07-15 23:37:51 +00:00
%build
2022-07-16 22:43:52 +00:00
RUSTFLAGS="-C link-arg=-fuse-ld=/usr/bin/mold" cargo build --profile release-lto
2022-07-15 23:37:51 +00:00
%install
2022-07-16 05:34:21 +00:00
install -Dm755 target/release-lto/lapce %{buildroot}%{_bindir}/lapce
install -Dm755 target/release-lto/lapce-proxy %{buildroot}%{_bindir}/lapce-proxy
2022-07-15 23:37:51 +00:00
install -Dm755 extra/linux/dev.lapce.lapce.desktop %{buildroot}/usr/share/applications/dev.lapce.lapce.desktop
install -Dm766 extra/linux/dev.lapce.lapce.metainfo.xml %{buildroot}/usr/share/metainfo/dev.lapce.lapce.metainfo.xml
install -Dm766 extra/images/logo.png %{buildroot}/usr/share/pixmaps/dev.lapce.lapce.png
%files
%license LICENSE*
%doc *.md
2022-07-16 05:00:41 +00:00
%{_bindir}/lapce
%{_bindir}/lapce-proxy
2022-07-15 23:37:51 +00:00
/usr/share/applications/dev.lapce.lapce.desktop
/usr/share/metainfo/dev.lapce.lapce.metainfo.xml
/usr/share/pixmaps/dev.lapce.lapce.png
%changelog
2022-07-16 04:24:04 +00:00
* Sat Jul 16 2022 Simon Garding <titaniumtown@gmail.com> - test
- test