forked from pool/StyLua
Accepting request 1037000 from home:uncomfyhalomacro
I want to maintain StyLua in devel:languages:lua OBS-URL: https://build.opensuse.org/request/show/1037000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/StyLua?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
10
StyLua.changes
Normal file
10
StyLua.changes
Normal file
@@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 20 23:14:48 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- Change url macro to full URL in sources.
|
||||
- Profile "release" strips debug symbols in cargo_config.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 20 09:51:59 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- Initial spec for StyLua version 0.15.2
|
57
StyLua.spec
Normal file
57
StyLua.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package StyLua
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# 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
|
||||
URL: https://github.com/JohnnyMorganz/StyLua
|
||||
Source0: https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Source2: cargo_config
|
||||
BuildRequires: rust+cargo
|
||||
BuildRequires: cargo-packaging
|
||||
|
||||
%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
|
||||
consistent code style.
|
||||
|
||||
%prep
|
||||
%setup -q -a1
|
||||
mkdir -p .cargo
|
||||
cp %{SOURCE2} .cargo/config.toml
|
||||
|
||||
%build
|
||||
%{cargo_build} --all-features
|
||||
|
||||
%install
|
||||
%{cargo_install} --all-features
|
||||
|
||||
%check
|
||||
%{cargo_test} --all-features
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/%{_bin_name}
|
||||
%license LICENSE.md
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
10
_service
Normal file
10
_service
Normal file
@@ -0,0 +1,10 @@
|
||||
<services>
|
||||
<service name="download_files" mode="disabled" />
|
||||
<service name="cargo_vendor" mode="disabled">
|
||||
<param name="srctar">v0.15.2.tar.gz</param>
|
||||
<param name="compression">gz</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
<service name="cargo_audit" mode="disabled" />
|
||||
</services>
|
||||
|
8
cargo_config
Normal file
8
cargo_config
Normal file
@@ -0,0 +1,8 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
||||
|
||||
[profile]
|
||||
release = { strip = "symbols", lto = "thin", opt-level = "z" }
|
3
v0.15.2.tar.gz
Normal file
3
v0.15.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9a0ce0131f0fa38652f03281c54de0c6e3251e06897a53d719e78449d66e270b
|
||||
size 357509
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:12e7ffd139d5ac11717ce36de4054b333808fb3b8922fa17540d4e7100682e18
|
||||
size 16147333
|
Reference in New Issue
Block a user