]> git.pld-linux.org Git - packages/perl-AnyData.git/blob - perl-AnyData.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/perl-AnyData.git] / perl-AnyData.spec
1 #
2 # Conditional build:
3 # _with_tests - perform "make test" (hangs with XML::Twig or HTML::TableExtract installed)
4 %include        /usr/lib/rpm/macros.perl
5 %define pdir    AnyData
6 Summary:        AnyData -- easy access to data in many formats
7 Summary(pl):    AnyData -- ³atwy dostêp do danych w ró¿nych formatach
8 Name:           perl-%{pdir}
9 Version:        0.05
10 Release:        3
11 License:        GPL/Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
14 BuildRequires:  perl-devel >= 5.6
15 BuildRequires:  rpm-perlprov >= 4.1-13
16 %if %{?_with_test:1}%{!?_with_test:0}
17 BuildRequires:  perl(Data::Dumper)
18 %endif
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _noautoreq      'perl(XML::Twig)' 'perl(HTML::TableExtract)'
23
24 %description
25 The AnyData modules provide simple and uniform access to data from
26 many sources -- perl arrays, local files, remote files retrievable via
27 http or ftp -- and in many formats including flat files (CSV, Fixed
28 Length, Tab Delimited, etc), standard format files (Web Logs, Passwd
29 files, etc.),  structured files (XML, HTML Tables) and binary files
30 with parseable headers (mp3s, jpgs, pngs, etc).
31
32 %description -l pl
33 Modu³y AnyData daj± prosty i ujednolicony dostêp do danych z wielu
34 ¼róde³ - tablic perlowych, plików lokalnych, plików zdalnych
35 dostêpnych po http lub ftp - oraz w wielu formatach, w tym p³askich
36 plikach (CSV, z polami o sta³ej d³ugo¶ci, ograniczonych tabami itp.),
37 plikach o standardowych formatach (logi WWW, pliki passwd), plikach
38 strukturalnych (tabele XML, HTML) oraz plikach binarnych z
39 parsowalnymi nag³ówkami (mp3, jpg, png itp.).
40
41 %prep
42 %setup -q -n %{pdir}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor 
47 %{__make}
48 %{?_with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/*.pm
61 %{perl_vendorlib}/%{pdir}
62 %{_mandir}/man3/*
This page took 0.367029 seconds and 3 git commands to generate.