[packages/emmylua-analyzer-rust] new

atler atler at pld-linux.org
Sun Mar 8 00:43:55 CET 2026


commit 761061e553ef453d78d05102cc5784299d44ea3e
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Mar 8 00:43:10 2026 +0100

    new

 emmylua-analyzer-rust.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/emmylua-analyzer-rust.spec b/emmylua-analyzer-rust.spec
new file mode 100644
index 0000000..4f3f59c
--- /dev/null
+++ b/emmylua-analyzer-rust.spec
@@ -0,0 +1,68 @@
+%define		crates_ver	0.21.0
+
+Summary:	Lua development tools
+Name:		emmylua-analyzer-rust
+Version:	0.21.0
+Release:	1
+License:	MIT
+Group:		Development/Tools
+Source0:	https://github.com/EmmyLuaLs/emmylua-analyzer-rust/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	cebe36cb9438504b63e55399884f2ed0
+Source1:	%{name}-crates-%{crates_ver}.tar.xz
+# Source1-md5:	e2a498f4de78effc997bed1443e3e82e
+URL:		https://github.com/EmmyLuaLs/emmylua-analyzer-rust
+BuildRequires:	cargo
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpmbuild(macros) >= 2.050
+BuildRequires:	rust
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+%{?rust_req}
+ExclusiveArch:	%{rust_arches}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Lua development tools:
+- emmylua_ls: Language Server
+- emmylua_doc_cli: Documentation Generator
+- emmylua_check: Static Analyzer
+
+%prep
+%setup -q -n %{name}-%{version} -a1
+
+%{__mv} %{name}-%{crates_ver}/* .
+
+export CARGO_HOME="$(pwd)/.cargo"
+
+mkdir -p "$CARGO_HOME"
+cat >.cargo/config <<EOF
+[source.crates-io]
+registry = 'https://github.com/rust-lang/crates.io-index'
+replace-with = 'vendored-sources'
+
+[source.vendored-sources]
+directory = '$PWD/vendor'
+EOF
+
+%build
+export CARGO_HOME="$(pwd)/.cargo"
+
+%cargo_build --frozen --all
+
+%install
+rm -rf $RPM_BUILD_ROOT
+export CARGO_HOME="$(pwd)/.cargo"
+
+%cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $(pwd)/crates/emmylua_check
+%cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $(pwd)/crates/emmylua_doc_cli
+%cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $(pwd)/crates/emmylua_ls
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%attr(755,root,root) %{_bindir}/emmylua_check
+%attr(755,root,root) %{_bindir}/emmylua_doc_cli
+%attr(755,root,root) %{_bindir}/emmylua_ls
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/emmylua-analyzer-rust.git/commitdiff/761061e553ef453d78d05102cc5784299d44ea3e



More information about the pld-cvs-commit mailing list