File perl-Eixo-Docker.spec of Package perl-Eixo-Docker
#
# spec file for package perl-Eixo-Docker
#
# Copyright (c) 2017 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-Eixo-Docker
Version: 1.211
Release: 0
%define cpan_name Eixo-Docker
Summary: Suite of Perl modules to interact with Docker
License: Licensed under the Apache License, Version 2.0 (the "License") and you may not use this file except in compliance with the License. You may obtain a copy of the License at the http://www.apache.org/licenses/LICENSE-2.0 manpage Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Eixo-Docker/
Source0: https://cpan.metacpan.org/authors/id/A/AL/ALAMBIKE/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Eixo::Base) >= 1
BuildRequires: perl(Eixo::Rest) >= 1
BuildRequires: perl(JSON) >= 2.5
BuildRequires: perl(Module::Build)
BuildRequires: perl(Net::HTTP) >= 6.06
Requires: perl(Eixo::Base) >= 1
Requires: perl(Eixo::Rest) >= 1
Requires: perl(JSON) >= 2.5
Requires: perl(Net::HTTP) >= 6.06
%{perl_requires}
%description
The purpose of this library is to provide a set of modules to interact in a
simple, but powerful way, with the at
http://docs.docker.io/en/latest/reference/api/docker_remote_api/
*Containers* supported methods:
* get
* getByName
* getAll
* create
* delete
* status
* start
* stop
* restart
* kill
* copy
* attach
* top
*Images* supported methods:
* get
* getAll
* history
* create
* build
* build_from_dir
* delete
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples
%license LICENSE
%changelog