forked from pool/perl-Net-OAuth
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: perl-Net-OAuth
|
||
|
Version: 0.27
|
||
|
Release: 0
|
||
|
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}/build-%{name}-%{version}
|
||
|
Requires: perl = %{perl_version}
|
||
|
BuildRequires: perl
|
||
|
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}
|
||
|
|