# # Conditional build: %bcond_without tests # don't perform "make test" # %define pdir DBD %define pnam AnyData Summary: DBD::AnyData - DBI access to XML, CSV and other formats Summary(pl.UTF-8): DBD::AnyData - dostęp DBI do XML-a, CSV i innych formatów Name: perl-DBD-AnyData Version: 0.09 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 32e8c7300c6917247e70afc85b947308 URL: http://search.cpan.org/dist/DBD-AnyData/ %if %{with tests} BuildRequires: perl-AnyData BuildRequires: perl-CGI BuildRequires: perl-DBD-CSV # HTML and XML tests currently disabled #BuildRequires: perl-HTML-Parser #BuildRequires: perl-HTML-TableExtract #BuildRequires: perl-XML-Parser #BuildRequires: perl-XML-Twig %endif BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The DBD::AnyData module provides a DBI/SQL interface to data in many formats and from many sources. Currently supported formats include general format flatfiles (CSV, Fixed Length, Tab or Pipe "delimited", etc.), specific formats (passwd files, web logs, etc.), a variety of other kinds of formats (XML, MP3, HTML tables), and, for some operations, any DBI accessible database. %description -l pl.UTF-8 Moduł DBD::AnyData udostępnia interfejs DBI/SQL do danych w wielu formatach, pobieranych z wielu źródeł. Aktualnie obsługiwane formaty zawierają ogólne sformatowane pliki (CSV, z polami o stałej długości, oddzielonymi tabami lub znakiem |, itp.), określone formaty (pliki passwd, logi serwera WWW itp.), wiele innych rodzajów formatów (XML, mp3, tabele HTML) oraz, dla niektórych operacji, dowolne bazy danych dostępne przez DBI. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_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_vendorlib}/%{pdir}/*.pm %{_mandir}/man3/*