packages: mysql-utilities/mu-man.patch (NEW), mysql-utilities/mysql-utiliti...

glen glen at pld-linux.org
Mon May 14 08:58:02 CEST 2012


Author: glen                         Date: Mon May 14 06:58:02 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, used by mysql-workbench optionally

---- Files affected:
packages/mysql-utilities:
   mu-man.patch (NONE -> 1.1)  (NEW), mysql-utilities.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mysql-utilities/mu-man.patch
diff -u /dev/null packages/mysql-utilities/mu-man.patch:1.1
--- /dev/null	Mon May 14 08:58:02 2012
+++ packages/mysql-utilities/mu-man.patch	Mon May 14 08:57:56 2012
@@ -0,0 +1,11 @@
+--- mysql-utilities/setup.py.orig	2011-05-28 08:32:01.667811328 +0200
++++ mysql-utilities/setup.py	2011-05-28 08:32:30.464887518 +0200
+@@ -110,7 +110,7 @@ class install_man(distutils.core.Command
+         self.set_undefined_options('build_sphinx',
+                                    ('build_dir', 'build_dir'),
+                                    )
+-        self.target_dir = os.path.join(self.install_base, 'man')
++        self.target_dir = os.path.join(self.install_base, 'share/man')
+         self.source_dir = os.path.join(self.build_dir, 'man')
+ 
+     def run(self):

================================================================
Index: packages/mysql-utilities/mysql-utilities.spec
diff -u /dev/null packages/mysql-utilities/mysql-utilities.spec:1.1
--- /dev/null	Mon May 14 08:58:02 2012
+++ packages/mysql-utilities/mysql-utilities.spec	Mon May 14 08:57:56 2012
@@ -0,0 +1,106 @@
+# $Revision$, $Date$
+# NOTE: Not yet published (currently bundled with mysql-workbench),
+Summary:	Scripts for managing and administering MySQL servers
+Name:		mysql-utilities
+Version:	1.0.5
+Release:	1
+License:	GPL v2
+Group:		Applications/Databases
+Requires:	python-mysql-connector
+Source0:	ftp://ftp.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/mysql-workbench-gpl-5.2.39-src.tar.gz
+# Source0-md5:	35472b00d48a82d1d13954aef4f916fa
+Patch0:		mu-man.patch
+URL:		https://code.launchpad.net/mysql-utilities
+BuildRequires:	python-Sphinx >= 1.0
+BuildRequires:	python-devel >= 1:2.4
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.566
+Requires:	python-mysql-connector
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MySQL Utilities contain a collection of scripts useful for managing
+and administering MySQL servers.
+
+%prep
+%setup -qc
+mv mysql-workbench-gpl-*-src/ext/%{name}/* .
+%patch0 -p1
+
+%build
+v=$(head -n1 CHANGES.txt | awk '{print $2}')
+test "$v" = "%{version}"
+%{__python} setup.py build_man
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+%{__python} setup.py install \
+	--skip-profile \
+	--root $RPM_BUILD_ROOT
+
+# packaged by python-mysql-connector
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/mysql/__init__.py*
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%attr(755,root,root) %{_bindir}/mysqldbcompare
+%attr(755,root,root) %{_bindir}/mysqldbcopy
+%attr(755,root,root) %{_bindir}/mysqldbexport
+%attr(755,root,root) %{_bindir}/mysqldbimport
+%attr(755,root,root) %{_bindir}/mysqldiff
+%attr(755,root,root) %{_bindir}/mysqldiskusage
+%attr(755,root,root) %{_bindir}/mysqlfailover
+%attr(755,root,root) %{_bindir}/mysqlindexcheck
+%attr(755,root,root) %{_bindir}/mysqlmetagrep
+%attr(755,root,root) %{_bindir}/mysqlprocgrep
+%attr(755,root,root) %{_bindir}/mysqlreplicate
+%attr(755,root,root) %{_bindir}/mysqlrpladmin
+%attr(755,root,root) %{_bindir}/mysqlrplcheck
+%attr(755,root,root) %{_bindir}/mysqlrplshow
+%attr(755,root,root) %{_bindir}/mysqlserverclone
+%attr(755,root,root) %{_bindir}/mysqlserverinfo
+%attr(755,root,root) %{_bindir}/mysqluserclone
+%{_mandir}/man1/mut.1*
+%{_mandir}/man1/mysqldbcompare.1*
+%{_mandir}/man1/mysqldbcopy.1*
+%{_mandir}/man1/mysqldbexport.1*
+%{_mandir}/man1/mysqldbimport.1*
+%{_mandir}/man1/mysqldiff.1*
+%{_mandir}/man1/mysqldiskusage.1*
+%{_mandir}/man1/mysqlindexcheck.1*
+%{_mandir}/man1/mysqlmetagrep.1*
+%{_mandir}/man1/mysqlprocgrep.1*
+%{_mandir}/man1/mysqlreplicate.1*
+%{_mandir}/man1/mysqlrplcheck.1*
+%{_mandir}/man1/mysqlrplshow.1*
+%{_mandir}/man1/mysqlserverclone.1*
+%{_mandir}/man1/mysqlserverinfo.1*
+%{_mandir}/man1/mysqluserclone.1*
+
+%dir %{py_sitescriptdir}/mysql/utilities
+%{py_sitescriptdir}/mysql/utilities/*.py[co]
+%dir %{py_sitescriptdir}/mysql/utilities/command
+%{py_sitescriptdir}/mysql/utilities/command/*.py[co]
+%dir %{py_sitescriptdir}/mysql/utilities/common
+%{py_sitescriptdir}/mysql/utilities/common/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/mysql_utilities-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/05/14 06:57:56  glen
+- new, used by mysql-workbench optionally
================================================================


More information about the pld-cvs-commit mailing list