I have it in my spec file, which is exactly as same as the tutorial.
Name: hello Version: 2.10 Release: %autorelease Summary: Produces a familiar, friendly greeting
License: GPL-3.0-or-later URL: http://ftp.gnu.org/gnu/%%7Bname%7D Source: http://ftp.gnu.org/gnu/%%7Bname%7D/%%7Bname%7D-%%7Bversion%7D.tar.gz
BuildRequires: gcc BuildRequires: gettext BuildRequires: make
%description The GNU Hello program produces a familiar, friendly greeting. Yes, this is another implementation of the classic program that prints "Hello, world!" when you run it.
%prep %autosetup mv THANKS THANKS.old iconv --from-code=ISO-8859-1 --to-code=UTF-8 --output=THANKS THANKS.old
%build %configure %make_build
%install %make_install rm %{buildroot}/%{_infodir}/dir %find_lang %{name}
%check make check
%files -f %{name}.lang %{_mandir}/man1/hello.1.* %{_infodir}/hello.info.* %{_bindir}/hello %doc AUTHORS ChangeLog NEWS README THANKS TODO %license COPYING
%changelog %autochangelog
here it is if you want. And thank you so much!