]>
Commit | Line | Data |
---|---|---|
b2fcbef6 | 1 | # |
2 | # Conditional build: | |
994973f9 | 3 | %bcond_without tests # don't perform "make test" |
e02fd73c | 4 | # |
a89db382 | 5 | %define pdir DBD |
6 | %define pnam AnyData | |
e02fd73c | 7 | Summary: DBD::AnyData - DBI access to XML, CSV and other formats |
6d39ac61 | 8 | Summary(pl.UTF-8): DBD::AnyData - dostęp DBI do XML-a, CSV i innych formatów |
e02fd73c | 9 | Name: perl-DBD-AnyData |
a6d97e92 | 10 | Version: 0.09 |
11 | Release: 1 | |
994973f9 | 12 | # same as perl |
6dd3ac0f | 13 | License: GPL v1+ or Artistic |
b2fcbef6 | 14 | Group: Development/Languages/Perl |
566cdc39 | 15 | Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz |
a6d97e92 | 16 | # Source0-md5: 32e8c7300c6917247e70afc85b947308 |
566cdc39 | 17 | URL: http://search.cpan.org/dist/DBD-AnyData/ |
994973f9 | 18 | %if %{with tests} |
b2fcbef6 | 19 | BuildRequires: perl-AnyData |
b2fcbef6 | 20 | BuildRequires: perl-CGI |
994973f9 JB |
21 | BuildRequires: perl-DBD-CSV |
22 | # HTML and XML tests currently disabled | |
23 | #BuildRequires: perl-HTML-Parser | |
24 | #BuildRequires: perl-HTML-TableExtract | |
25 | #BuildRequires: perl-XML-Parser | |
26 | #BuildRequires: perl-XML-Twig | |
b2fcbef6 | 27 | %endif |
9bedb097 | 28 | BuildRequires: perl-devel >= 1:5.8.0 |
6c6c0811 | 29 | BuildRequires: rpm-perlprov >= 4.1-13 |
b2fcbef6 | 30 | BuildArch: noarch |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | The DBD::AnyData module provides a DBI/SQL interface to data in many | |
35 | formats and from many sources. | |
36 | ||
37 | Currently supported formats include general format flatfiles (CSV, | |
38 | Fixed Length, Tab or Pipe "delimited", etc.), specific formats (passwd | |
d0fa663e | 39 | files, web logs, etc.), a variety of other kinds of formats (XML, MP3, |
b2fcbef6 | 40 | HTML tables), and, for some operations, any DBI accessible database. |
41 | ||
9f85aa09 JR |
42 | %description -l pl.UTF-8 |
43 | Moduł DBD::AnyData udostępnia interfejs DBI/SQL do danych w wielu | |
44 | formatach, pobieranych z wielu źródeł. Aktualnie obsługiwane formaty | |
45 | zawierają ogólne sformatowane pliki (CSV, z polami o stałej długości, | |
46 | oddzielonymi tabami lub znakiem |, itp.), określone formaty (pliki | |
47 | passwd, logi serwera WWW itp.), wiele innych rodzajów formatów (XML, | |
48 | mp3, tabele HTML) oraz, dla niektórych operacji, dowolne bazy danych | |
49 | dostępne przez DBI. | |
b2fcbef6 | 50 | |
51 | %prep | |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
53 | ||
54 | %build | |
6c6c0811 | 55 | %{__perl} Makefile.PL \ |
0a740f1d | 56 | INSTALLDIRS=vendor |
b2fcbef6 | 57 | %{__make} |
e02fd73c | 58 | |
994973f9 | 59 | %{?with_tests:%{__make} test} |
b2fcbef6 | 60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
994973f9 JB |
64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
b2fcbef6 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
6c6c0811 | 72 | %{perl_vendorlib}/%{pdir}/*.pm |
b2fcbef6 | 73 | %{_mandir}/man3/* |