Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gti for openSUSE:Factory checked in at 2022-06-28 15:21:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gti (Old) and /work/SRC/openSUSE:Factory/.gti.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gti" Tue Jun 28 15:21:27 2022 rev:3 rq:985268 version:1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/gti/gti.changes 2021-03-02 12:46:23.972404421 +0100 +++ /work/SRC/openSUSE:Factory/.gti.new.1548/gti.changes 2022-06-28 15:21:35.573872582 +0200 @@ -1,0 +2,8 @@ +Tue Jun 14 21:52:39 UTC 2022 - Antoine Belvire <[email protected]> + +- Update to 1.8.0: + * Improve animation for pull. + * Add completion for bash and zsh. +- Fix typo in description. + +------------------------------------------------------------------- Old: ---- gti-1.7.0.tar.gz New: ---- gti-1.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gti.spec ++++++ --- /var/tmp/diff_new_pack.j8fiOn/_old 2022-06-28 15:21:35.997873214 +0200 +++ /var/tmp/diff_new_pack.j8fiOn/_new 2022-06-28 15:21:36.005873226 +0200 @@ -1,7 +1,7 @@ # # spec file for package gti # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ Name: gti -Version: 1.7.0 +Version: 1.8.0 Release: 0 -Summary: ASCII art punishmet for misspelling git +Summary: ASCII art punishment for misspelling git License: MIT Group: Amusements/Toys/Other URL: https://r-wos.org/hacks/gti @@ -39,12 +39,16 @@ %make_build CFLAGS="%{optflags}" STRIP=false %install -mkdir -p %{buildroot}%{_bindir} -%make_install +# Override INSTALL command as Makefile does not create directories otherwise +%make_install INSTALL="install -D" %files %doc README.md %{_bindir}/gti +%{_datadir}/bash-completion/completions/gti +%dir %{_datadir}/zsh +%dir %{_datadir}/zsh/site-functions +%{_datadir}/zsh/site-functions/_gti %{_mandir}/man*/* %changelog ++++++ gti-1.7.0.tar.gz -> gti-1.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gti-1.7.0/Makefile new/gti-1.8.0/Makefile --- old/gti-1.7.0/Makefile 2020-02-09 14:59:44.000000000 +0100 +++ new/gti-1.8.0/Makefile 2022-04-14 15:26:53.000000000 +0200 @@ -1,13 +1,20 @@ SHELL=/bin/sh +# DESTDIR is used in a non-standard way for compatibility +prefix=$(DESTDIR)/usr + CC=cc CFLAGS+=-O2 -std=c89 -Wpedantic -Wall -Wextra -Wunused -Wshadow -Wdouble-promotion -Wstrict-overflow=5 -INSTALL=install -D +INSTALL=install INSTALL_DATA=$(INSTALL) -m 644 -BINDIR=$(DESTDIR)/usr/bin -MANDIR=$(DESTDIR)/usr/share/man/man6 +bindir=$(prefix)/bin +datarootdir=$(prefix)/share +mandir=$(datarootdir)/man +man6dir=$(mandir)/man6 +BASHCOMPLDIR=$(datarootdir)/bash-completion/completions +ZSHCOMPLDIR=$(datarootdir)/zsh/site-functions STRIP=strip ifeq ($(OS),Windows_NT) @@ -15,6 +22,8 @@ else ifeq ($(shell uname), SunOS) STRIP=gstrip + else ifeq ($(shell uname), Darwin) + STRIP=echo endif endif @@ -29,12 +38,14 @@ gzip -9 -n -c gti.6 > gti.6.gz install: $(PROG) $(MANPAGE) - $(INSTALL) $(PROG) $(BINDIR)/$(PROG) - $(INSTALL_DATA) $(MANPAGE) $(MANDIR)/$(MANPAGE) + $(INSTALL) $(PROG) $(bindir)/$(PROG) + $(INSTALL_DATA) $(MANPAGE) $(man6dir)/$(MANPAGE) + $(INSTALL_DATA) completions/gti.bash $(BASHCOMPLDIR)/$(PROG) + $(INSTALL_DATA) completions/gti.zsh $(ZSHCOMPLDIR)/_$(PROG) uninstall: - rm -f $(BINDIR)/$(PROG) - rm -f $(MANDIR)/$(MANPAGE) + rm -f $(bindir)/$(PROG) + rm -f $(man6dir)/$(MANPAGE) fmt: *.c VERSION_CONTROL=never indent -kr -i4 -ppi4 -nut -l100 -cp0 -ncs -sob \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gti-1.7.0/README.md new/gti-1.8.0/README.md --- old/gti-1.7.0/README.md 2020-02-09 14:59:44.000000000 +0100 +++ new/gti-1.8.0/README.md 2022-04-14 15:26:53.000000000 +0200 @@ -10,19 +10,22 @@ * [Fedora](https://src.fedoraproject.org/rpms/gti) * it's in ArchLinux' AUR as [gti-git](https://aur.archlinux.org/packages/gti-git/) and as [gti](https://aur.archlinux.org/packages/gti/) * [Gentoo](https://packages.gentoo.org/packages/dev-vcs/gti) -* [Nix/NixOS](https://github.com/NixOS/nixpkgs/pull/13453) -* [Ubuntu](https://launchpad.net/~mamantoha/+archive/ubuntu/gti) +* [Nix/NixOS](https://search.nixos.org/packages?show=gti&query=gti) * [FreeBSD ports](http://svnweb.freebsd.org/ports/head/games/gti/) * [OpenBSD ports](http://openports.se/games/gti) -* [Homebrew/MacOS X](http://braumeister.org/formula/gti) -* ([it's not in Debian yet](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705850)) +* [Homebrew/MacOS X](https://formulae.brew.sh/formula/gti#default) +* [Cygwin](https://cygwin.com/packages/summary/gti.html) From source: $ make $ make install # as root, probably -The default install PREFIX is `/usr/bin`. +or + + $ make prefix=~/.local install # as a user + +The default install *prefix* is `/usr/bin`. You can change the speed of the car at runtime via `GTI_SPEED`. For example: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gti-1.7.0/completions/gti.bash new/gti-1.8.0/completions/gti.bash --- old/gti-1.7.0/completions/gti.bash 1970-01-01 01:00:00.000000000 +0100 +++ new/gti-1.8.0/completions/gti.bash 2022-04-14 15:26:53.000000000 +0200 @@ -0,0 +1,17 @@ +# bash completion for gti -*- shell-script -*- + +# We assume that git is installed and its autocompletion script is nearby +___gti_complete() { + local PWD + PWD=$(dirname "${BASH_SOURCE[0]}") + + if [ -f "${PWD}/git" ]; then + source "${PWD}/git" + if [ "$(type -t __git_complete)" ]; then + # gti is just a proxy, so it supports all things from original git + __git_complete gti __git_main + fi + fi +} + +___gti_complete diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gti-1.7.0/completions/gti.zsh new/gti-1.8.0/completions/gti.zsh --- old/gti-1.7.0/completions/gti.zsh 1970-01-01 01:00:00.000000000 +0100 +++ new/gti-1.8.0/completions/gti.zsh 2022-04-14 15:26:53.000000000 +0200 @@ -0,0 +1,5 @@ +#compdef gti=git +# pretty simple one, it's just reuse the git one + +type -w _git | grep -q function && \ + _git diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gti-1.7.0/gti.c new/gti-1.8.0/gti.c --- old/gti-1.7.0/gti.c 2020-02-09 14:59:44.000000000 +0100 +++ new/gti-1.8.0/gti.c 2022-04-14 15:26:53.000000000 +0200 @@ -16,7 +16,7 @@ # define WIN32 #else /* fileno() */ -# define _POSIX_C_SOURCE 1 +# define _POSIX_C_SOURCE 199506L /* usleep() */ # define _DEFAULT_SOURCE #endif @@ -69,7 +69,7 @@ void line_at(int start_x, const char *s); void clear_car(int x); -typedef void (*draw_fn_t) (int x); +typedef void (*draw_fn_t)(int x); void draw_std(int x); void draw_push(int x); void draw_pull(int x); @@ -135,7 +135,7 @@ void init_space(void) { - fputs("\n\n\n\n\n\n\n\n", TERM_FH); /* 9 lines, to not remove the PS1 line */ + fputs("\n\n\n\n\n\n\n\n", TERM_FH); /* 9 lines, to not remove the PS1 line */ fflush(TERM_FH); } @@ -167,7 +167,11 @@ void move_to_top(void) { #ifndef WIN32 +# ifndef __MVS__ fprintf(TERM_FH, "\033[8A"); +# else + fprintf(TERM_FH, "\047[8A"); +# endif #else CONSOLE_SCREEN_BUFFER_INFO ci; GetConsoleScreenBufferInfo(WIN_CONSOLE, &ci); @@ -180,7 +184,11 @@ void move_to_x(int x) { #ifndef WIN32 +# ifndef __MVS__ fprintf(TERM_FH, "\033[%dC", x); +# else + fprintf(TERM_FH, "\047[%dC", x); +# endif #else CONSOLE_SCREEN_BUFFER_INFO ci; GetConsoleScreenBufferInfo(WIN_CONSOLE, &ci); @@ -264,19 +272,20 @@ { /* *INDENT-OFF* */ move_to_top(); - line_at(x, " "); - line_at(x, " ,---------------. __"); - line_at(x, " / /``````|``````\\\\ /--\\"); - line_at(x, " / /_______|_______\\\\________ \\__/"); - line_at(x, "|] GTI |' | |] >-||"); + line_at(x, " ------."); + line_at(x, " ,---------------. | | ,"); + line_at(x, " / /``````|``````\\\\ | | ||"); + line_at(x, " / /_______|_______\\\\________ ,-------.--+-------++--,"); if (x % 2) { - line_at(x, "= .-:-. |________| .-:-. = >-||"); - line_at(x, " ` -+- -------------- -+- ' || "); - line_at(x, " '-:-' '-:-' || "); + line_at(x, "|] GTI |' | |] / .:-:. | |"); + line_at(x, "= .-:-. |________| .-:-. = ----------- . `------- .-:-."); + line_at(x, " ` -+- -------------- -+- ' ' `----' +"); + line_at(x, " '-:-' '-:-' '-:-' '-:-'"); } else { - line_at(x, "= .:-:. |________| .:-:. = >-||"); - line_at(x, " ` X -------------- X ' / \\"); - line_at(x, " ':-:' ':-:' / \\"); + line_at(x, "|] GTI |' | |] / .-:-. | |"); + line_at(x, "= .:-:. |________| .:-:. = ----------- , `------- .:-:."); + line_at(x, " ` X -------------- X ' ' `----' X"); + line_at(x, " ':-:' ':-:' ':-:' ':-:'"); } /* *INDENT-ON* */ usleep(FRAME_TIME * 8);
