public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/stb] epel8: Correct licenses of a couple of stb libraries
Date: Fri, 23 Oct 2026 05:25:35 GMT	[thread overview]
Message-ID: <179273313552.1.18030784215659041173.rpms-stb-07211055d754@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/stb
Branch : epel8
Commit : 07211055d7548f21a9d5967af7861c881d99b233
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-22T17:41:00+01:00
Stats  : +61/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/stb/c/07211055d7548f21a9d5967af7861c881d99b233?branch=epel8

Log:
Correct licenses of a couple of stb libraries

---
diff --git a/stb.spec b/stb.spec
index cf546a9..8506465 100644
--- a/stb.spec
+++ b/stb.spec
@@ -27,8 +27,36 @@ Version:        0
 Release:        %autorelease -p -s %{snapinfo}
 Summary:        Single-file public domain libraries for C/C++
 
-# See LICENSE.
-License:        MIT OR Unlicense
+# Most of the individual stb_* libraries are under the (MIT OR Unlicense) terms
+# specified in the top-level LICENSE file, and have comment blocks like this:
+#
+#   /*
+#   ------------------------------------------------------------------------------
+#   This software is available under 2 licenses -- choose whichever you prefer.
+#   ------------------------------------------------------------------------------
+#   ALTERNATIVE A - MIT License
+#   [… text …]
+#   ------------------------------------------------------------------------------
+#   ALTERNATIVE B - Public Domain (www.unlicense.org)
+#   [… text …]
+#   ------------------------------------------------------------------------------
+#   */
+#
+# However, the libraries are licensed individually, and there are those that
+# have different terms:
+#
+# - stb_include is LicenseRef-Fedora-Public-Domain; it is not included in any
+#   binary RPM unless the stb_include bcond is enabled
+# - stb_herringbone_wang_tile is (LicenseRef-Fedora-Public-Domain OR
+#   LicenseRef-Fedora-UltraPermissive)
+#
+# See https://forge.fedoraproject.org/legal/fedora-license-data/issues/1593 and
+# https://github.com/nothings/stb/issues/2008.
+License:        %{shrink:
+    (MIT OR Unlicense) AND
+    %{?with_stb_include:LicenseRef-Fedora-Public-Domain AND}
+    (LicenseRef-Fedora-Public-Domain OR LicenseRef-Fedora-UltraPermissive)
+    }
 # Additionally, the following are under different terms, but are not used; to
 # make certain, they are removed in %%prep.
 #
@@ -273,6 +301,10 @@ BuildRequires:  /usr/bin/convert
 
 %package devel
 Summary:        Development files for stb
+# As a metapackage, the License field of this subpackage is rather arbitrary
+# because it doesn’t ship any files. We defer to the base package’s License,
+# although choosing just the “dominant” (MIT OR Unlicense) terms would be
+# equally defensible.
 
 # Dependent packages should prefer to BuildRequire the -static packages for the
 # specific stb libraries they use.
@@ -340,6 +372,7 @@ This is a metapackage that requires the -devel packages for all stb libraries.
 %package -n stb_c_lexer-devel
 Summary:        Simplify writing parsers for C-like languages
 Version:        %{stb_c_lexer_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_c_lexer-static = %{stb_c_lexer_version}-%{release}
 
@@ -350,6 +383,7 @@ Lexer for making little C-like languages with recursive-descent parsers.
 %package -n stb_connected_components-devel
 Summary:        Incrementally compute reachability on grids
 Version:        %{stb_connected_components_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_connected_components-static = %{stb_connected_components_version}-%{release}
 
@@ -364,6 +398,7 @@ their orthogonal neighbors, not diagonally.
 %package -n stb_divide-devel
 Summary:        More useful 32-bit modulus e.g. “Euclidean divide”
 Version:        %{stb_divide_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_divide-static = %{stb_divide_version}-%{release}
 
@@ -380,6 +415,7 @@ handling of overflow of intermediate calculations:
 %package -n stb_ds-devel
 Summary:        Typesafe dynamic array and hash tables for C, will compile in C++
 Version:        %{stb_ds_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_ds-static = %{stb_ds_version}-%{release}
 
@@ -393,6 +429,7 @@ For a gentle introduction: https://nothings.org/stb_ds
 %package -n stb_dxt-devel
 Summary:        Fabian “ryg” Giesen’s real-time DXT compressor
 Version:        %{stb_dxt_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_dxt-static = %{stb_dxt_version}-%{release}
 
@@ -403,6 +440,7 @@ DXT1/DXT5 compressor.
 %package -n stb_easy_font-devel
 Summary:        Quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc
 Version:        %{stb_easy_font_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_easy_font-static = %{stb_easy_font_version}-%{release}
 
@@ -423,6 +461,7 @@ Doesn’t use any textures, instead builds characters out of quads.
 %package -n stb_herringbone_wang_tile-devel
 Summary:        Herringbone Wang tile map generator
 Version:        %{stb_herringbone_wang_tile_version}
+License:        LicenseRef-Fedora-Public-Domain OR LicenseRef-Fedora-UltraPermissive
 
 Provides:       stb_herringbone_wang_tile-static = %{stb_herringbone_wang_tile_version}-%{release}
 
@@ -448,6 +487,7 @@ loading the tile set and specifying the constraints explicitly yourself.
 %package -n stb_hexwave-devel
 Summary:        Audio waveform synthesizer
 Version:        %{stb_hexwave_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_hexwave-static = %{stb_hexwave_version}-%{release}
 
@@ -464,6 +504,7 @@ multiple voices, etc.
 %package -n stb_image-devel
 Summary:        Image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
 Version:        %{stb_image_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_image-static = %{stb_image_version}-%{release}
 
@@ -480,6 +521,7 @@ problematic images and only need the trivial interface.
 %package -n stb_image_resize-devel
 Summary:        Resize images larger/smaller with good quality (original version)
 Version:        %{stb_image_resize_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_image_resize-static = %{stb_image_resize_version}-%{release}
 
@@ -498,6 +540,7 @@ deprecated by its developer; consider porting to stb_image_resize2 instead.
 %package -n stb_image_resize2-devel
 Summary:        Resize images larger/smaller with good quality
 Version:        %{stb_image_resize2_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_image_resize2-static = %{stb_image_resize2_version}-%{release}
 
@@ -508,6 +551,7 @@ Image resizing.
 %package -n stb_image_write-devel
 Summary:        Image writing to disk: PNG, TGA, BMP
 Version:        %{stb_image_write_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_image_write-static = %{stb_image_write_version}-%{release}
 
@@ -525,6 +569,7 @@ run-time performance.
 %package -n stb_include-devel
 Summary:        Implement recursive #include support, particularly for GLSL
 Version:        %{stb_include_version}
+License:        LicenseRef-Fedora-Public-Domain
 
 Provides:       stb_include-static = %{stb_include_version}-%{release}
 
@@ -545,6 +590,7 @@ API.
 %package -n stb_leakcheck-devel
 Summary:        Quick-and-dirty malloc/free leak-checking
 Version:        %{stb_leakcheck_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_leakcheck-static = %{stb_leakcheck_version}-%{release}
 
@@ -555,6 +601,7 @@ Provides:       stb_leakcheck-static = %{stb_leakcheck_version}-%{release}
 %package -n stb_perlin-devel
 Summary:        Perlin’s revised simplex noise w/ different seeds
 Version:        %{stb_perlin_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_perlin-static = %{stb_perlin_version}-%{release}
 
@@ -565,6 +612,7 @@ Provides:       stb_perlin-static = %{stb_perlin_version}-%{release}
 %package -n stb_rect_pack-devel
 Summary:        Simple 2D rectangle packer with decent quality
 Version:        %{stb_rect_pack_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_rect_pack-static = %{stb_rect_pack_version}-%{release}
 
@@ -587,6 +635,7 @@ same API, but with a different init function.
 %package -n stb_sprintf-devel
 Summary:        Fast sprintf, snprintf for C/C++
 Version:        %{stb_sprintf_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_sprintf-static = %{stb_sprintf_version}-%{release}
 
@@ -618,6 +667,7 @@ when using MSVC static libs, calling sprintf drags in 16K.
 %package -n stb_textedit-devel
 Summary:        Guts of a text editor for games etc., implementing them from scratch
 Version:        %{stb_textedit_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_textedit-static = %{stb_textedit_version}-%{release}
 
@@ -638,6 +688,7 @@ Non-trivial behaviors are modeled after Windows text controls.
 %package -n stb_tilemap_editor-devel
 Summary:        Embeddable tilemap editor
 Version:        %{stb_tilemap_editor_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_tilemap_editor-static = %{stb_tilemap_editor_version}-%{release}
 
@@ -648,6 +699,7 @@ Embeddable tilemap editor for C/C++.
 %package -n stb_truetype-devel
 Summary:        Parse, decode, and rasterize characters from TrueType fonts
 Version:        %{stb_truetype_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_truetype-static = %{stb_truetype_version}-%{release}
 
@@ -673,6 +725,7 @@ This library processes TrueType files:
 %package -n stb_vorbis-devel
 Summary:        Decode Ogg Vorbis files from file/memory to float/16-bit signed output
 Version:        %{stb_vorbis_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_vorbis-static = %{stb_vorbis_version}-%{release}
 
@@ -683,6 +736,7 @@ Ogg Vorbis audio decoder.
 %package -n stb_voxel_render-devel
 Summary:        Helps render large-scale “voxel” worlds for games
 Version:        %{stb_voxel_render_version}
+License:        MIT OR Unlicense
 
 Provides:       stb_voxel_render-static = %{stb_voxel_render_version}-%{release}
 
@@ -717,6 +771,9 @@ them.
 
 %package doc
 Summary:        Documentation for stb
+# We may reasonably assume that the LICENSE file covers documentation.
+License:        MIT OR Unlicense
+
 BuildArch:      noarch
 
 %description doc
@@ -906,7 +963,7 @@ EOF
 
 
 %files -n stb_herringbone_wang_tile-devel
-%license LICENSE
+# No license file: just a declaration in the header
 # Directory has shared ownership across stb subpackages:
 %dir %{_includedir}/stb
 %{_includedir}/stb/stb_herringbone_wang_tile.h
@@ -955,7 +1012,7 @@ EOF
 
 %if %{with stb_include}
 %files -n stb_include-devel
-%license LICENSE
+# No license file: just a public-domain declaration in the header
 # Directory has shared ownership across stb subpackages:
 %dir %{_includedir}/stb
 %{_includedir}/stb/stb_include.h

                 reply	other threads:[~2026-10-23  5:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179273313552.1.18030784215659041173.rpms-stb-07211055d754@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox