Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add packit config #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -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
106 changes: 106 additions & 0 deletions nyancat.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
#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 <[email protected]>
#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 <[email protected]> - 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 <[email protected]> - 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 <[email protected]> - 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 <[email protected]> - 1.5.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Thu Jul 22 2021 Fedora Release Engineering <[email protected]> - 1.5.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <[email protected]> - 1.5.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <[email protected]> - 1.5.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Mar 24 2020 Tomas Tomecek <[email protected]> - 1.5.2-4
- correct manpage perms
- use %%set_build_flags before make
- move LICENSE generation to %%prep

* Wed Jan 29 2020 Tomas Tomecek <[email protected]> - 1.5.2-3
- include manpage

* Tue Jan 28 2020 Tomas Tomecek <[email protected]> - 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 <[email protected]> - 1.5.2
- Initial RPM packaging