]> git.pld-linux.org Git - packages/perl-Text-CSV.git/blob - perl-Text-CSV.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-CSV.git] / perl-Text-CSV.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Text
6 %define pnam    CSV
7 Summary:        Text::CSV - comma-separated values manipulator (using XS or PurePerl)
8 Summary(pl.UTF-8):      Text::CSV - obrabianie wartości oddzielonych przecinkami
9 Name:           perl-Text-CSV
10 Version:        1.32
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}.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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Text::CSV provides facilities for the composition and decomposition of
26 comma-separated values using Text::CSV_XS or its pure Perl version.
27
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.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Text/CSV
45
46 %{__make} pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes
55 %{perl_vendorlib}/Text/CSV.pm
56 %{perl_vendorlib}/Text/CSV_PP.pm
57 %{perl_vendorlib}/Text/CSV
58 %{_mandir}/man3/Text::CSV*.3pm*
This page took 0.114495 seconds and 4 git commands to generate.