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