File suse-get-maintainers.spec of Package suse-get-maintainers

#
# spec file for package suse-get-maintainers
#
# 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/
#


Name:           suse-get-maintainers
Version:        1
Release:        0
Summary:        A tool to identify SUSE maintainers responsible for particular kernel code
License:        GPL-2.0
Group:          Development/Libraries/C and C++
URL:            https://github.com/SUSE/suse-get-maintainers
Source:         %{name}-%{version}.tar.xz
BuildRequires:  libcurl-devel
BuildRequires:  libgit2-devel
BuildRequires:  meson
BuildRequires:  sqlite3-devel
%if 0%{?sle_version} > 0
BuildRequires:  gcc13-c++
%else
BuildRequires:  gcc-c++
%endif

%description
suse-get-maintainers utility takes either a kernel path, an upstream
commmit hash, a unified patch produced by git or a CVE number and
produces contacts for SUSE maintainers responsible for the relevant
code.  It can also work in a batch mode where the input is provided on
the standard input one item per a line and the results are presented
in CSV or JSON formats on stdout.  For advanced functionality
(upstream hashs, CVE numbers) it requires access to a git kernel tree
and git kernel vulnerability database.

%prep
%autosetup
%if 0%{?sle_version} && 0%{?sle_version} <= 150500
sed -i '/meson_version:/d' meson.build
ln -s meson.options meson_options.txt
%endif

%build
%if 0%{?sle_version} > 0
export CXX=g++-13
%endif
%meson -D SGM_VERSION=%{version}
%meson_build

%check
%meson_test

%install
%meson_install

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by