* refactor: display action results in `message` * feat: add capture group support to `substitution` * refactor: support capture groups in `substitution` * chore: remove `funlen` check * fix: handle conatenating nested lists * chore: add `TARGETARCH` * chore: fix version in .goreleaser.yml - Update to version 3.6.1: * golangci lint (#822) * fix: sort commands before printing * chore: build statically on Windows * docs: clean up README * chore: restrict fossa to source files * refactor: error on misplaced core-level settings * chore: update fossa version * Fix broken link in README.md (#853) * chore: `cinst` -> `choco install` * docs: update link to examples * fix: check for `token.Skip` before re-order OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/vale?expand=0&rev=88
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package vale
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
Name: vale
|
|
Version: 3.7.0
|
|
Release: 0
|
|
Summary: CLI tool to lint text with extensible markup format support
|
|
License: MIT
|
|
Group: Productivity/Text/Utilities
|
|
URL: https://github.com/errata-ai/vale
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: golang(API) >= 1.21
|
|
|
|
%description
|
|
Vale is a command-line tool that brings code-like linting to prose. It's fast,
|
|
cross-platform (Windows, macOS, and Linux), and highly customizable.
|
|
|
|
Vale has support for markup: Vale has a rich understanding of many markup
|
|
formats, allowing it to avoid syntax-related false positives and intelligently
|
|
exclude code snippets from prose-related rules.
|
|
|
|
Vale includes a highly customizable extension system capable of enforcing your
|
|
style-be it a standard editorial style guide or a custom in-house set of rules
|
|
(such as those created by GitLab, Homebrew, Linode, CockroachDB, and Spotify).
|
|
|
|
https://vale.sh/
|
|
|
|
%prep
|
|
%autosetup -a 1
|
|
|
|
%build
|
|
# Build the binary.
|
|
%ifnarch ppc64
|
|
export GOFLAGS="-buildmode=pie"
|
|
%endif
|
|
go build \
|
|
-tags extended \
|
|
./cmd/%{name}
|
|
|
|
%check
|
|
# execute the binary as a basic check
|
|
./%{name} --help
|
|
|
|
%install
|
|
# Install the binary.
|
|
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
|
# Install empty styles directory for use by other packages
|
|
install --directory %{buildroot}%{_datarootdir}/%{name}/styles
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
# Package empty styles directory for use by other packages
|
|
%dir %{_datarootdir}/%{name}
|
|
%dir %{_datarootdir}/%{name}/styles
|
|
|
|
%changelog
|