]> git.pld-linux.org Git - packages/perl-AnyData.git/blob - perl-AnyData.spec
- standarized Source0 URL
[packages/perl-AnyData.git] / perl-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    AnyData
7 Summary:        AnyData - easy access to data in many formats
8 Summary(pl):    AnyData - ³atwy dostêp do danych w ró¿nych formatach
9 Name:           perl-AnyData
10 Version:        0.10
11 Release:        3
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
16 # Source0-md5:  ff9fb4c7d8b99d63a773e66f0ccba788
17 %if %{with tests}
18 BuildRequires:  perl-CGI
19 %endif
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
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
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.038276 seconds and 3 git commands to generate.