File mymake.spec of Package mymake
#
# spec file for package mymake
#
# 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 build_tar_ball 1
Name: mymake
Version: 2.4.0
Release: 0
Summary: A tool to build C/C++ programs that require close to no configuration
License: MIT
URL: https://github.com/fstromback/mymake
%if %{build_tar_ball}
Source0: %{name}-%version.tar.xz
%else
Source0: _service
%endif
BuildRequires: gcc-c++
Recommends: gcc
Recommends: gcc-c++
%description
Mymake is a tool to build C/C++-programs that requires close to no configuration.
%prep
%if %{build_tar_ball}
%setup -q
%else
%setup -q -n %_sourcedir/%name-%version -T -D
%endif
%build
mkdir -p bin
/usr/bin/g++ textinc/*.cpp -o bin/textinc
bin/textinc bin/templates.h templates/*.txt
/usr/bin/g++ -std=c++11 -O3 -g -iquotesrc/ src/*.cpp src/setup/*.cpp -lpthread -o mymake
%install
install -Dm 0755 mymake %{buildroot}%{_bindir}/mymake
%files
%{_bindir}/mymake
%changelog