3 # _without_tests - do not perform "make test"
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: ftp://ftp.cpan.org/pub/CPAN/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
14 BuildRequires: perl >= 5.6
15 BuildRequires: rpm-perlprov >= 3.0.3-26
16 %if %{?_without_test:0}%{!?_without_test:1}
17 BuildRequires: perl(Data::Dumper)
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The AnyData modules provide simple and uniform access to data from many
24 sources -- perl arrays, local files, remote files retrievable via http
25 or ftp -- and in many formats including flat files (CSV, Fixed Length,
26 Tab Delimited, etc), standard format files (Web Logs, Passwd files,
27 etc.), structured files (XML, HTML Tables) and binary files with
28 parseable headers (mp3s, jpgs, pngs, etc).
34 %setup -q -n %{pdir}-%{version}
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} install DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_sitelib}/%{pdir}