Name: hello-wm Version: 2.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-wm hello.c %install mkdir -p %{buildroot}%{_bindir} install -m 755 hello-wm %{buildroot}%{_bindir} %files %{_bindir}/hello-wm %changelog * Mon Apr 8 2024 frj <1712963739@qq.com> - 2.0-1 - Initial package release