This commit is contained in:
parent
ed9cf0adc2
commit
7ea5cd9e72
14
lapce.spec
14
lapce.spec
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
%global _commit_hash e65e40a8d352e6b26a337419c82d5b406d3cf2fc
|
||||
|
||||
%global rustflags -C linker=clang -C link-arg=-fuse-ld=mold
|
||||
Name: lapce
|
||||
Version: 0.1.3+git145
|
||||
Release: 0
|
||||
@ -28,11 +28,10 @@ Group: Productivity/Text/Editors
|
||||
Source0: https://github.com/lapce/lapce/archive/%{_commit_hash}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Source2: cargo_config
|
||||
BuildRequires: c_compiler
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: clang
|
||||
BuildRequires: mold
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libgcc_s1
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3
|
||||
BuildRequires: rust >= 1.62
|
||||
@ -60,7 +59,7 @@ mkdir .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
|
||||
%build
|
||||
%{cargo_build}
|
||||
RUSTFLAGS="%{rustflags}" %{cargo_build} --profile release-lto
|
||||
|
||||
%install
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
@ -73,7 +72,8 @@ install -Dm 0644 extra/images/dev.%{name}.%{name}.svg %{buildroot}%{_datadir}/pi
|
||||
%doc README.md
|
||||
%{_bindir}/lapce
|
||||
%{_bindir}/lapce.sh
|
||||
%{_datadir}/applications/lapce.desktop
|
||||
%{_datadir}/pixmaps/lapce.svg
|
||||
%{_datadir}/metainfo/dev.lapce.lapce.metainfo.xml
|
||||
%{_datadir}/applications/dev.lapce.lapce.desktop
|
||||
%{_datadir}/pixmaps/dev.lapce.lapce.svg
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user