3 %bcond_without tests # don't perform "make test"
6 Summary: AnyData - easy access to data in many formats
7 Summary(pl.UTF-8): AnyData - łatwy dostęp do danych w różnych formatach
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
15 # Source0-md5: ff9fb4c7d8b99d63a773e66f0ccba788
16 URL: http://search.cpan.org/dist/AnyData/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-CGI
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _noautoreq 'perl(XML::Twig)' 'perl(HTML::TableExtract)'
28 The AnyData modules provide simple and uniform access to data from
29 many sources - perl arrays, local files, remote files retrievable via
30 HTTP or FTP - and in many formats including flat files (CSV, Fixed
31 Length, Tab Delimited, etc), standard format files (Web Logs, Passwd
32 files, etc.), structured files (XML, HTML Tables) and binary files
33 with parseable headers (mp3s, jpgs, pngs, etc).
35 %description -l pl.UTF-8
36 Moduły AnyData dają prosty i ujednolicony dostęp do danych z wielu
37 źródeł - tablic perlowych, plików lokalnych, plików zdalnych
38 dostępnych po HTTP lub FTP - oraz w wielu formatach, w tym płaskich
39 plikach (CSV, z polami o stałej długości, ograniczonych tabami itp.),
40 plikach o standardowych formatach (logi WWW, pliki passwd), plikach
41 strukturalnych (tabele XML, HTML) oraz plikach binarnych z
42 parsowalnymi nagłówkami (mp3, jpg, png itp.).
45 %setup -q -n %{pdir}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %{perl_vendorlib}/*.pm
66 %dir %{perl_vendorlib}/AnyData
67 %dir %{perl_vendorlib}/AnyData/Format
68 %{perl_vendorlib}/AnyData/Format/*.pm
69 %dir %{perl_vendorlib}/AnyData/Storage
70 %{perl_vendorlib}/AnyData/Storage/*.pm