aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/rpm/meshbay-common.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpm/meshbay-common.spec')
-rw-r--r--packaging/rpm/meshbay-common.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/rpm/meshbay-common.spec b/packaging/rpm/meshbay-common.spec
index 147dc17..cad00b7 100644
--- a/packaging/rpm/meshbay-common.spec
+++ b/packaging/rpm/meshbay-common.spec
@@ -2,7 +2,9 @@ Name: meshbay-common
Version: __VERSION__
Release: 1%{?dist}
Summary: MeshBay shared Python runtime and libraries
-License: AGPLv3+
+# The venv carries every Python dependency, each under its own licence:
+# /opt/meshbay-common/THIRD-PARTY-NOTICES.txt lists them.
+License: LGPL-3.0-or-later
URL: https://meshbay.org
AutoReqProv: no
@@ -16,6 +18,9 @@ Installs to /opt/meshbay-common/venv/.
%install
cp -a %{_staging_root}/* %{buildroot}/
+install -Dm644 -t %{buildroot}%{_licensedir}/%{name} \
+ %{_repo_root}/packages/meshbay-common/COPYING \
+ %{_repo_root}/packages/meshbay-common/COPYING.LESSER
# Bytecode written at run time into __pycache__ is not the package's, and would
# keep rpm from removing a directory the new version no longer ships.
@@ -32,6 +37,7 @@ if [ "$1" -eq 0 ]; then
fi
%files
+%license %{_licensedir}/%{name}
/opt/meshbay-common
%changelog