]> git.pld-linux.org Git - SPECS.git/blob - perl-AnyData.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-AnyData.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4
5 %define         pdir    AnyData
6 Summary:        AnyData - easy access to data in many formats
7 Summary(pl.UTF-8):      AnyData - łatwy dostęp do danych w różnych formatach
8 Name:           perl-AnyData
9 Version:        0.10
10 Release:        4
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
15 # Source0-md5:  ff9fb4c7d8b99d63a773e66f0ccba788
16 URL:            http://search.cpan.org/dist/AnyData/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-CGI
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _noautoreq      'perl(XML::Twig)' 'perl(HTML::TableExtract)'
26
27 %description
28 The AnyData modules provide simple and uniform access to data from
29 many sources - perl arrays, local files, remote files retrievable via
30 HTTP or FTP - and in many formats including flat files (CSV, Fixed
31 Length, Tab Delimited, etc), standard format files (Web Logs, Passwd
32 files, etc.), structured files (XML, HTML Tables) and binary files
33 with parseable headers (mp3s, jpgs, pngs, etc).
34
35 %description -l pl.UTF-8
36 Moduły AnyData dają prosty i ujednolicony dostęp do danych z wielu
37 źródeł - tablic perlowych, plików lokalnych, plików zdalnych
38 dostępnych po HTTP lub FTP - oraz w wielu formatach, w tym płaskich
39 plikach (CSV, z polami o stałej długości, ograniczonych tabami itp.),
40 plikach o standardowych formatach (logi WWW, pliki passwd), plikach
41 strukturalnych (tabele XML, HTML) oraz plikach binarnych z
42 parsowalnymi nagłówkami (mp3, jpg, png itp.).
43
44 %prep
45 %setup -q -n %{pdir}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %{perl_vendorlib}/*.pm
66 %dir %{perl_vendorlib}/AnyData
67 %dir %{perl_vendorlib}/AnyData/Format
68 %{perl_vendorlib}/AnyData/Format/*.pm
69 %dir %{perl_vendorlib}/AnyData/Storage
70 %{perl_vendorlib}/AnyData/Storage/*.pm
71 %{_mandir}/man3/*
This page took 0.496933 seconds and 3 git commands to generate.