File perl-Data-ShowTable.spec of Package perl-Data-ShowTable

#
# spec file for package perl-Data-ShowTable
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#

# norootforbuild


Name:           perl-Data-ShowTable
%define cpan_name Data-ShowTable
Version:        3.3
Release:        715
Provides:       Data-ShowTable
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        GPLv2+
Summary:        A Perl Module that allows Pretty-Printing of Data Arrays
Url:            http://search.cpan.org/perldoc?Data::ShowTable
Source:         %{cpan_name}-%{version}.tar.bz2
Patch:          %{cpan_name}-%{version}.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros

%description
ShowTable.pm is a Perl 5 module which defines subroutines to print
arrays of data in nicely formatted listings. It uses one of four
possible formats: simple table, boxed table, list style, and
HTML-formatting.



Authors:
--------
    Alan K. Stebbens <aks@sgi.com>

%prep
%setup -n %{cpan_name}-%{version}
%patch

%build
perl Makefile.PL
make

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc Changes Copyright README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Data
%{perl_vendorarch}/auto/Data
%{_bindir}/showtable

%changelog
openSUSE Build Service is sponsored by