Name: nyancat Version: 1.5.2 Release: 4%{?dist} Summary: Nyancat rendered in your terminal License: NCSA URL: https://github.com/klange/nyancat Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gawk %description Nyan Cat is the name of a YouTube video uploaded in April 2011, which became an internet meme. The video merged a Japanese pop song with an animated cartoon cat with a Pop-Tart for a torso, flying through space, and leaving a rainbow trail behind it. %prep %autosetup awk '1;/\*\//{exit}' < src/nyancat.c > LICENSE %build %set_build_flags make %{?_smp_mflags} nyancat %install mkdir -p %{buildroot}/%{_bindir}/ install -m 0755 src/nyancat %{buildroot}/%{_bindir}/ mkdir -p %{buildroot}/%{_mandir}/man1/ install -m 0644 nyancat.1 %{buildroot}/%{_mandir}/man1/ %files %license LICENSE %doc README.md %{_bindir}/nyancat %{_mandir}/man1/nyancat.1* %changelog * Tue Mar 24 2020 Tomas Tomecek - 1.5.2-4 - correct manpage perms - use %%set_build_flags before make - move LICENSE generation to %%prep * Wed Jan 29 2020 Tomas Tomecek - 1.5.2-3 - include manpage * Tue Jan 28 2020 Tomas Tomecek - 1.5.2-2 - improve packaging: - summary doesn't end with a dot - files -> manpage uses a wildcard now - extract license with awk * Fri Jan 24 2020 Tomas Tomecek - 1.5.2 - Initial RPM packaging