5 Commits

Author SHA256 Message Date
3f7ab35999 Accepting request 1251487 from science
OBS-URL: https://build.opensuse.org/request/show/1251487
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/stb?expand=0&rev=9
2025-03-10 16:57:39 +00:00
12053f76a7 Accepting request 1251437 from home:gmbr3:Active
- Move pkgconfig creation to source file with sed command to
  hopefully avoid obs set_version breaking the pc version tag

OBS-URL: https://build.opensuse.org/request/show/1251437
OBS-URL: https://build.opensuse.org/package/show/science/stb?expand=0&rev=22
2025-03-09 03:57:09 +00:00
8e14675252 Accepting request 1241592 from science
- update to current state (10th sept 2024)
  Includes follow security fixes:
    CVE-2019-13217: heap buffer overflow in start_decoder()
    CVE-2019-13218: stack buffer overflow in compute_codewords()
    CVE-2019-13219: uninitialized memory in vorbis_decode_packet_rest()
    CVE-2019-13220: out-of-range read in draw_line()
    CVE-2019-13221: issue with large 1D codebooks in lookup1_values()
    CVE-2019-13222: unchecked NULL returned by get_window()
    CVE-2019-13223: division by zero in predict_point()
  boo#1216478

OBS-URL: https://build.opensuse.org/request/show/1241592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/stb?expand=0&rev=8
2025-02-03 20:40:35 +00:00
6762a8f281 update
OBS-URL: https://build.opensuse.org/package/show/science/stb?expand=0&rev=20
2025-01-31 07:31:20 +00:00
c148ffc60d update
OBS-URL: https://build.opensuse.org/package/show/science/stb?expand=0&rev=19
2025-01-31 07:29:06 +00:00
7 changed files with 43 additions and 20 deletions

View File

@@ -3,7 +3,8 @@
<param name="url">https://github.com/nothings/stb.git</param>
<param name="scm">git</param>
<!-- every header has an own version meanwhile. so using last commit time. -->
<param name="version">20230129</param>
<param name="revision">af1a5bc352164740c1cc1354942b1c6b72eacb8a</param>
<param name="version">20240910</param>
</service>
<service mode="manual" name="set_version" />

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c021b6db4862328f2452458716173fd361c3ca6c3aa75762046352bce48e939
size 4537356

BIN
stb-20240910.obscpio LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Wed Mar 5 10:52:48 UTC 2025 - Callum Farmer <gmbr3@opensuse.org>
- Move pkgconfig creation to source file with sed command to
hopefully avoid obs set_version breaking the pc version tag
-------------------------------------------------------------------
Fri Jan 31 07:19:08 UTC 2025 - Adrian Schröter <adrian@suse.de>
- update to current state (10th sept 2024)
Includes follow security fixes:
CVE-2019-13217: heap buffer overflow in start_decoder()
CVE-2019-13218: stack buffer overflow in compute_codewords()
CVE-2019-13219: uninitialized memory in vorbis_decode_packet_rest()
CVE-2019-13220: out-of-range read in draw_line()
CVE-2019-13221: issue with large 1D codebooks in lookup1_values()
CVE-2019-13222: unchecked NULL returned by get_window()
CVE-2019-13223: division by zero in predict_point()
boo#1216478
-------------------------------------------------------------------
Mon Feb 26 13:46:41 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,4 +1,4 @@
name: stb
version: 20230129
mtime: 1675018027
commit: 5736b15f7ea0ffb08dd38af21067c314d6a3aae9
version: 20240910
mtime: 1631260109
commit: af1a5bc352164740c1cc1354942b1c6b72eacb8a

7
stb.pc.in Normal file
View File

@@ -0,0 +1,7 @@
prefix=@_prefix@
includedir=@_includedir@
Name: stb
Description: Single-File Public Domain Libraries for C/C++
Version: @version@
Cflags: -I${includedir}/stb

View File

@@ -1,7 +1,7 @@
#
# spec file for package stb
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,14 @@
Name: stb
Version: 20230129
Version: 20240910
Release: 0
Summary: Single-File Public Domain Libraries for C/C++
License: MIT OR Unlicense
Group: Development/Libraries/C and C++
URL: https://github.com/nothings/stb
Source0: stb-%{version}.tar.xz
Source1: stb.pc.in
# perlin.h got removed in git, breaking build
Patch1: fix-compile.patch
BuildRequires: c++_compiler
@@ -87,17 +88,11 @@ stb_leakcheck.h | misc | quick-and-dirty malloc/free lea
%autosetup -p1
%build
# pkgconf
cat > stb.pc << EOF
prefix=%{_prefix}
exec_prefix=\${prefix}
includedir=%{_includedir}
Name: %{name}
Description: %{summary}
Version: %{version}
Cflags: -I\${includedir}/stb
EOF
sed \
-e "s-@_prefix@-%{_prefix}-g" \
-e "s-@_includedir@-%{_includedir}-g" \
-e "s-@version@-%{version}-g" \
%{SOURCE1} > stb.pc
%install
mkdir -p %buildroot%_includedir/stb