summaryrefslogtreecommitdiffstats
path: root/redis-json.spec
diff options
context:
space:
mode:
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 d922c91..f6ce7df 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
%if 0%{?fedora} || 0%{?rhel} >= 9
@@ -101,6 +105,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
@@ -116,7 +127,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}