File hello-OBS.spec of Package hello-test

#
# spec file for package test_package
#
# 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:           hello-OBS
Version:        0.3.2
Release:        0
Summary:        Tools
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        GPL-3.0
URL:            https://github.com/Sky071/hello-OBS.git
Source:         hello-OBS-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
Requires:       glibc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group: Development/Languages/C and C++

%description
Simple tools

%prep
%setup -q -n %{name}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"


cmake -DCMAKE_INSTALL_PREFIX=/usr .
make %{?jobs:-j%jobs}

%install
make install DESTDIR="$RPM_BUILD_ROOT"

%check

%files
%defattr(-,root,root,-)
%doc README.md LICENSE *.txt
%{_bindir}/*

%changelog