]> git.pld-linux.org Git - packages/perl-Text-CSV_XS.git/blobdiff - perl-Text-CSV_XS.spec
- updated to 1.51
[packages/perl-Text-CSV_XS.git] / perl-Text-CSV_XS.spec
index 39b75ce59403479e02314ab995e70cf50c1723f0..33cbcdf34d2a488ebbca9523660641ca9b6f3682 100644 (file)
@@ -1,37 +1,53 @@
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    Text
-%define        pnam    CSV_XS
-Summary:       Text::CSV_XS perl module
-Summary(pl):   Modu³ perla Text::CSV_XS
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+#
+%define                pdir    Text
+%define                pnam    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.23
-Release:       4
-License:       GPL
+Version:       1.51
+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:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tgz
+# 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: perl >= 5.6
+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
-Text::CSV_XS umo¿liwia manipulowanie warto¶ciami rozdzielonymi
-przecinkiem.
+%description -l pl.UTF-8
+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}
 
 %build
 %{__perl} Makefile.PL \
-       INSTALLDIRS=vendor 
-%{__make} OPTIMIZE="%{rpmcflags}"
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -41,6 +57,5 @@ 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*
This page took 0.875572 seconds and 4 git commands to generate.