File perl-WebService-XING.spec of Package perl-WebService-XING

#
# spec file for package perl-WebService-XING
#
# 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 https://bugs.opensuse.org/
#


Name:           perl-WebService-XING
Version:        0.001
Release:        0
%define cpan_name WebService-XING
Summary:        Perl Interface to the XING API
License:        Artistic-1.0 OR GPL-1.0-or-later
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/WebService-XING/
#Source0:        https://cpan.metacpan.org/authors/id/G/GR/GRAF/%{cpan_name}-0.030.tar.gz
Source0:        WebService-XING-0.001.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Encode::StdIO)
BuildRequires:  perl(File::HomeDir)
BuildRequires:  perl(HTTP::Headers)
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(JSON) >= 2
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Mo) >= 0.3
BuildRequires:  perl(Net::OAuth)
BuildRequires:  perl(Term::Encoding)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(URI)
BuildRequires:  perl(YAML)
Requires:       perl(Encode::StdIO)
Requires:       perl(File::HomeDir)
Requires:       perl(HTTP::Headers)
Requires:       perl(HTTP::Request)
Requires:       perl(JSON) >= 2
Requires:       perl(LWP::UserAgent)
Requires:       perl(Mo) >= 0.3
Requires:       perl(Net::OAuth)
Requires:       perl(Term::Encoding)
Requires:       perl(URI)
Requires:       perl(YAML)
%{perl_requires}

%description
'WebService::XING' is a Perl client library for the XING API. It supports
the whole range of functions described under https://dev.xing.com/.

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

%changelog
openSUSE Build Service is sponsored by