File perl-Db-Documentum.spec of Package perl-Db-Documentum

#
# spec file for package perl-Db-Documentum
#
# 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-Db-Documentum
Version:        1.64
Release:        0
%define cpan_name Db-Documentum
Summary:        Documentum API interface for Perl
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Db-Documentum/
Source0:        http://www.cpan.org/authors/id/M/MS/MSROTH/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
The *Db::Documentum* module provides a Perl interface to the client API
libraries for the Documentum Enterprise Document Management System
(EDMS98/4i/5). You must have already obtained the necessary libraries and
purchased the necessary licenses from Documentum before you can build this
module. For more information on Documentum, see
_http://www.documentum.com/_

This module provides an interface to the three listed API functions:
*dmAPIGet*, *dmAPIExec*, and *dmAPISet*. For most purposes, these are the
only functions you need to use, as the bulk of the API is implemented as
server methods accessed by one of the API commands. *dmAPIExec* returns a
scalar (1 or 0) which can be evaluated to determine success (1 for success,
0 for failure). *dmAPISet* also returns a scalar, but takes two arguments,
the method argument and the value to use. *dmAPIGet* takes a single
argument and returns a string containing the results. This string, which
may contain an object or query collection identifier can be used later with
other method calls.

This module, by default, does not import all of its symbols into the
calling package's namespace. Therefore, the Documentum API commands must be
called with the fully-qualified package path:

	Db::Documentum::dmAPIGet

To use the module functions without having to supply the module name, use
the second form of the "use" statement shown here:

	use Db::Documentum qw (:all);

That said, check your Documentum documentation for complete information on
how to interact with the Documentum server.

Check the version of this module with: >perl -MDb::Documentum -e
Db::Documentum::version

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__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 Documentum.html intro-db-dctm-1-2.pdf README

%changelog
openSUSE Build Service is sponsored by