Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cbosdonnat:branches:systemsmanagement:Uyuni:Utils
gettext-go-lint
gettext-go-lint.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gettext-go-lint.spec of Package gettext-go-lint
# # spec file for package gettext-go-lint # # 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: gettext-go-lint Version: 0.1.0 Release: 0 Summary: Check for common mistakes in gettext localizable strings in go code. License: Apache-2.0 # FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Development/Tools/Building URL: https://github.com/cbosdo/gettext-go-lint Source0: gettext-go-lint-git-0.a1f3c8b.tar.gz Source1: vendor.tar.gz %define go_bin go # Get the proper Go version on different distros %if 0%{?suse_version} BuildRequires: golang(API) >= 1.20 %endif # 0%{?suse_version} %if 0%{?ubuntu} %if 0%{?ubuntu} > 2204 %define go_version 1.22 %else %define go_version 1.20 %endif # 0%{?ubuntu} > 2204 BuildRequires: golang-%{go_version} %define go_bin /usr/lib/go-%{go_version}/bin/go %endif # 0%{?ubuntu} %if 0%{?debian} BuildRequires: golang >= 1.20 %endif # 0%{?debian} %if 0%{?fedora} || 0%{?rhel} BuildRequires: golang >= 1.19 %endif # 0%{?fedora} || 0%{?rhel} %description A tool checking for gettext localized strings common mistakes in go source code. %prep %autosetup -p1 -a1 -n gettext-go-lint-git-0.a1f3c8b -p1 %build %{go_bin} build -mod=vendor -buildmode=pie -ldflags="-X main.Version=%{version}" %install install -D -m0755 %{name} %{buildroot}/%{_bindir}/%{name} %files %license LICENSES/Apache-2.0.txt %doc README.md %{_bindir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor