3 %bcond_without tests # don't perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DBD::AnyData - DBI access to XML, CSV and other formats
9 Summary(pl.UTF-8): DBD::AnyData - dostęp DBI do XML-a, CSV i innych formatów
10 Name: perl-DBD-AnyData
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 32e8c7300c6917247e70afc85b947308
18 URL: http://search.cpan.org/dist/DBD-AnyData/
20 BuildRequires: perl-AnyData
21 BuildRequires: perl-CGI
22 BuildRequires: perl-DBD-CSV
23 # HTML and XML tests currently disabled
24 #BuildRequires: perl-HTML-Parser
25 #BuildRequires: perl-HTML-TableExtract
26 #BuildRequires: perl-XML-Parser
27 #BuildRequires: perl-XML-Twig
29 BuildRequires: perl-devel >= 1:5.8.0
30 BuildRequires: rpm-perlprov >= 4.1-13
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The DBD::AnyData module provides a DBI/SQL interface to data in many
36 formats and from many sources.
38 Currently supported formats include general format flatfiles (CSV,
39 Fixed Length, Tab or Pipe "delimited", etc.), specific formats (passwd
40 files, web logs, etc.), a variety of other kinds of formats (XML, MP3,
41 HTML tables), and, for some operations, any DBI accessible database.
43 %description -l pl.UTF-8
44 Moduł DBD::AnyData udostępnia interfejs DBI/SQL do danych w wielu
45 formatach, pobieranych z wielu źródeł. Aktualnie obsługiwane formaty
46 zawierają ogólne sformatowane pliki (CSV, z polami o stałej długości,
47 oddzielonymi tabami lub znakiem |, itp.), określone formaty (pliki
48 passwd, logi serwera WWW itp.), wiele innych rodzajów formatów (XML,
49 mp3, tabele HTML) oraz, dla niektórych operacji, dowolne bazy danych
53 %setup -q -n %{pdir}-%{pnam}-%{version}
56 %{__perl} Makefile.PL \
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %{perl_vendorlib}/%{pdir}/*.pm