%define pvendorlib %{perl_vendorlib} Name: mysql-sandbox Version: 3.0.42 Release: 1%{?dist} License: GPLv2 Group: Development/Libraries Summary: Quick painless install of side by side MySQL server in isolation URL: https://launchpad.net/mysql-sandbox BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Source0: http://launchpad.net/mysql-sandbox/mysql-sandbox-3/mysql-sandbox-3/+download/MySQL-Sandbox-%{version}.tar.gz BuildArch: noarch Patch0: MySQL-Sandbox-3.0.17_perl_mysql_required.patch Patch1: launchpad_bug_606206.patch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) %description Quick painless install of side by side MySQL server in isolation. MySQL Sandbox is a tool for installing one or more MySQL servers in isolation, without affecting other servers. %prep %setup -q -n MySQL-Sandbox-%{version} %patch0 -p1 %patch1 -p1 %build # avoid CPAN entirely # http://fedoraproject.org/wiki/Packaging/Perl#Useful_tips PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install rm -rf %{buildroot} make install PERL_INSTALL_ROOT=%{buildroot} #This directory only contains an unneeded .packlist file rm -rf %{buildroot}%{perl_vendorarch}/auto/MySQL/Sandbox chmod 0755 %{buildroot}%{_bindir}/* chmod 0644 %{buildroot}%{pvendorlib}/MySQL/Sandbox/* chmod 0644 %{buildroot}%{pvendorlib}/MySQL/Sandbox.pm %clean rm -rf %{buildroot} %files %{_bindir}/low_level_make_sandbox %{_bindir}/make_multiple_custom_sandbox %{_bindir}/make_multiple_sandbox %{_bindir}/make_replication_sandbox %{_bindir}/make_sandbox %{_bindir}/make_sandbox_from_installed %{_bindir}/make_sandbox_from_source %{_bindir}/msandbox %{_bindir}/msb %{_bindir}/deploy_to_remote_sandboxes.sh %{_bindir}/sbtool %{_bindir}/test_sandbox %{pvendorlib}/MySQL/Sandbox/Recipes.pm %{pvendorlib}/MySQL/Sandbox/Scripts.pm %{pvendorlib}/MySQL/Sandbox.pm %{_mandir}/man3/MySQL::Sandbox.3pm.gz %{_mandir}/man3/MySQL::Sandbox::Recipes.3pm.gz %{_mandir}/man3/MySQL::Sandbox::Scripts.3pm.gz %changelog * Mon Oct 21 2013 Ben Harper - 3.0.42-1 - updated to lastest version - binary name changed upstream, no need to rename - updated patch0 * Mon May 16 2011 Jeffrey Ness - 3.0.17-4 - To avoid conflict with lrzsz's binary we renamed sb to mysql-sandbox https://answers.launchpad.net/mysql-sandbox/+question/151299 * Tue Mar 15 2011 Jeffrey Ness - 3.0.17-3 - Added: Patch1: launchpad_bug_606206.patch https://bugs.launchpad.net/mysql-sandbox/+bug/606206 * Tue Mar 15 2011 Jeffrey Ness - 3.0.17-2 - Added: Patch0: MySQL-Sandbox-3.0.17_perl_mysql_required.patch This resolves spurious dependency on perl(mysql) * Mon Mar 07 2011 Jeffrey Ness - 3.0.17-1 - Initial Build - Not every binry/script has a man page, I'm checking with upstream: https://answers.launchpad.net/mysql-sandbox/+question/148179