From 9356baa7f66731b103aa6dd01422d08d4fb2099373e5018692814797b8eb3e0f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 11 Aug 2020 12:09:22 +0000 Subject: [PATCH] - Update to release 2.4.1 OBS-URL: https://build.opensuse.org/package/show/graphics/SDL_bgi?expand=0&rev=47 --- SDL_bgi-2.4.0.tar.gz | 3 --- SDL_bgi-2.4.1.tar.gz | 3 +++ SDL_bgi.changes | 16 ++++++++++++++++ SDL_bgi.spec | 6 +++--- sdlbgi-cmake.diff | 24 ++++++++++++------------ 5 files changed, 34 insertions(+), 18 deletions(-) delete mode 100644 SDL_bgi-2.4.0.tar.gz create mode 100644 SDL_bgi-2.4.1.tar.gz diff --git a/SDL_bgi-2.4.0.tar.gz b/SDL_bgi-2.4.0.tar.gz deleted file mode 100644 index a87bda0..0000000 --- a/SDL_bgi-2.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fcdc9ec49b583412fee5825ca6446cc28a1bc61045bf9732db138e92bb9561b8 -size 1396648 diff --git a/SDL_bgi-2.4.1.tar.gz b/SDL_bgi-2.4.1.tar.gz new file mode 100644 index 0000000..55b1000 --- /dev/null +++ b/SDL_bgi-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22729b99a093234308718b0e5ed176f0073ca3701ddf1cdfa2e5b78575a8421e +size 1501719 diff --git a/SDL_bgi.changes b/SDL_bgi.changes index 49eaffa..ceef118 100644 --- a/SDL_bgi.changes +++ b/SDL_bgi.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Aug 11 11:58:03 UTC 2020 - Jan Engelhardt + +- Update to release 2.4.1 + * Implemented a 16-color palette that uses the same RGB values + as Turbo C. This palette is used if the environment variable + SDL_BGI_PALETTE is set to "BGI". + * Extended the setpalette() function to modify the default 16 + colors too. + * Added initpalette() to restore the original 16 colors. + * Added more Hershey fonts: Cursive, Futural, Rowmant, and + Timesr. + * Fine tuning of Hershey font metrics; now they equal the + metrics of corresponding .CHR fonts. + * Preliminary .CHR font loading support. + ------------------------------------------------------------------- Thu Feb 20 15:46:54 UTC 2020 - Jan Engelhardt diff --git a/SDL_bgi.spec b/SDL_bgi.spec index 1c76f16..25452ff 100644 --- a/SDL_bgi.spec +++ b/SDL_bgi.spec @@ -17,8 +17,8 @@ Name: SDL_bgi -%define lname libSDL_bgi-suse3 -Version: 2.4.0 +%define lname libSDL_bgi-suse4 +Version: 2.4.1 Release: 0 Summary: BGI-compatible 2D graphics C library with SDL backend License: Zlib AND GPL-2.0-or-later @@ -81,7 +81,7 @@ rm -v "%buildroot/%_includedir/graphics.h" %files -n %lname %license LICENSE -%_libdir/libSDL_bgi.so.suse3 +%_libdir/libSDL_bgi.so.suse4 %files -n libSDL_bgi-devel %_defaultdocdir/%name/ diff --git a/sdlbgi-cmake.diff b/sdlbgi-cmake.diff index fee76a9..0637dcb 100644 --- a/sdlbgi-cmake.diff +++ b/sdlbgi-cmake.diff @@ -1,17 +1,15 @@ -Fix stupid build strategy. - -And add some library versioning. +Add some library versioning. --- - CMakeLists.txt | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) + CMakeLists.txt | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) -Index: SDL_bgi-2.4.0/CMakeLists.txt +Index: SDL_bgi-2.4.1/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 +--- SDL_bgi-2.4.1.orig/CMakeLists.txt ++++ SDL_bgi-2.4.1/CMakeLists.txt +@@ -21,9 +21,6 @@ include_directories (SDL_bgi ${SDL2_INCL # Default install directory variables include (GNUInstallDirs) @@ -21,12 +19,14 @@ Index: SDL_bgi-2.4.0/CMakeLists.txt # Find source files file (GLOB SOURCES src/*.c) -@@ -31,6 +28,8 @@ include_directories (src) +@@ -32,8 +29,9 @@ 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}) ++set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION suse4) + # fix provided by Austin Hurst +-target_link_libraries (SDL_bgi ${SDL2_LIBRARIES}) ++target_link_libraries (SDL_bgi -lm ${SDL2_LIBRARIES}) # Install library install (TARGETS ${PROJECT_NAME}