Blame packages/v/vale/vale.spec

16970c
#
16970c
# spec file for package vale
16970c
#
bf24dc
# Copyright (c) 2023 SUSE LLC
16970c
#
16970c
# All modifications and additions to the file contributed by third parties
16970c
# remain the property of their copyright owners, unless otherwise agreed
16970c
# upon. The license for this file, and modifications and additions to the
16970c
# file, is the same license as for the pristine package itself (unless the
16970c
# license for the pristine package is not an Open Source License, in which
16970c
# case the license is the MIT License). An "Open Source License" is a
16970c
# license that conforms to the Open Source Definition (Version 1.9)
16970c
# published by the Open Source Initiative.
16970c
16970c
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16970c
#
16970c
# nodebuginfo
16970c
16970c
16970c
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
16970c
16970c
Name:           vale
Bernhard M. Wiedemann 399b1f
Version:        2.23.0
16970c
Release:        0
16970c
Summary:        CLI tool to lint prose text with syntax awareneness and extensible markup format support
16970c
License:        MIT
16970c
Group:          Productivity/Text/Utilities
16970c
URL:            https://github.com/errata-ai/vale
16970c
Source:         %{name}-%{version}.tar.gz
16970c
Source1:        vendor.tar.gz
16970c
BuildRequires:  golang(API) >= 1.18
16970c
16970c
%description
16970c
Vale is a command-line tool that brings code-like linting to prose. It's fast,
16970c
cross-platform (Windows, macOS, and Linux), and highly customizable.
16970c
16970c
Vale has support for markup: Vale has a rich understanding of many markup
16970c
formats, allowing it to avoid syntax-related false positives and intelligently
16970c
exclude code snippets from prose-related rules.
16970c
16970c
Vale includes a highly customizable extension system capable of enforcing your
16970c
style-be it a standard editorial style guide or a custom in-house set of rules
16970c
(such as those created by GitLab, Homebrew, Linode, CockroachDB, and Spotify).
16970c
16970c
https://vale.sh/
16970c
16970c
%prep
16970c
%autosetup -a 1
16970c
16970c
%build
16970c
# Build the binary.
16970c
go build \
16970c
   -mod=vendor \
16970c
   -tags extended \
16970c
   -buildmode=pie \
16970c
   ./cmd/vale
16970c
16970c
%install
16970c
# Install the binary.
16970c
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
1854ba
# Install empty styles directory for use by other packages
1854ba
install --directory %{buildroot}%{_datarootdir}/%{name}/styles
16970c
16970c
%files
16970c
%doc README.md
16970c
%license LICENSE
16970c
%{_bindir}/%{name}
1854ba
# Package empty styles directory for use by other packages
1854ba
%dir %{_datarootdir}/%{name}
1854ba
%dir %{_datarootdir}/%{name}/styles
16970c
16970c
%changelog