File perl-Net-OAuth.spec of Package perl-Net-OAuth

#
# spec file for package perl-Net-OAuth
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           perl-Net-OAuth
Version:        0.27
Release:        1
Summary:        An implementation of the OAuth protocol
Source:         http://search.cpan.org/CPAN/authors/id/K/KG/KGRENNAN/Net-OAuth-%{version}.tar.gz
Url:            http://search.cpan.org/dist/Net-OAuth
Group:          Development/Libraries/Perl
License:        Perl License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Test::More) >= 0.66
BuildRequires:  perl(Test::Warn) >= 0.21
BuildRequires:  perl(Module::Build) >= 0.35
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Digest::HMAC_SHA1) >= 1.01
BuildRequires:  perl(URI::Escape) >= 3.28
BuildRequires:  perl(Digest::SHA1) >= 2.12
BuildRequires:  perl(Class::Data::Inheritable) >= 0.06
BuildRequires:  perl(Class::Accessor) >= 0.31
BuildRequires:  perl(Encode) >= 2.35
Requires:       perl(Digest::HMAC_SHA1) >= 1.01
Requires:       perl(URI::Escape) >= 3.28
Requires:       perl(Digest::SHA1) >= 2.12
Requires:       perl(Class::Data::Inheritable) >= 0.06
Requires:       perl(Class::Accessor) >= 0.31
Requires:       perl(Encode) >= 2.35

%description
OAuth is "An open protocol to allow secure API authentication in a simple and
standard method from desktop and web applications."

In practical terms, OAuth is a mechanism for a Consumer to request protected
resources from a Service Provider on behalf of a user.

Please refer to the OAuth spec: http://oauth.net/documentation/spec

Net::OAuth provides:
*   classes that encapsulate OAuth messages (requests and responses).
*   message signing
*   message serialization and parsing.
*   2-legged requests (aka. tokenless requests, aka. consumer requests),
    see "CONSUMER REQUESTS"

Net::OAuth does not provide:
*   Consumer or Service Provider encapsulation
*   token/nonce/key storage/management

%prep
%setup -q -n "Net-OAuth-%{version}"

%build
%__perl ./Build.PL
./Build

%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist

%check
./Build test

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Net
%{perl_vendorlib}/Net/OAuth.pm
%{perl_vendorlib}/Net/OAuth
%dir %{perl_vendorarch}/auto/Net
%{perl_vendorarch}/auto/Net/OAuth
%doc %{perl_man3dir}/Net::OAuth.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Net::OAuth::*.%{perl_man3ext}%{ext_man}
%changelog
openSUSE Build Service is sponsored by