From 8dbccc80915ef44174d8336299e6ac3214c1a61b Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 2 Jun 2022 18:08:33 +0200 Subject: [PATCH] Add packit config --- .packit.yaml | 21 ++++++++++ nyancat.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 .packit.yaml create mode 100644 nyancat.spec diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..52cfaa9 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,21 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: nyancat.spec + +# add or remove files that should be synced +files_to_sync: + - nyancat.spec + - .packit.yaml + +# name in upstream package repository or registry (e.g. in PyPI) +upstream_package_name: nyancat +# downstream (Fedora) RPM package name +downstream_package_name: nyancat + +jobs: +- job: copr_build + trigger: pull_request + metadata: + targets: + - fedora-all diff --git a/nyancat.spec b/nyancat.spec new file mode 100644 index 0000000..c8d8049 --- /dev/null +++ b/nyancat.spec @@ -0,0 +1,106 @@ +Name: nyancat +Version: 1.5.2 +Release: 8.20220602154517938807.master.5.g5ffb6c5%{?dist} +Summary: Nyancat rendered in your terminal + +License: NCSA +URL: https://github.com/klange/nyancat +Source0: nyancat-1.5.2.tar.gz + +# PATCHES FROM SOURCE GIT: + +# Can now adjust image refresh rate +# Author: Tyler Cromwell +#Patch0001: 00-0001-Can-now-adjust-image-refresh-rate.patch + +# Converted spaces to tabs, and changed to setting a delay instead of a speed up amount +# Author: Tyler Cromwell +#Patch0002: 01-0001-Converted-spaces-to-tabs-and-changed-to-setting-a-de.patch + + +BuildRequires: make +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 -p1 -n nyancat-1.5.2 +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 +* Thu Jun 02 2022 Michal Domonkos - 1.5.2-8.20220602154517938807.master.5.g5ffb6c5 +- readme: Fedora now has nyancat \o/ (Tomas Tomecek) +- fixup (K. Lange) +- Create FUNDING.yml (K Lange) +- Converted spaces to tabs, and changed to setting a delay instead of a speed up amount (Tyler Cromwell) +- Can now adjust image refresh rate (Tyler Cromwell) + +* Thu Jun 02 2022 Michal Domonkos - 1.5.2-8.20220602153704243440.master.5.g5ffb6c5 +- readme: Fedora now has nyancat \o/ (Tomas Tomecek) +- fixup (K. Lange) +- Create FUNDING.yml (K Lange) +- Converted spaces to tabs, and changed to setting a delay instead of a speed up amount (Tyler Cromwell) +- Can now adjust image refresh rate (Tyler Cromwell) + +* Thu Jun 02 2022 Michal Domonkos - 1.5.2-8.20220602153333853658.master.5.g5ffb6c5 +- readme: Fedora now has nyancat \o/ (Tomas Tomecek) +- fixup (K. Lange) +- Create FUNDING.yml (K Lange) +- Converted spaces to tabs, and changed to setting a delay instead of a speed up amount (Tyler Cromwell) +- Can now adjust image refresh rate (Tyler Cromwell) + +* Thu Jan 20 2022 Fedora Release Engineering - 1.5.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.5.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.5.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* 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 +