# See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_macros %global toolchain clang Name: myapp Version: 1.0.0 Release: 1%{?dist} Summary: A simple "Hello, World!" application. License: Apache-2.0 URL: https://github.com/kwk/hello-world Source0: myapp-%{version}.tar.bz2 BuildRequires: clang BuildRequires: cmake BuildRequires: git %description A simple "Hello, World!" application. %prep # Not strictly necessary but allows working on file names instead # of source numbers in install section %setup -c -T cp -p %{sources} . %autosetup -S git %build %cmake -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install %check test "`%{buildroot}/%{_bindir}/myapp`" = "Hello, World!" %files %license LICENSE %{_bindir}/myapp %changelog * Wed Mar 1 2023 John Doe - 1.0.0-1 - Building step1