]> git.pld-linux.org Git - packages/perl-DBD-AnyData.git/blob - perl-DBD-AnyData.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBD-AnyData.git] / perl-DBD-AnyData.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4 #
5 %define         pdir    DBD
6 %define         pnam    AnyData
7 Summary:        DBD::AnyData - DBI access to XML, CSV and other formats
8 Summary(pl.UTF-8):      DBD::AnyData - dostęp DBI do XML-a, CSV i innych formatów
9 Name:           perl-DBD-AnyData
10 Version:        0.09
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  32e8c7300c6917247e70afc85b947308
17 URL:            http://search.cpan.org/dist/DBD-AnyData/
18 %if %{with tests}
19 BuildRequires:  perl-AnyData
20 BuildRequires:  perl-CGI
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
27 %endif
28 BuildRequires:  perl-devel >= 1:5.8.0
29 BuildRequires:  rpm-perlprov >= 4.1-13
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
39 files, web logs, etc.), a variety of other kinds of formats (XML, MP3,
40 HTML tables), and, for some operations, any DBI accessible database.
41
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.
50
51 %prep
52 %setup -q -n %{pdir}-%{pnam}-%{version}
53
54 %build
55 %{__perl} Makefile.PL \
56         INSTALLDIRS=vendor
57 %{__make}
58
59 %{?with_tests:%{__make} test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %{perl_vendorlib}/%{pdir}/*.pm
73 %{_mandir}/man3/*
This page took 0.065174 seconds and 4 git commands to generate.