[packages/perl-Term-Table] - initial
hawk
hawk at pld-linux.org
Sat Mar 10 19:41:32 CET 2018
commit f176ddfbf6933ac82241e9ee339e3c576786726e
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sat Mar 10 18:41:14 2018 +0000
- initial
perl-Term-Table.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
---
diff --git a/perl-Term-Table.spec b/perl-Term-Table.spec
new file mode 100644
index 0000000..a1821ca
--- /dev/null
+++ b/perl-Term-Table.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define pdir Term
+%define pnam Table
+%include /usr/lib/rpm/macros.perl
+Summary: Term::Table - Format a header and rows into a table
+Name: perl-Term-Table
+Version: 0.012
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: a38cad6182e2c4864752746f1035abbd
+URL: http://search.cpan.org/dist/Term-Table/
+BuildRequires: perl-devel
+BuildRequires: rpm-perlprov
+%if %{with tests}
+BuildRequires: perl-Test-Simple >= 1.302097
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Format a header and rows into a table. This is used by some failing
+tests to provide diagnostics about what has gone wrong. This module is
+able to generic format rows of data into tables
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorlib}/Term/Table.pm
+%{perl_vendorlib}/Term/Table
+%{_mandir}/man3/Term::Table*.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Term-Table.git/commitdiff/f176ddfbf6933ac82241e9ee339e3c576786726e
More information about the pld-cvs-commit
mailing list