Name: nyancat Version: 1.5.2 Release: 2%{?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 %build make %{?_smp_mflags} nyancat awk '1;/\*\//{exit}' < src/nyancat.c > LICENSE %install mkdir -p %{buildroot}/%{_bindir}/ install -m 0755 src/nyancat %{buildroot}/%{_bindir}/ # upstream doesn't ship manpage yet: # https://github.com/klange/nyancat/pull/54 # mkdir -p %%{buildroot}/%%{_mandir}/man1/ # install -m 0544 nyancat.1 %%{buildroot}/%%{_mandir}/man1/ %files %license LICENSE %{_bindir}/nyancat # %%{_mandir}/man1/nyancat.1* %changelog * 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