Accepting request 1181507 from multimedia:libs

- Updated spec-file with manual optimizations.
- Added file libcaca-0.99.beta20-gcc14.patch (boo#1225795).

OBS-URL: https://build.opensuse.org/request/show/1181507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcaca?expand=0&rev=51
This commit is contained in:
Ana Guerrero 2024-06-19 14:36:31 +00:00 committed by Git OBS Bridge
commit 992ccb45db
3 changed files with 98 additions and 22 deletions

View File

@ -0,0 +1,66 @@
index 5dc66ab..826d4d8 100644
--- a/ruby/caca-canvas.c
+++ b/ruby/caca-canvas.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include "caca-dither.h"
#include "caca-font.h"
+#include "caca_internals.h"
#include "common.h"
VALUE cCanvas;
@@ -143,7 +143,7 @@ static VALUE put_str(VALUE self, VALUE x
return self;
}
-static VALUE get_attr(VALUE self, VALUE x, VALUE y)
+static VALUE get_attr(VALUE self, VALUE x, VALUE y, VALUE)
{
unsigned long int ch;
ch = caca_get_attr(_SELF, NUM2INT(x), NUM2INT(y));
@@ -454,7 +454,7 @@ static VALUE fill_triangle(VALUE self, V
return self;
}
-static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VALUE uv)
+static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VALUE uv, VALUE)
{
caca_canvas_t *ctexture;
int i, l;
index ac29daf..36020a9 100644
--- a/ruby/caca-display.c
+++ b/ruby/caca-display.c
@@ -226,7 +226,7 @@ static VALUE get_event(VALUE self, VALUE event_mask, VALUE timeout)
return e;
}
-static VALUE driver_list(void)
+static VALUE driver_list(VALUE)
{
VALUE ary;
char const* const* list;
index 705f928..c5f5d27 100644
--- a/ruby/caca-font.c
+++ b/ruby/caca-font.c
@@ -41,7 +41,7 @@ static VALUE font_initialize(VALUE self, VALUE name)
return self;
}
-static VALUE font_list(void)
+static VALUE font_list(VALUE)
{
VALUE ary;
char const* const* list;
Index: libcaca-0.99.beta20/ruby/common.h
===================================================================
--- libcaca-0.99.beta20.orig/ruby/common.h
+++ libcaca-0.99.beta20/ruby/common.h
@@ -16,7 +16,7 @@
#define _SELF (DATA_PTR(self))
#define get_singleton_double_list(x) \
-static VALUE x##_list(void) \
+static VALUE x##_list(VALUE) \
{ \
VALUE ary, ary2; \
char const* const* list; \

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 17 19:39:46 UTC 2024 - Илья Индиго <ilya@ilya.top>
- Updated spec-file with manual optimizations.
-------------------------------------------------------------------
Mon Jun 17 16:54:04 UTC 2024 - Martin Jambor <mjambor@suse.com>
- Added file libcaca-0.99.beta20-gcc14.patch (boo#1225795).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 23 08:48:14 UTC 2024 - Valentin Lefebvre <valentin.lefebvre@suse.com> Fri Feb 23 08:48:14 UTC 2024 - Valentin Lefebvre <valentin.lefebvre@suse.com>
@ -67,10 +77,10 @@ Tue Mar 10 15:20:55 UTC 2020 - Josef Möllers <josef.moellers@suse.com>
[libcaca-prevent-overflow.patch] [libcaca-prevent-overflow.patch]
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 26 16:47:50 UTC 2020 - Илья Индиго <ilya@ilya.pp.ua> Wed Feb 26 16:47:50 UTC 2020 - Илья Индиго <ilya@ilya.top>
- Refresh spec-file via spec-cleaner. - Refreshed spec-file via spec-cleaner.
- Add Requires:toilet for caca-utils, because need for cacaclock. - Added Requires:toilet for caca-utils, because need for cacaclock.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 1 09:46:57 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com> Thu Aug 1 09:46:57 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>

View File

@ -25,18 +25,18 @@ Group: Development/Languages/C and C++
URL: http://caca.zoy.org URL: http://caca.zoy.org
Source0: https://github.com/cacalabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/cacalabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: baselibs.conf Source1: baselibs.conf
Patch: libcaca-X11_test.patch Patch0: %{name}-X11_test.patch
Patch: libcaca-ruby_am_cflags.patch Patch1: %{name}-ruby_am_cflags.patch
Patch: libcaca-ruby_vendor_install.patch Patch2: %{name}-ruby_vendor_install.patch
Patch: libcaca-0.99.beta16-missing-GLU.patch Patch3: %{name}-0.99.beta16-missing-GLU.patch
Patch: caca-no-build-date.patch Patch4: caca-no-build-date.patch
Patch: libcaca-0.99-texbuild.patch Patch5: %{name}-0.99-texbuild.patch
Patch: libcaca-ncurses6.patch Patch6: %{name}-ncurses6.patch
Patch: Bug1143286_libcaca_configure_ac_chg_for_lto.patch Patch7: Bug1143286_libcaca_configure_ac_chg_for_lto.patch
Patch: bsc1184751-add-space-for-NUL-byte.patch Patch8: bsc1184751-add-space-for-NUL-byte.patch
# PATCH-FIX-UPSTREAM correctly-handle-zero-width-or-height-images.patch bsc#1197028 Patch9: bsc1197028-correctly-handle-zero-width-or-height-images.patch
Patch: bsc1197028-correctly-handle-zero-width-or-height-images.patch Patch10: %{name}-autoconf-2.69.patch
Patch: libcaca-autoconf-2.69.patch Patch11: %{name}-0.99.beta20-gcc14.patch
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: freeglut-devel BuildRequires: freeglut-devel
@ -61,11 +61,11 @@ functions for colour text drawing, simple primitives for line, polygon
and ellipse drawing, as well as powerful image to text conversion and ellipse drawing, as well as powerful image to text conversion
routines. routines.
%package -n libcaca0 %package -n %{name}0
Summary: Library for Colour ASCII Art, text mode graphics Summary: Library for Colour ASCII Art, text mode graphics
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Provides: libcaca = %{version} Provides: %{name} = %{version}
Obsoletes: libcaca < %{version} Obsoletes: %{name} < %{version}
%description -n libcaca0 %description -n libcaca0
libcaca is the Colour AsCii Art library. It provides high level libcaca is the Colour AsCii Art library. It provides high level
@ -84,7 +84,7 @@ This package contains the header files and static libraries needed to
compile applications or shared objects that use libcaca. compile applications or shared objects that use libcaca.
%package -n python3-caca %package -n python3-caca
Summary: Python3 support for libcaca Summary: Python3 support for %{name}
Group: Development/Languages/Python Group: Development/Languages/Python
Requires: %{name} = %{version} Requires: %{name} = %{version}
BuildArch: noarch BuildArch: noarch
@ -93,7 +93,7 @@ BuildArch: noarch
This package contains all that is needed to use libcaca from python3. This package contains all that is needed to use libcaca from python3.
%package -n libcaca0-plugins %package -n libcaca0-plugins
Summary: Plugins for libcaca Summary: Plugins for %{name}
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -101,7 +101,7 @@ Requires: %{name} = %{version}
This package contains gl and x11 plugins for caca. This package contains gl and x11 plugins for caca.
%package ruby %package ruby
Summary: Ruby bindings for libcaca Summary: Ruby bindings for %{name}
Group: Development/Languages/Ruby Group: Development/Languages/Ruby
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: ruby Requires: ruby
@ -210,7 +210,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/cacaclock %{_bindir}/cacaclock
%{_bindir}/cacaserver %{_bindir}/cacaserver
%{_bindir}/img2txt %{_bindir}/img2txt
%{_datadir}/libcaca %{_datadir}/%{name}
%{_mandir}/man1/cacademo.1%{?ext_man} %{_mandir}/man1/cacademo.1%{?ext_man}
%{_mandir}/man1/cacafire.1%{?ext_man} %{_mandir}/man1/cacafire.1%{?ext_man}
%{_mandir}/man1/cacaview.1%{?ext_man} %{_mandir}/man1/cacaview.1%{?ext_man}