SHA256
12
0
forked from pool/StyLua

- Remove strip option for debuginfo creation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/StyLua?expand=0&rev=4
This commit is contained in:
Soc Virnyl Estela 2022-11-24 13:56:49 +00:00 committed by Git OBS Bridge
parent 1ac7183cb7
commit 119ada4d16
3 changed files with 10 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 24 13:56:02 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Remove strip option for debuginfo creation.
-------------------------------------------------------------------
Mon Nov 21 06:40:00 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -15,23 +15,24 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _bin_name stylua
Name: StyLua
Version: 0.15.2
Release: 0
Summary: Opinionated Lua code formatter
License: ( MIT OR Apache-2.0 ) AND Unicode-DFS-2016 AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR MIT ) AND ( Unlicense OR MIT ) AND Apache-2.0 AND MIT AND MPL-2.0 AND MPL-2.0
License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND MPL-2.0
URL: https://github.com/JohnnyMorganz/StyLua
Source0: https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: cargo_config
BuildRequires: rust+cargo
BuildRequires: cargo-packaging
BuildRequires: rust+cargo
%description
StyLua is an opinonated code formatter for Lua 5.1, 5.2, 5.3, 5.4 and Luau
built using full-moon. StyLua is inspired by the likes of prettier, it
parses your Lua codebase, and prints it back out from scratch, enforcing a
built using full-moon. StyLua is inspired by the likes of prettier, it
parses your Lua codebase, and prints it back out from scratch, enforcing a
consistent code style.
%prep
@ -48,7 +49,6 @@ cp %{SOURCE2} .cargo/config.toml
%check
%{cargo_test} --all-features
%files
%{_bindir}/%{_bin_name}
%license LICENSE.md

View File

@ -3,6 +3,3 @@ replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
[profile]
release = { strip = "symbols", lto = "thin", opt-level = "z" }