- Revendor the package to get in the version v0.45.0 of golang.org/x/net (bsc#1251459, CVE-2025-47911) to avoid possible DoS with various algorithms with quadratic complexity when parsing HTML documents. OBS-URL: https://build.opensuse.org/request/show/1311518 OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/gomuks?expand=0&rev=15
74 lines
2.1 KiB
RPMSpec
74 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package gomuks
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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 __arch_install_post export NO_BRP_STRIP_DEBUG=true
|
|
Name: gomuks
|
|
Version: 0.3.1
|
|
Release: 0
|
|
Summary: A terminal Matrix client written in Go
|
|
License: AGPL-3.0-only
|
|
URL: https://github.com/tulir/gomuks
|
|
Source: https://github.com/tulir/gomuks/archive/refs/tags/v%{version}.tar.gz#/gomuks-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
# Revendorization because of bsc#1251459
|
|
Patch0: patch-go-mod.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: go >= 1.21
|
|
BuildRequires: go-md2man
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: olm-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(alsa)
|
|
ExcludeArch: s390
|
|
%if 0%{?is_opensuse}
|
|
ExcludeArch: s390x
|
|
%endif
|
|
|
|
%description
|
|
A terminal Matrix client written in Go using mautrix and mauview.
|
|
|
|
Basic usage is possible, but expect bugs and missing features.
|
|
|
|
%prep
|
|
%autosetup -p1 -a1
|
|
|
|
%build
|
|
export FZF_VERSION=%{version} FZF_REVISION=tarball
|
|
go build -v -mod=vendor -buildmode=pie
|
|
|
|
%install
|
|
# Install the binary.
|
|
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
|
# Build the man page.
|
|
go-md2man -in README.md -out %{name}.1
|
|
|
|
# Install the man page.
|
|
install -D -m 0644 %{name}.1 "%{buildroot}/%{_mandir}/man1/%{name}.1"
|
|
rm %{name}.1
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}*.1%{?ext_man}
|
|
|
|
%changelog
|