summaryrefslogtreecommitdiffstats
path: root/redis-json.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-08-05 10:50:21 +0200
committerRemi Collet <remi@php.net>2025-08-05 10:50:21 +0200
commit4d23bc286f33338bd6fba133db7ac9d6888a9ca9 (patch)
tree17e8d5e04547b2d69c91e7fa3667789205bd3340 /redis-json.spec
parentf9f56766d56bef2133922ca8435fcb547d3855ab (diff)
Licenses fixHEADmaster
Diffstat (limited to 'redis-json.spec')
-rw-r--r--redis-json.spec21
1 files changed, 16 insertions, 5 deletions
diff --git a/redis-json.spec b/redis-json.spec
index 3813b86..7ce6885 100644
--- a/redis-json.spec
+++ b/redis-json.spec
@@ -27,11 +27,15 @@ Summary: JSON as native data type
# (i) Redis Source Available License 2.0 (RSALv2);
# (ii) the Server Side Public License v1 (SSPLv1); or
# (iii) the GNU Affero General Public License version 3 (AGPLv3).
-License: AGPL-3.0-only
+# readies is BSD-3-Clause
+# rust libraries are MIT, Apache-2.0, BSD-2-Clause
+License: AGPL-3.0-only AND MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause
URL: %{forgeurl}
-Source0: %{forgesource}
-Source1: makedeps.sh
-Source2: %{gh_proj}-deps-%{version}.tgz
+Source0: %{name}-%{version}.tgz
+Source1: makesrc.sh
+# get full git snapshot with submodules
+Source2: %{name}-deps-%{version}.tgz
+Source3: makedeps.sh
BuildRequires: redis-devel >= 8.2
%if 0%{?fedora} || 0%{?rhel} >= 9
@@ -100,6 +104,13 @@ EOF
: Required rust version
grep -h rust-version mycargo/*/Cargo.toml Cargo.toml | sort -u | tail -n 8
+: Bundled projects Licenses
+cp -p deps/readies/LICENSE LICENSE.readies # BSD-3-Clause
+for proj in mycargo/*; do
+ for lic in $proj/LICENSE*; do
+ [ -f $lic ] && cp $lic $(basename $lic).$(basename $proj)
+ done
+done
%build
%if 0%{?fedora} || 0%{?rhel} >= 9
@@ -115,7 +126,7 @@ install -Dpm640 %{cfgname} %{buildroot}%{redis_modules_cfg}/%{cfgname
%files
-%license LICENSE.txt
+%license LICENSE*
%license licenses/AGPLv3.txt
%doc *.md
%attr(0640, redis, root) %config(noreplace) %{redis_modules_cfg}/%{cfgname}