]>
Commit | Line | Data |
---|---|---|
aa8533a5 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
d2b94011 | 5 | %include /usr/lib/rpm/macros.perl |
cf864390 | 6 | %define pdir Text |
7 | %define pnam CSV_XS | |
5219949b | 8 | Summary: Text::CSV_XS perl module |
ada58dc9 | 9 | Summary(pl.UTF-8): Moduł perla Text::CSV_XS |
21d1bdec | 10 | Name: perl-Text-CSV_XS |
7b191b1d | 11 | Version: 0.23 |
5ad1cfc2 | 12 | Release: 5 |
aa8533a5 | 13 | # same as perl |
14 | License: GPL v1+ oe Artistic | |
21d1bdec | 15 | Group: Development/Languages/Perl |
26379ff6 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
0630a02a | 17 | # Source0-md5: 936eca163a09e92353565ad37ee7a4fa |
231e2d67 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
8d73273d | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
68039bff | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21d1bdec | 21 | |
22 | %description | |
5219949b | 23 | Text::CSV_XS - comma-separated values manipulation routines. |
21d1bdec | 24 | |
ada58dc9 JR |
25 | %description -l pl.UTF-8 |
26 | Text::CSV_XS umożliwia manipulowanie wartościami rozdzielonymi | |
08d48640 | 27 | przecinkiem. |
21d1bdec | 28 | |
29 | %prep | |
d2b94011 | 30 | %setup -q -n %{pdir}-%{pnam}-%{version} |
21d1bdec | 31 | |
32 | %build | |
231e2d67 | 33 | %{__perl} Makefile.PL \ |
0e1590e9 | 34 | INSTALLDIRS=vendor |
aa8533a5 | 35 | %{__make} \ |
36 | OPTIMIZE="%{rpmcflags}" | |
37 | ||
38 | %{?with_tests:%{__make} test} | |
21d1bdec | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
21d1bdec | 42 | |
aa8533a5 | 43 | %{__make} \ |
44 | install DESTDIR=$RPM_BUILD_ROOT | |
21d1bdec | 45 | |
21d1bdec | 46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
54caec25 | 51 | %doc ChangeLog README |
231e2d67 | 52 | %{perl_vendorarch}/Text/CSV_XS.pm |
53 | %dir %{perl_vendorarch}/auto/Text/CSV_XS | |
54 | %{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.bs | |
55 | %attr(755,root,root) %{perl_vendorarch}/auto/Text/CSV_XS/CSV_XS.so | |
21d1bdec | 56 | %{_mandir}/man3/* |