Hello community, here is the log from the commit of package SDL_bgi for openSUSE:Factory checked in at 2020-05-26 17:20:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/SDL_bgi (Old) and /work/SRC/openSUSE:Factory/.SDL_bgi.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "SDL_bgi" Tue May 26 17:20:57 2020 rev:17 rq:808423 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/SDL_bgi/SDL_bgi.changes 2020-01-22 23:23:50.293699783 +0100 +++ /work/SRC/openSUSE:Factory/.SDL_bgi.new.2738/SDL_bgi.changes 2020-05-26 17:21:12.572218493 +0200 @@ -1,0 +2,12 @@ +Thu Feb 20 15:46:54 UTC 2020 - Jan Engelhardt <[email protected]> + +- Update to release 2.4.0 + * Hershey font support as a replacement for the original + Borland .chr fonts. + * If the SDL_BGI_RES environment variable is set to "VGA", + initgraph (DETECT, ...) forces VGA (640x480) resolution. + * Added getlinebuffer() and putlinebuffer() + * Changed 8x8 bitmap font using the one from the DosBox emulator. +- Drop sdlbgi-automake.diff, add sdlbgi-cmake.diff. + +------------------------------------------------------------------- Old: ---- SDL_bgi-2.3.1.tar.gz sdlbgi-automake.diff New: ---- SDL_bgi-2.4.0.tar.gz SDL_bgi-rpmlintrc sdlbgi-cmake.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ SDL_bgi.spec ++++++ --- /var/tmp/diff_new_pack.WNaknx/_old 2020-05-26 17:21:13.204219852 +0200 +++ /var/tmp/diff_new_pack.WNaknx/_new 2020-05-26 17:21:13.204219852 +0200 @@ -17,18 +17,19 @@ Name: SDL_bgi -%define lname libSDL_bgi2 -Version: 2.3.1 +%define lname libSDL_bgi-suse3 +Version: 2.4.0 Release: 0 Summary: BGI-compatible 2D graphics C library with SDL backend License: Zlib AND GPL-2.0-or-later Group: Development/Libraries/X11 URL: http://libXbgi.sf.net/ +#Git-Web: https://github.com/genpfault/sdl-bgi Source: http://downloads.sf.net/libxbgi/%name-%version.tar.gz -Patch1: sdlbgi-automake.diff -BuildRequires: automake >= 1.11 -BuildRequires: libtool >= 2 +Source9: %name-rpmlintrc +Patch1: sdlbgi-cmake.diff +BuildRequires: cmake BuildRequires: pkg-config BuildRequires: pkgconfig(sdl2) @@ -61,41 +62,30 @@ together. %prep -%setup -q -%patch -P 1 -p1 +%autosetup -p1 %build -autoreconf -fi -%configure --disable-static -make %{?_smp_mflags} +%cmake +%make_build %install -%make_install +%cmake_install b="%buildroot" -rm -f "$b/%_libdir"/*.la -mkdir -p "$b/%_includedir/SDL_bgi" "$b/%_libdir/pkgconfig" -ln -s "../SDL2/SDL_bgi.h" "$b/%_includedir/SDL_bgi/graphics.h" -install -pm0644 test/dos.h test/conio.h "$b/%_includedir/SDL_bgi/" -cat >"$b/%_libdir/pkgconfig/SDL_bgi.pc" <<-EOF - Name: SDL_bgi - Description: BGI-compatible API with SDL backend - Version: %version - Requires: sdl SDL_gfx - Libs: -lSDL_bgi -EOF +mkdir -p "$b/%_defaultdocdir" +mv "$b/%_datadir/doc/%name" "$b/%_defaultdocdir/" +# just a forwarder and conflicts with xbgi +rm -v "%buildroot/%_includedir/graphics.h" %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname -%doc LICENSE -%_libdir/libSDL_bgi.so.2* +%license LICENSE +%_libdir/libSDL_bgi.so.suse3 %files -n libSDL_bgi-devel -%doc README.md doc/* -%_includedir/SDL2/ -%_includedir/SDL_bgi/ +%_defaultdocdir/%name/ +%_includedir/* %_libdir/libSDL_bgi.so -%_libdir/pkgconfig/SDL_bgi.pc %changelog ++++++ SDL_bgi-2.3.1.tar.gz -> SDL_bgi-2.4.0.tar.gz ++++++ ++++ 9199 lines of diff (skipped) ++++++ SDL_bgi-rpmlintrc ++++++ # Go home rpmlint, you are drunk. libSDL_bgisuse3 is not the right name. addFilter("shlib-policy-name-error") ++++++ sdlbgi-cmake.diff ++++++ Fix stupid build strategy. And add some library versioning. --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Index: SDL_bgi-2.4.0/CMakeLists.txt =================================================================== --- SDL_bgi-2.4.0.orig/CMakeLists.txt +++ SDL_bgi-2.4.0/CMakeLists.txt @@ -20,9 +20,6 @@ include_directories (SDL2Test ${SDL2_INC # Default install directory variables include (GNUInstallDirs) -# fix stupid bug on Linux -string (STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES) - # Find source files file (GLOB SOURCES src/*.c) @@ -31,6 +28,8 @@ include_directories (src) # Create shared library add_library (${PROJECT_NAME} SHARED ${SOURCES}) +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION suse3) +target_link_libraries(${PROJECT_NAME} -lm ${SDL2_LIBRARIES}) # Install library install (TARGETS ${PROJECT_NAME}
