]> git.pld-linux.org Git - packages/perl-AnyData.git/blob - perl-AnyData.spec
- fixed source URL
[packages/perl-AnyData.git] / perl-AnyData.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
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:        1
11 License:        GPL/Artistic
12 Group:          Development/Languages/Perl
13 Source0:        ftp://ftp.cpan.org/pub/CPAN/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
14 BuildRequires:  perl >= 5.6
15 BuildRequires:  rpm-perlprov >= 3.0.3-26
16 %if %{?_without_test:0}%{!?_without_test:1}
17 BuildRequires:  perl(Data::Dumper)
18 %endif
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The AnyData modules provide simple and uniform access to data from many
24 sources -- perl arrays, local files, remote files retrievable via http
25 or ftp -- and in many formats including flat files (CSV, Fixed Length,
26 Tab Delimited, etc), standard format files (Web Logs, Passwd files,
27 etc.),  structured files (XML, HTML Tables) and binary files with
28 parseable headers (mp3s, jpgs, pngs, etc).
29
30 # %description -l pl
31 # TODO
32
33 %prep
34 %setup -q -n %{pdir}-%{version}
35
36 %build
37 perl Makefile.PL
38 %{__make}
39 %{!?_without_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} install DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %{perl_sitelib}/*.pm
52 %{perl_sitelib}/%{pdir}
53 %{_mandir}/man3/*
This page took 0.030751 seconds and 4 git commands to generate.