3 # _with_tests - perform "make test" (hangs with XML::Twig or HTML::TableExtract installed)
4 %include /usr/lib/rpm/macros.perl
6 Summary: AnyData -- easy access to data in many formats
7 Summary(pl): AnyData -- ³atwy dostêp do danych w ró¿nych formatach
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
14 BuildRequires: perl-devel >= 5.6
15 BuildRequires: rpm-perlprov >= 4.1-13
16 %if %{?_with_test:1}%{!?_with_test:0}
17 BuildRequires: perl(Data::Dumper)
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _noautoreq 'perl(XML::Twig)' 'perl(HTML::TableExtract)'
25 The AnyData modules provide simple and uniform access to data from
26 many sources -- perl arrays, local files, remote files retrievable via
27 http or ftp -- and in many formats including flat files (CSV, Fixed
28 Length, Tab Delimited, etc), standard format files (Web Logs, Passwd
29 files, etc.), structured files (XML, HTML Tables) and binary files
30 with parseable headers (mp3s, jpgs, pngs, etc).
33 Modu³y AnyData daj± prosty i ujednolicony dostêp do danych z wielu
34 ¼róde³ - tablic perlowych, plików lokalnych, plików zdalnych
35 dostêpnych po http lub ftp - oraz w wielu formatach, w tym p³askich
36 plikach (CSV, z polami o sta³ej d³ugo¶ci, ograniczonych tabami itp.),
37 plikach o standardowych formatach (logi WWW, pliki passwd), plikach
38 strukturalnych (tabele XML, HTML) oraz plikach binarnych z
39 parsowalnymi nag³ówkami (mp3, jpg, png itp.).
42 %setup -q -n %{pdir}-%{version}
45 %{__perl} Makefile.PL \
48 %{?_with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/*.pm
61 %{perl_vendorlib}/%{pdir}