]> git.pld-linux.org Git - packages/perl-Text-CSV_XS.git/blobdiff - perl-Text-CSV_XS.spec
- x32 rebuild
[packages/perl-Text-CSV_XS.git] / perl-Text-CSV_XS.spec
index 84e55d40d807b8e2bc00b8b0c856a708cd82b43f..2609f19e52426f78bb0ddb4f1f57a9229fde35e7 100644 (file)
@@ -1,59 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       Text-CSV_XS perl module
-Summary(pl):   Modu³ perla Text-CSV_XS
+%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.18
-Release:       3
-Copyright:     GPL
+Version:       1.14
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-CSV_XS-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-15
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
-BuildRoot:     /tmp/%{name}-%{version}-root
+Source0:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tgz
+# Source0-md5: d4a198b0c0252392d378db7b323695d7
+URL:           http://search.cpan.org/dist/Text-CSV_XS/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+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 Text-CSV_XS-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Text/CSV_XS/*.so
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Text/CSV_XS
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        ChangeLog README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {ChangeLog,README}.gz
-
-%{perl_sitearch}/Text/CSV_XS.pm
-
-%dir %{perl_sitearch}/auto/Text/CSV_XS
-%{perl_sitearch}/auto/Text/CSV_XS/.packlist
-%{perl_sitearch}/auto/Text/CSV_XS/CSV_XS.bs
-%attr(755,root,root) %{perl_sitearch}/auto/Text/CSV_XS/CSV_XS.so
-
-%{_mandir}/man3/*
+%doc ChangeLog README
+%{perl_vendorarch}/Text/CSV_XS.pm
+%dir %{perl_vendorarch}/auto/Text/CSV_XS
+%attr(755,root,root) %{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.so
+%{_mandir}/man3/Text::CSV_XS.3pm*
This page took 0.063816 seconds and 4 git commands to generate.