2007-01-15 23:30:22 +00:00
|
|
|
#
|
2013-11-26 08:08:09 +00:00
|
|
|
# spec file for package perl-Data-ShowTable
|
2007-01-15 23:30:22 +00:00
|
|
|
#
|
2014-02-09 14:31:54 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:22 +00:00
|
|
|
#
|
2008-10-23 02:42:51 +00:00
|
|
|
# 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/
|
2007-01-15 23:30:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-10-23 02:42:51 +00:00
|
|
|
Name: perl-Data-ShowTable
|
2014-02-09 14:31:54 +00:00
|
|
|
Version: 4.6
|
2013-11-26 08:08:09 +00:00
|
|
|
Release: 0
|
2011-02-02 13:50:19 +00:00
|
|
|
%define cpan_name Data-ShowTable
|
2013-11-26 08:08:09 +00:00
|
|
|
Summary: routines to display tabular data in several formats.
|
|
|
|
License: GPL-2.0+
|
2008-10-23 02:42:51 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-11-26 08:08:09 +00:00
|
|
|
Url: http://search.cpan.org/dist/Data-ShowTable/
|
|
|
|
Source: http://www.cpan.org/authors/id/A/AK/AKSTE/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2008-10-23 02:42:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 10:53:15 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:01:00 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-11-26 08:08:09 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:22 +00:00
|
|
|
|
|
|
|
%description
|
2013-11-26 08:08:09 +00:00
|
|
|
The *ShowTable* module provides subroutines to display tabular data,
|
|
|
|
typially from a database, in nicely formatted columns, in several formats.
|
|
|
|
Its arguments can either be given in a fixed order, or, as a single,
|
|
|
|
anonymous hash-array.
|
|
|
|
|
|
|
|
The output format for any one invocation can be one of four possible
|
|
|
|
styles:
|
|
|
|
|
|
|
|
* Box
|
|
|
|
|
|
|
|
A tabular format, with the column titles and the entire table surrounded
|
|
|
|
by a "box" of "'+'", "'-'", and "'|'" characters. See the "ShowBoxTable"
|
|
|
|
manpage for details.
|
|
|
|
|
|
|
|
* Table
|
2007-01-15 23:30:22 +00:00
|
|
|
|
2013-11-26 08:08:09 +00:00
|
|
|
A simple tabular format, with columns automatically aligned, with column
|
|
|
|
titles. See the "ShowSimpleTable" manpage.
|
2007-01-15 23:30:22 +00:00
|
|
|
|
2013-11-26 08:08:09 +00:00
|
|
|
* List
|
2007-01-15 23:30:22 +00:00
|
|
|
|
2013-11-26 08:08:09 +00:00
|
|
|
A _list_ style, where columns of data are listed as a _name_:_value_
|
|
|
|
pair, one pair per line, with rows being one or more column values,
|
|
|
|
separated by an empty line. See the "ShowListTable" manpage.
|
|
|
|
|
|
|
|
* HTML
|
|
|
|
|
|
|
|
The data is output as an HTML _TABLE_, suitable for display through a
|
|
|
|
_Web_-client. See the "ShowHTMLTable" manpage. Input can either be plain
|
|
|
|
ASCII text, or text with embedded HTML elements, depending upon an
|
|
|
|
argument or global parameter.
|
|
|
|
|
|
|
|
The subroutines which perform these displays are listed below.
|
2007-01-15 23:30:22 +00:00
|
|
|
|
|
|
|
%prep
|
2013-11-26 08:08:09 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
|
|
|
|
rm -f pm_to_blib
|
2007-01-15 23:30:22 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-26 08:08:09 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-01-16 00:50:31 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-26 08:08:09 +00:00
|
|
|
%{__make} test
|
2007-01-15 23:30:22 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-26 08:08:09 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:22 +00:00
|
|
|
%perl_process_packlist
|
2013-11-26 08:08:09 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:22 +00:00
|
|
|
|
2013-11-26 08:08:09 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc bump-version Changes Copyright gen-html gen-tests GNU-LICENSE MYMETA.json MYMETA.yml README showtable testfile testfile.lst testfile.tabs test.pl.off
|
2007-01-15 23:30:22 +00:00
|
|
|
|
2008-10-23 02:42:51 +00:00
|
|
|
%changelog
|