summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-25 09:44:07 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-25 09:44:07 +0200
commit52380d6ede6f8d539f68b26d9f9c9c82c3fb590d (patch)
tree1837e99a7a4f253d446e0ce4c55b08d90c575218
parent5269c4bbbe25c18fdb06ce309c1eea210b9de0df (diff)
phpMyAdmin: fix license management (from Fedora)
-rw-r--r--phpMyAdmin-dev.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/phpMyAdmin-dev.spec b/phpMyAdmin-dev.spec
index ad523d0..37aaeb8 100644
--- a/phpMyAdmin-dev.spec
+++ b/phpMyAdmin-dev.spec
@@ -27,8 +27,10 @@ Release: 1%{?dist}
Summary: Web based MySQL browser written in php
Group: Applications/Internet
-# MIT (js/jquery/, js/canvg/, js/codemirror/), GPLv2+ (the rest)
-License: GPLv2+ and MIT
+# MIT (js/jquery/, js/canvg/, js/codemirror/),
+# BSD (libraries/plugins/auth/recaptcha/),
+# GPLv2+ (the rest)
+License: GPLv2+ and MIT and BSD
URL: https://www.phpmyadmin.net/
Source0: https://files.phpmyadmin.net/%{name}/%{version}%{?prever:-%prever}/%{name}-%{version}%{?prever:-%prever}-all-languages.tar.xz
Source1: https://files.phpmyadmin.net/%{name}/%{version}%{?prever:-%prever}/%{name}-%{version}%{?prever:-%prever}-all-languages.tar.xz.asc
@@ -169,9 +171,10 @@ mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}/{upload,save,config}
rm -rf %{buildroot}%{_datadir}/%{name}/libraries/php-gettext
rm -rf %{buildroot}%{_datadir}/%{name}/libraries/tcpdf
-mv js/jquery/MIT-LICENSE.txt LICENSE-jquery
-mv js/canvg/MIT-LICENSE.txt LICENSE-canvg
-mv js/codemirror/LICENSE LICENSE-codemirror
+mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/js/jquery/MIT-LICENSE.txt LICENSE-jquery
+mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/js/canvg/MIT-LICENSE.txt LICENSE-canvg
+mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/js/codemirror/LICENSE LICENSE-codemirror
+mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/libraries/plugins/auth/recaptcha/LICENSE LICENSE-recaptcha
%clean