mirror of https://github.com/lapce/lapce.git
add fedora spec for packaging
This commit is contained in:
parent
47adca6991
commit
0ddcaa49d2
|
@ -0,0 +1,38 @@
|
|||
Name: lapce
|
||||
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
|
||||
VCS: {{{ git_dir_vcs }}}
|
||||
Source: {{{ git_dir_pack }}}
|
||||
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
|
||||
|
||||
%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
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
cargo build --profile release-lto
|
||||
|
||||
%install
|
||||
install -Dm755 target/release-lto/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dm755 target/release-lto/%{name}-proxy %{buildroot}%{_bindir}/%{name}-proxy
|
||||
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
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-proxy
|
||||
/usr/share/applications/dev.lapce.lapce.desktop
|
||||
/usr/share/metainfo/dev.lapce.lapce.metainfo.xml
|
||||
/usr/share/pixmaps/dev.lapce.lapce.png
|
||||
|
||||
%changelog
|
||||
{{{ git_dir_changelog }}}
|
Loading…
Reference in New Issue