File perl-AnyData.spec of Package perl-AnyData

#
# spec file for package perl-AnyData
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-AnyData
Version:        0.12
Release:        0
%define cpan_name AnyData
Summary:        (DEPRECATED) easy access to data in many formats
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/AnyData/
Source0:        http://www.cpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(CGI)
BuildRequires:  perl(Test::Output)
Requires:       perl(CGI)
%{perl_requires}

%description
The rather wacky idea behind this module and its sister module DBD::AnyData
is that any data, regardless of source or format should be accessible and
modifiable with the same simple set of methods. This module provides a
multidimensional tied hash interface to data in a dozen different formats.
The DBD::AnyData module adds a DBI/SQL interface for those same formats.

Both modules provide built-in protections including appropriate flocking()
for all I/O and (in most cases) record-at-a-time access to files rather
than slurping of entire files.

Currently supported formats include general format flat files (CSV, Fixed
Length, etc.), specific formats (passwd files, httpd logs, etc.), and a
variety of other kinds of formats (XML, Mp3, HTML tables). The number of
supported formats will continue to grow rapidly since there is an open API
making it easy for any author to create additional format parsers which can
be plugged in to AnyData itself and thereby be accessible by either the
tiedhash or DBI/SQL interface.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README

%changelog
openSUSE Build Service is sponsored by