A new user interface for you! Read more...

File perl-MySQL-Diff.spec of Package perl-MySQL-Diff

#
# spec file for package perl-MySQL-Diff
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-MySQL-Diff
Version:        0.50
Release:        0
%define cpan_name MySQL-Diff
Summary:        Generates a database upgrade instruction set
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/MySQL-Diff/
Source0:        http://www.cpan.org/authors/id/A/AS/ASPIERS/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  mariadb	mariadb-client
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(Module::Build)
Requires:       perl(File::Slurp)
%{perl_requires}

%description
mysqldiff is a Perl script front-end to the CPAN module MySQL::Diff which
compares the data structures (i.e. schema / table definitions) of two
MySQL databases, and returns the differences as a sequence of MySQL
commands suitable for piping into mysql which will transform the structure
of the first database to be identical to that of the second.

Database structures can be compared whether they are files containing 
table definitions or existing databases, local or remote.

The program makes no attempt to compare any of the data which may be 
stored in the databases. It is purely for comparing the table definitions. 

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644

%build
perl Makefile.PL installdirs=vendor
make 

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist


%files -f %{name}.files
%doc BUGS Changes README

%changelog