Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gti for openSUSE:Factory checked in 
at 2021-03-02 12:34:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gti (Old)
 and      /work/SRC/openSUSE:Factory/.gti.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gti"

Tue Mar  2 12:34:55 2021 rev:2 rq:875952 version:1.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gti/gti.changes  2017-08-06 11:33:52.183283055 
+0200
+++ /work/SRC/openSUSE:Factory/.gti.new.2378/gti.changes        2021-03-02 
12:46:23.972404421 +0100
@@ -1,0 +2,9 @@
+Mon Feb 22 23:04:55 UTC 2021 - antoine.belv...@opensuse.org
+
+- Update to 1.7.0:
+  * Add animation for tag command.
+- Don't strip binary so that debuginfo and debugsource can be
+  packaged.
+- Clean spec file.
+
+-------------------------------------------------------------------

Old:
----
  gti-1.6.1.tar.gz

New:
----
  gti-1.7.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gti.spec ++++++
--- /var/tmp/diff_new_pack.LMRllp/_old  2021-03-02 12:46:24.724405071 +0100
+++ /var/tmp/diff_new_pack.LMRllp/_new  2021-03-02 12:46:24.724405071 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gti
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,20 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 Name:           gti
-Version:       1.6.1
+Version:        1.7.0
 Release:       0
-License:       MIT
 Summary:       ASCII art punishmet for misspelling git
-Url:           http://r-wos.org/hacks/gti
+License:        MIT
 Group:         Amusements/Toys/Other
-Source:         
https://github.com/rwos/gti/archive/v1.6.1.tar.gz#/%{name}-%{version}.tar.gz
+URL:            https://r-wos.org/hacks/gti
+Source:         
https://github.com/rwos/gti/archive/v%{version}/%{name}-%{version}.tar.gz
 BuildRequires: gcc
 Recommends:      git-core
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Program which will show you ASCII art car driving across the terminal when you
@@ -38,18 +36,13 @@
 %setup -q
 
 %build
-
-make %{?_smp_mflags} CFLAGS="%{optflags}"
+%make_build CFLAGS="%{optflags}" STRIP=false
 
 %install
-mkdir -p %buildroot/usr/bin
-%makeinstall PREFIX=%buildroot/usr/bin
-
-%clean
-%{?buildroot:%__rm -rf "%{buildroot}"}
+mkdir -p %{buildroot}%{_bindir}
+%make_install
 
 %files
-%defattr(-,root,root)
 %doc README.md 
 %{_bindir}/gti
 %{_mandir}/man*/*

++++++ gti-1.6.1.tar.gz -> gti-1.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gti-1.6.1/README.md new/gti-1.7.0/README.md
--- old/gti-1.6.1/README.md     2017-03-10 17:37:47.000000000 +0100
+++ new/gti-1.7.0/README.md     2020-02-09 14:59:44.000000000 +0100
@@ -7,10 +7,11 @@
 -----------------
 
 From a package system:
-* [Fedora](https://admin.fedoraproject.org/pkgdb/package/rpms/gti/)
+* [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)
 * [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)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gti-1.6.1/gti.c new/gti-1.7.0/gti.c
--- old/gti-1.6.1/gti.c 2017-03-10 17:37:47.000000000 +0100
+++ new/gti-1.7.0/gti.c 2020-02-09 14:59:44.000000000 +0100
@@ -73,6 +73,7 @@
 void draw_std(int x);
 void draw_push(int x);
 void draw_pull(int x);
+void draw_tag(int x);
 draw_fn_t select_command(int argc, char **argv);
 
 FILE *TERM_FH;
@@ -99,7 +100,6 @@
     init_space();
     for (i = -20; i < TERM_WIDTH; i++) {
         draw_fn(i);
-        clear_car(i);
     }
     move_to_top();
     fflush(TERM_FH);
@@ -126,6 +126,8 @@
             return draw_push;
         if (!strcmp(argv[i], "pull"))
             return draw_pull;
+        if (!strcmp(argv[i], "tag"))
+            return draw_tag;
         break;
     }
     return draw_std;
@@ -133,7 +135,7 @@
 
 void init_space(void)
 {
-    fputs("\n\n\n\n\n\n\n", TERM_FH);   /* 8 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);
 }
 
@@ -165,12 +167,12 @@
 void move_to_top(void)
 {
 #ifndef WIN32
-    fprintf(TERM_FH, "\033[7A");
+    fprintf(TERM_FH, "\033[8A");
 #else
     CONSOLE_SCREEN_BUFFER_INFO ci;
     GetConsoleScreenBufferInfo(WIN_CONSOLE, &ci);
     ci.dwCursorPosition.X = 0;
-    ci.dwCursorPosition.Y -= 7;
+    ci.dwCursorPosition.Y -= 8;
     SetConsoleCursorPosition(WIN_CONSOLE, ci.dwCursorPosition);
 #endif
 }
@@ -214,6 +216,7 @@
 {
     /* *INDENT-OFF* */
     move_to_top();
+    line_at(x, " ");
     line_at(x, "   ,---------------.");
     line_at(x, "  /  /``````|``````\\\\");
     line_at(x, " /  /_______|_______\\\\________");
@@ -229,12 +232,15 @@
     }
     /* *INDENT-ON* */
     usleep(FRAME_TIME);
+
+    clear_car(x);
 }
 
 void draw_push(int x)
 {
     /* *INDENT-OFF* */
     move_to_top();
+    line_at(x, " ");
     line_at(x, "   __      ,---------------.");
     line_at(x, "  /--\\   /  /``````|``````\\\\");
     line_at(x, "  \\__/  /  /_______|_______\\\\________");
@@ -250,12 +256,15 @@
     }
     /* *INDENT-ON* */
     usleep(FRAME_TIME * 10);
+
+    clear_car(x);
 }
 
 void draw_pull(int x)
 {
     /* *INDENT-OFF* */
     move_to_top();
+    line_at(x, " ");
     line_at(x, "   ,---------------.               __");
     line_at(x, "  /  /``````|``````\\\\             /--\\");
     line_at(x, " /  /_______|_______\\\\________    \\__/");
@@ -271,6 +280,39 @@
     }
     /* *INDENT-ON* */
     usleep(FRAME_TIME * 8);
+
+    clear_car(x);
+}
+
+void draw_tag(int iteration)
+{
+    const int car_x = 4;
+    int car_y = 0;
+    int keyframe = ((iteration + 20) / 4) % 3;
+
+    /* *INDENT-OFF* */
+    move_to_top();
+    line_at(car_x, "     ,-------------, .     ");
+    line_at(car_x, "    /     [_o_]     \\|    ");
+    line_at(car_x, " []/_________________|[]   ");
+    line_at(car_x, "  /__/_____________\\__\\  ");
+    line_at(car_x, "d|/``\\=(_)=====(_)=/``\\|b");
+    line_at(car_x, " |\\__/=============\\__/| ");
+    line_at(car_x, " \\-----|__G_T_I__|-----/  ");
+    if (keyframe == 1)
+    line_at(car_x, "  !\\/!             !\\/!");
+    else if (keyframe == 2)
+    line_at(car_x, "  ;/\\;             ;/\\;");
+    else
+    line_at(car_x, "  ||||             ||||");
+    /* *INDENT-ON* */
+    usleep(FRAME_TIME * 2);
+
+    /* clear it */
+    move_to_top();
+    for (car_y = 0; car_y < 8; car_y++) {
+        line_at(car_x, "                           ");
+    }
 }
 
 void clear_car(int x)
@@ -279,6 +321,7 @@
     line_at(x, "  ");
     line_at(x, "  ");
     line_at(x, "  ");
+    line_at(x, "  ");
     line_at(x, "  ");
     line_at(x, "  ");
     line_at(x, "  ");

Reply via email to