# # Conditional build: # _without_tests - do not perform "make test" %include /usr/lib/rpm/macros.perl %define pdir AnyData Summary: AnyData -- easy access to data in many formats Summary(pl): AnyData -- łatwy dostęp do danych w różnych formatach Name: perl-%{pdir} Version: 0.05 Release: 1 License: GPL/Artistic Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 3.0.3-26 %if %{?_without_test:0}%{!?_without_test:1} BuildRequires: perl(Data::Dumper) %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The AnyData modules provide simple and uniform access to data from many sources -- perl arrays, local files, remote files retrievable via http or ftp -- and in many formats including flat files (CSV, Fixed Length, Tab Delimited, etc), standard format files (Web Logs, Passwd files, etc.), structured files (XML, HTML Tables) and binary files with parseable headers (mp3s, jpgs, pngs, etc). %description -l pl Moduły AnyData dają prosty i ujednolicony dostęp do danych z wielu źródeł - tablic perlowych, plików lokalnych, plików zdalnych dostępnych po http lub ftp - oraz w wielu formatach, w tym płaskich plikach (CSV, z polami o stałej długości, ograniczonych tabami itp.), plikach o standardowych formatach (logi WWW, pliki passwd), plikach strukturalnych (tabele XML, HTML) oraz plikach binarnych z parsowalnymi nagłówkami (mp3, jpg, png itp.). %prep %setup -q -n %{pdir}-%{version} %build perl Makefile.PL %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_sitelib}/*.pm %{perl_sitelib}/%{pdir} %{_mandir}/man3/*