summaryrefslogtreecommitdiffstats
path: root/mysql-workbench.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-11 18:51:09 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-11 18:51:09 +0200
commit95ada5925b60545416ad25f8a243afea99d54724 (patch)
treedc77ea80364e71a23d3af80097ab26505ca0ed9b /mysql-workbench.spec
parent5920e928c9ed548f36beff7bbff4f05307fa5e76 (diff)
mysql-workbench: remove non-gpl documentation
Diffstat (limited to 'mysql-workbench.spec')
-rw-r--r--mysql-workbench.spec23
1 files changed, 17 insertions, 6 deletions
diff --git a/mysql-workbench.spec b/mysql-workbench.spec
index 3c1960a..4cf5f2c 100644
--- a/mysql-workbench.spec
+++ b/mysql-workbench.spec
@@ -11,15 +11,18 @@
Summary: A MySQL visual database modeling, administration and querying tool
Name: mysql-workbench
Version: 5.2.41
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Applications/Databases
License: GPLv2 with exceptions
URL: http://wb.mysql.com
-# Upstream has a mirror redirector for downloads, so the URL is hard to
-# represent statically. You can get the tarball by following a link from
-# http://dev.mysql.com/downloads/workbench/
-Source: http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLGUITools/%{name}-%{tarversion}.tar.gz
+
+# The upstream tarball includes non-free documentation that we cannot ship.
+# To remove the non-free documentation, run this script after downloading
+# the tarball into the current directory:
+# ./stripdocs.sh $VERSION
+Source0: %{name}-nodocs-%{version}.tar.xz
+Source1: stripdocs.sh
# don't build extension, use system one
# !!! This patch use versioned soname (libmysqlcppconn.so.6) !!!
@@ -31,6 +34,9 @@ Patch4: %{name}-5.2.41-antlr.patch
# http://bugs.mysql.com/63705
Patch5: %{name}-5.2.41-glib.patch
+# don't use bundled documentation, redirect to online doc
+Patch9: %{name}-5.2.41-nodocs.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pcre-devel >= 3.9
BuildRequires: libglade2-devel >= 2.0.0
@@ -81,7 +87,7 @@ Requires: mysql-utilities
# requires mysql client pkg (for mysqldump and mysql cmdline client)
Requires: mysql%{?_isa}
Requires: gnome-keyring%{?_isa}
-# For migration wizard (2.1.18 expected, but not yet available)
+# For migration wizard (2.1.18 prefered, but not yet available)
# see https://bugzilla.redhat.com/847440
Requires: pyodbc%{?_isa}
%if 0%{?cppconnver:1}
@@ -133,6 +139,7 @@ rm -rf ext/antlr-runtime
%endif
%patch5 -p1 -b .glib
+%patch9 -p1 -b .nodocs
touch -r COPYING .timestamp4rpm
sed -i -e 's/\r//g' COPYING
@@ -222,6 +229,10 @@ fi
%changelog
+* Sat Aug 11 2012 Remi Collet <remi@fedoraproject.org> 5.2.41-2
+- remove bundled documentation, redirect to online
+ This documentation is NOT distributed under a GPL license
+
* Sun Aug 05 2012 Remi Collet <remi@fedoraproject.org> 5.2.41-1
- update to 5.2.41 Community (OSS) Edition (GPL)
http://dev.mysql.com/doc/workbench/en/wb-news-5-2-41.html