3 %bcond_without tests # do not perform "make test"
7 Summary: Text::CSV - comma-separated values manipulator (using XS or PurePerl)
8 Summary(pl.UTF-8): Text::CSV - obrabianie wartości oddzielonych przecinkami
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: f476205648694a64684be2ab29e44e19
17 URL: http://search.cpan.org/dist/Text-CSV/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 Suggests: perl-Text-CSV_XS
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Text::CSV provides facilities for the composition and decomposition of
26 comma-separated values using Text::CSV_XS or its pure Perl version.
28 %description -l pl.UTF-8
29 Text::CSV ułatwia składanie i rozkład wartości oddzielanych
30 przecinkami przy użyciu Text::CSV_XS lub wersji w czystym Perlu.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Text/CSV
46 %{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Text/CSV.pm
56 %{perl_vendorlib}/Text/CSV_PP.pm
57 %{perl_vendorlib}/Text/CSV
58 %{_mandir}/man3/Text::CSV*.3pm*