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