Hello community, here is the log from the commit of package libXbgi for openSUSE:Factory checked in at 2020-05-26 17:20:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libXbgi (Old) and /work/SRC/openSUSE:Factory/.libXbgi.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libXbgi" Tue May 26 17:20:56 2020 rev:2 rq:808422 version:365 Changes: -------- --- /work/SRC/openSUSE:Factory/libXbgi/libXbgi.changes 2015-08-13 18:10:24.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libXbgi.new.2738/libXbgi.changes 2020-05-26 17:21:11.128215388 +0200 @@ -1,0 +2,6 @@ +Sat May 23 14:44:45 UTC 2020 - Jan Engelhardt <[email protected]> + +- Update to release 365 + * Bugs in xkbhit(), outtext(), and outtextxy() fixed. + +------------------------------------------------------------------- Old: ---- xbgi-364.tar.gz New: ---- xbgi-365.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libXbgi.spec ++++++ --- /var/tmp/diff_new_pack.wTQy9r/_old 2020-05-26 17:21:12.264217831 +0200 +++ /var/tmp/diff_new_pack.wTQy9r/_new 2020-05-26 17:21:12.268217839 +0200 @@ -1,7 +1,7 @@ # # spec file for package libXbgi # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,26 +12,25 @@ # 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/ # Name: libXbgi %define lname libXbgi1 -Version: 364 +Version: 365 Release: 0 Summary: BGI-compatible 2D graphics C library with X11 backend -License: MIT and GPL-2.0+ +License: MIT AND GPL-2.0-or-later Group: Development/Libraries/C and C++ -Url: http://libXbgi.sf.net/ +URL: http://libXbgi.sf.net/ #Freecode-URL: http://freecode.com/projects/libxbgi/ -Source: http://libxbgi.sf.net/xbgi-%version.tar.gz +Source: https://downloads.sf.net/libxbgi/xbgi-%version.tar.gz Patch1: xbgi-automake.diff Patch2: xbgi-getpixel.diff Patch3: xbgi-sequence.diff Patch4: xbgi-grapherrormsg.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool @@ -47,8 +46,8 @@ %package -n %lname Summary: BGI-compatible 2D graphics C library -Group: System/Libraries License: MIT +Group: System/Libraries %description -n %lname libXbgi is a Borland Graphics Interface (BGI) emulation library for @@ -59,10 +58,11 @@ %package devel Summary: Development files for the XBGI library -Group: Development/Libraries/C and C++ License: MIT +Group: Development/Libraries/C and C++ Requires: %lname = %version -Requires: libX11-devel, xorg-x11-proto-devel +Requires: libX11-devel +Requires: xorg-x11-proto-devel %description devel libXbgi is a Borland Graphics Interface (BGI) emulation library for @@ -75,28 +75,25 @@ in %lname. %prep -%setup -qn xbgi-%version -%patch -P 1 -P 2 -P 3 -P 4 -p1 +%autosetup -n xbgi-%version -p1 %build autoreconf -fiv %configure --disable-static -make %{?_smp_mflags} V=1; +make %{?_smp_mflags} V=1 %install -make install DESTDIR="%buildroot"; -rm -f "%buildroot/%_libdir"/*.la; +%make_install +rm -f "%buildroot/%_libdir"/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname -%defattr(-,root,root) %doc License.txt %_libdir/libXbgi.so.1* %files devel -%defattr(-,root,root) %_includedir/graphics.h %_libdir/libXbgi.so %doc Functions.txt Using.txt README TODO.txt ++++++ xbgi-364.tar.gz -> xbgi-365.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/ChangeLog new/xbgi-365/ChangeLog --- old/xbgi-364/ChangeLog 1970-01-01 01:00:00.000000000 +0100 +++ new/xbgi-365/ChangeLog 2019-01-28 10:25:02.000000000 +0100 @@ -0,0 +1,4 @@ +2019-01-19 + +- Bugs in xkbhit(), outtext(), and outtextxy() fixed; + patches provided by Szymon Dowkontt Binary files old/xbgi-364/src/libXbgi.a and new/xbgi-365/src/libXbgi.a differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/src/outtext.c new/xbgi-365/src/outtext.c --- old/xbgi-364/src/outtext.c 2013-04-24 15:13:16.000000000 +0200 +++ new/xbgi-365/src/outtext.c 2019-01-28 10:10:43.000000000 +0100 @@ -87,4 +87,5 @@ CP.x += XTextWidth(font_info, textstring, strlen(textstring)); XFlush(dpy); + XFreeFont(dpy, font_info); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/src/outtextxy.c new/xbgi-365/src/outtextxy.c --- old/xbgi-364/src/outtextxy.c 2013-04-24 15:13:16.000000000 +0200 +++ new/xbgi-365/src/outtextxy.c 2019-01-28 10:10:43.000000000 +0100 @@ -84,6 +84,6 @@ if (visual_page == active_page) XRotDrawAlignedString(dpy, font_info, angle, window, gc, X, Y, textstring, alignment); - XFlush(dpy); + XFreeFont(dpy, font_info); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/src/test/setactivepage.c new/xbgi-365/src/test/setactivepage.c --- old/xbgi-364/src/test/setactivepage.c 1970-01-01 01:00:00.000000000 +0100 +++ new/xbgi-365/src/test/setactivepage.c 2019-01-28 10:21:35.000000000 +0100 @@ -0,0 +1,69 @@ +/* setactivepage example */ + +#include <graphics.h> +#include <stdlib.h> +#include <stdio.h> +//#include <conio.h> + +int main(void) +{ + /* select driver and mode that supports multiple pages */ + int gdriver = EGA, gmode = EGAHI, errorcode; + int x, y, ht; + + /* initialize graphics and local variables */ + initgraph(&gdriver, &gmode, ""); + + /* read result of initialization */ + errorcode = graphresult(); + if (errorcode != grOk) /* an error occurred */ + { + printf("Graphics error: %s\n", grapherrormsg(errorcode)); + + printf("Press any key to halt:"); + getch(); + exit(1); /* terminate with an error code */ + } + + x = getmaxx() / 2; + y = getmaxy() / 2; + ht = textheight("W"); + + /* select the off screen page for drawing */ + setactivepage(1); + setbkcolor (RED); + setcolor (BLUE); + cleardevice (); + + /* draw a line on page #1 */ + line(0, 0, getmaxx(), getmaxy()); + + /* output a message on page #1 */ + settextjustify(CENTER_TEXT, CENTER_TEXT); + outtextxy(x, y, "This is page #1:"); + outtextxy(x, y+ht, "Press any key to halt:"); + + + /* select drawing to page #0 */ + setactivepage(0); + setbkcolor (GREEN); + setcolor (YELLOW); + + + /* output a message on page #0 */ + outtextxy(x, y, "This is page #0."); + outtextxy(x, y+ht, "Press any key to view page #1:"); + getch(); + + /* select page #1 as the visible page */ + setvisualpage(1); + getch(); + setvisualpage(0); + getch(); + setvisualpage(1); + + /* clean up */ + getch(); + closegraph(); + return 0; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/src/xkbhit.c new/xbgi-365/src/xkbhit.c --- old/xbgi-364/src/xkbhit.c 2013-04-24 15:13:16.000000000 +0200 +++ new/xbgi-365/src/xkbhit.c 2019-01-28 10:10:43.000000000 +0100 @@ -1,6 +1,6 @@ #include "graphics.h" -int kbhit(void) +int xkbhit(void) { XEvent report; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbgi-364/xbgi.spec new/xbgi-365/xbgi.spec --- old/xbgi-364/xbgi.spec 2014-01-08 10:26:13.000000000 +0100 +++ new/xbgi-365/xbgi.spec 2019-01-28 10:23:27.000000000 +0100 @@ -1,6 +1,6 @@ Summary: BGI-compatible 2D graphics C library Name: xbgi -Version: 364 +Version: 365 Release: 1 License: Free software Group: Libraries
