]> git.pld-linux.org Git - packages/perl-DBD-AnyData.git/blob - perl-DBD-AnyData.spec
ddc5f848addfafdd05d03071b4aa88f83992c05c
[packages/perl-DBD-AnyData.git] / perl-DBD-AnyData.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    DBD
7 %define         pnam    AnyData
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
11 Version:        0.09
12 Release:        1
13 # same as perl
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/
19 %if %{with tests}
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
28 %endif
29 BuildRequires:  perl-devel >= 1:5.8.0
30 BuildRequires:  rpm-perlprov >= 4.1-13
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 The DBD::AnyData module provides a DBI/SQL interface to data in many
36 formats and from many sources.
37
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.
42
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
50 dostępne przez DBI.
51
52 %prep
53 %setup -q -n %{pdir}-%{pnam}-%{version}
54
55 %build
56 %{__perl} Makefile.PL \
57         INSTALLDIRS=vendor
58 %{__make}
59
60 %{?with_tests:%{__make} test}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %{perl_vendorlib}/%{pdir}/*.pm
74 %{_mandir}/man3/*
This page took 0.056984 seconds and 2 git commands to generate.