]> git.pld-linux.org Git - packages/perl-Text-CSV_XS.git/blob - perl-Text-CSV_XS.spec
- updated to 1.51
[packages/perl-Text-CSV_XS.git] / perl-Text-CSV_XS.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    Text
6 %define         pnam    CSV_XS
7 Summary:        Text::CSV_XS - comma-separated values manipulation routines
8 Summary(pl.UTF-8):      Text::CSV_XS - operacje na wartościach oddzielonych przecinkami
9 Name:           perl-Text-CSV_XS
10 Version:        1.51
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tgz
16 # Source0-md5:  da151be3259b7d95e1a3573cab26dae2
17 URL:            https://metacpan.org/dist/Text-CSV_XS
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Text::CSV_XS Perl module provides facilities for the composition and
25 decomposition of comma-separated values. An instance of the
26 Text::CSV_XS class can combine fields into a CSV string and parse a
27 CSV string into fields.
28
29 %description -l pl.UTF-8
30 Moduł Perla Text::CSV_XS udostępnia metody do składania i rozkładania
31 wartości oddzielonych przecinkami. Instancja klasy Text::CSV_CS
32 potrafi łączyć pola w łańcuch CSV oraz rozkładać łańcuch CSV na pola.
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make} \
41         CC="%{__cc}" \
42         OPTIMIZE="%{rpmcflags}"
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog README
58 %{perl_vendorarch}/Text/CSV_XS.pm
59 %dir %{perl_vendorarch}/auto/Text/CSV_XS
60 %attr(755,root,root) %{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.so
61 %{_mandir}/man3/Text::CSV_XS.3pm*
This page took 0.133776 seconds and 4 git commands to generate.