File perl-DBIx-FileSystem.spec of Package perl-DBIx-FileSystem

#
# spec file for package perl-DBIx-FileSystem
#
# Copyright (c) 2018 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-DBIx-FileSystem
Version:        2.5
Release:        0
%define cpan_name DBIx-FileSystem
Summary:        Manage tables like a filesystem
License:        CHECK(GPL-1.0-or-later OR Artistic-1.0)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/DBIx-FileSystem/
Source0:        https://cpan.metacpan.org/authors/id/A/AF/AFRIKA/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(DBI) >= 1
Requires:       perl(DBI) >= 1
%{perl_requires}

%description
The module DBIx::FileSystem offers you a filesystem like view to database
tables. To interact with the database tables, FileSystem implements:

* -

An access class to read the data edited by the shell.

* -

A user interface as a command line shell which offers not only a subset of
well known shell commands to navigate, view and manipulate data in tables,
but also gives the convenience of history, command line editing and tab
completion. FileSystem sees the database as a filesystem: each table is a
different directory with the tablename as the directory name and each row
in a table is a file within that directory.

The motivation for FileSystem was the need for a terminal based
configuration interface to manipulate database entries which are used as
configuration data by a server process. FileSystem is neither complete nor
a replacement for dbish or other full-feature SQL shells or editors. Think
of FileSystem as a replacement for a Web/CGI based graphical user interface
for manipulating database contents.

%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 examples README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by