File perl-Net-OpenAMD.spec of Package perl-Net-OpenAMD
#
# spec file for package perl-Net-OpenAMD
#
# Copyright (c) 2015 SUSE LINUX Products 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-Net-OpenAMD
Version: 0.1.1
Release: 0
%define cpan_name Net-OpenAMD
Summary: Perl interface to the OpenAMD API
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Net-OpenAMD/
Source: http://www.cpan.org/authors/id/A/AN/ANDREW/%{cpan_name}-v%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Mojolicious)
BuildRequires: perl(Net::OAuth)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(URI)
BuildRequires: perl(version)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Mojo::JSON)
#BuildRequires: perl(Mojolicious::Lite)
#BuildRequires: perl(Net::OpenAMD)
#BuildRequires: perl(Test::Perl::Critic)
Requires: perl(JSON)
Requires: perl(LWP::UserAgent)
Requires: perl(Net::OAuth)
Requires: perl(URI)
Requires: perl(version)
%{perl_requires}
%description
This module is to make it easy to grab information from the OpenAMD project
at The Next Hope.
http://wiki.hope.net/Attendee_Meta-Data
http://amd.hope.net/
http://amd.hope.net/2010/05/openamd-api-released-v1-1-1/
http://travisgoodspeed.blogspot.com/2010/06/hacking-next-hope-badge.html
%prep
%setup -q -n %{cpan_name}-v%{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 README script
%changelog