Name: hello Version: 1.0 Release: 1%{?dist} Summary: A simple hello world program License: GPLv3+ URL: http://example.com Source0: hello.c BuildRequires: gcc %description This is a simple hello world program. %prep cp %{SOURCE0} . %build gcc -o hello hello.c %install mkdir -p %{buildroot}%{_bindir} install -m 755 hello %{buildroot}%{_bindir} %files %{_bindir}/hello %changelog * Mon Apr 8 2024 frj <1712963739@qq.com> - 1.0-1 - Initial package release