File file2config.spec of Package file2config
#
# spec file for package file2config
#
# Copyright (c) 2025 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: file2config
Version: 0
Release: 0
License: GPL-2.0-only
Group: Productivity/Other
Summary: Kernel's Kbuild parser
URL: https://github.com/jirislaby/file2config
Source: %{name}-%{version}.tar.xz
BuildRequires: antlr4
%if 0%{?suse_version} < 1600
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libantlr4-runtime-devel
BuildRequires: meson
BuildRequires: pkgconfig(cxxopts)
BuildRequires: pkgconfig(nlohmann_json)
BuildRequires: pkgconfig(slgit++)
BuildRequires: pkgconfig(slhelpers++)
BuildRequires: pkgconfig(slsqlite++)
BuildRequires: xz
%description
file2config parses kernel's Kbuild system and outputs dependencies of files on
configs.
%prep
%autosetup
%build
%if 0%{?suse_version} < 1600
export CXX=g++-13
%endif
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%files
%doc README.rst
%license LICENSE
%{_bindir}/f2c_*
%{_datadir}/%{name}
%changelog