#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
-%include /usr/lib/rpm/macros.perl
%define pdir Text
%define pnam CSV_XS
-Summary: Text::CSV_XS perl module
-Summary(pl.UTF-8): Moduł perla Text::CSV_XS
+Summary: Text::CSV_XS - comma-separated values manipulation routines
+Summary(pl.UTF-8): Text::CSV_XS - operacje na wartościach oddzielonych przecinkami
Name: perl-Text-CSV_XS
-Version: 0.32
+Version: 1.51
Release: 1
# same as perl
-License: GPL v1+ oe Artistic
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tgz
-# Source0-md5: ad96b60f2dd1fdb97763b4db8e08209e
-URL: http://search.cpan.org/dist/Text-CSV_XS/
+# Source0-md5: da151be3259b7d95e1a3573cab26dae2
+URL: https://metacpan.org/dist/Text-CSV_XS
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Text::CSV_XS - comma-separated values manipulation routines.
+Text::CSV_XS Perl module provides facilities for the composition and
+decomposition of comma-separated values. An instance of the
+Text::CSV_XS class can combine fields into a CSV string and parse a
+CSV string into fields.
%description -l pl.UTF-8
-Text::CSV_XS umożliwia manipulowanie wartościami rozdzielonymi
-przecinkiem.
+Moduł Perla Text::CSV_XS udostępnia metody do składania i rozkładania
+wartości oddzielonych przecinkami. Instancja klasy Text::CSV_CS
+potrafi łączyć pola w łańcuch CSV oraz rozkładać łańcuch CSV na pola.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} \
- CC="%{__cc}" \
- install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%doc ChangeLog README
%{perl_vendorarch}/Text/CSV_XS.pm
%dir %{perl_vendorarch}/auto/Text/CSV_XS
-%{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.so
-%{_mandir}/man3/*
+%{_mandir}/man3/Text::CSV_XS.3pm*