File pg_comparator.spec of Package pg_comparator

#
# spec file for package pg_comparator
#
# Copyright (c) 2012 Aldemir Akpinar <aldemir.akpinar@airties.com>
#
# 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:           pg_comparator
Version:        1.8.1
Release:        1%{?dist}
Summary:        A tool to compare and sync tables in different locations

License:        BSD-3-Clause
Url:            http://pgfoundry.org/projects/pg-comparator/
Group:          Development/Libraries
Source:         http://pgfoundry.org/frs/download.php/3239/pg_comparator-%{version}.tgz

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  postgresql-devel
Requires:       perl
Requires:       perl-DBD-Pg
Requires:       perl-DBD-mysql
Requires:       postgresql

%description
PgComparator is a tool to compare possibly very big tables in different locations and report differences, with a network and time-efficient approach.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
%makeinstall

%files
%defattr(-, root, root, -)
%{_bindir}/pg_comparator
%{_libdir}/postgresql/pgc_casts.so
%{_libdir}/postgresql/pgc_checksum.so
%defattr(644, root, root, 755)
%dir %{_libdir}/postgresql
%dir %{_docdir}/postgresql
%dir %{_docdir}/postgresql/contrib
%dir %{_datadir}/postgresql
%dir %{_datadir}/postgresql/contrib
%doc LICENSE

%{_docdir}/postgresql/contrib/README.checksum
%{_docdir}/postgresql/contrib/README.pg_comparator
%{_docdir}/postgresql/contrib/README.xor_aggregate
%{_datadir}/postgresql/contrib/pgc_casts.sql
%{_datadir}/postgresql/contrib/pgc_checksum.sql
%{_datadir}/postgresql/contrib/xor_aggregate.sql


%changelog
openSUSE Build Service is sponsored by