forked from pool/perl-Text-TabularDisplay
Accepting request 177502 from home:coolo:update-perl
- updated to 1.34, no changelog OBS-URL: https://build.opensuse.org/request/show/177502 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-TabularDisplay?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
c5f2d64bbe
commit
ae848facb0
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a855ce25cc02dabd5e0ffac6f7d13e9cc45bac1e107aa2eaf063da1713fd0805
|
|
||||||
size 18977
|
|
||||||
3
Text-TabularDisplay-1.34.tar.gz
Normal file
3
Text-TabularDisplay-1.34.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ea7b148bf9603aac4beec7573738dc53bb7cd9cc4c360cb61bc5c3df52663270
|
||||||
|
size 16950
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 4 15:20:25 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.34, no changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 30 19:20:54 UTC 2010 - coolo@novell.com
|
Tue Nov 30 19:20:54 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Text-TabularDisplay
|
# spec file for package perl-Text-TabularDisplay
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,30 +15,55 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Text-TabularDisplay
|
Name: perl-Text-TabularDisplay
|
||||||
|
Version: 1.34
|
||||||
|
Release: 0
|
||||||
%define cpan_name Text-TabularDisplay
|
%define cpan_name Text-TabularDisplay
|
||||||
Summary: Display text in formatted table output
|
Summary: Display text in formatted table output
|
||||||
License: GPL-2.0
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Version: 1.28
|
|
||||||
Release: 0
|
|
||||||
Url: http://search.cpan.org/dist/Text-TabularDisplay/
|
Url: http://search.cpan.org/dist/Text-TabularDisplay/
|
||||||
Source: http://www.cpan.org/authors/id/D/DA/DARREN/Text-TabularDisplay-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/D/DA/DARREN/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(IO::File)
|
#BuildRequires: perl(DBI)
|
||||||
Requires: perl(IO::File)
|
#BuildRequires: perl(MySQL::Config)
|
||||||
|
#BuildRequires: perl(Text::TabularDisplay)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Text::TabularDisplay simplifies displaying textual data in a table. The
|
Text::TabularDisplay simplifies displaying textual data in a table. The
|
||||||
output is identical to the columnar display of query results in the mysql
|
output is identical to the columnar display of query results in the mysql
|
||||||
text monitor. For example, this data:
|
text monitor. For example, this data:
|
||||||
|
|
||||||
|
1, "Tom Jones", "(666) 555-1212"
|
||||||
|
2, "Barnaby Jones", "(666) 555-1213"
|
||||||
|
3, "Bridget Jones", "(666) 555-1214"
|
||||||
|
|
||||||
|
Used like so:
|
||||||
|
|
||||||
|
my $t = Text::TabularDisplay->new(qw(id name phone));
|
||||||
|
$t->add(1, "Tom Jones", "(666) 555-1212");
|
||||||
|
$t->add(2, "Barnaby Jones", "(666) 555-1213");
|
||||||
|
$t->add(3, "Bridget Jones", "(666) 555-1214");
|
||||||
|
print $t->render;
|
||||||
|
|
||||||
|
Produces:
|
||||||
|
|
||||||
|
+----+---------------+----------------+
|
||||||
|
| id | name | phone |
|
||||||
|
+----+---------------+----------------+
|
||||||
|
| 1 | Tom Jones | (666) 555-1212 |
|
||||||
|
| 2 | Barnaby Jones | (666) 555-1213 |
|
||||||
|
| 3 | Bridget Jones | (666) 555-1214 |
|
||||||
|
+----+---------------+----------------+
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
@@ -49,18 +74,11 @@ text monitor. For example, this data:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
# do not perl_process_packlist (noarch)
|
%perl_process_packlist
|
||||||
# remove .packlist file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
||||||
# remove perllocal.pod file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc COPYING examples README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user