Files
perl-Net-OAuth2/perl-Net-OAuth2.spec

92 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Net-OAuth2
#
# Copyright (c) 2014 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-OAuth2
Version: 0.55
Release: 0
%define cpan_name Net-OAuth2
Summary: OAuth 2.0 implementation
License: Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/~markov/Net-OAuth2-0.55/
Source: %{cpan_name}-%{version}.tar.gz
Patch1: webServ_qualifiedName.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Encode)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MIME::Base64)
%if 0%{?suse_version} >= 1130
BuildRequires: perl(Test::Mock::LWP::Dispatch)
%endif
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(YAML)
Requires: perl = %perl_version
Requires: perl(Encode)
Requires: perl(HTTP::Request)
Requires: perl(HTTP::Response)
Requires: perl(HTTP::Status)
Requires: perl(JSON)
Requires: perl(LWP::UserAgent)
Requires: perl(MIME::Base64)
Requires: perl(URI)
Requires: perl(URI::Escape)
%{perl_requires}
%description
OAuth version 2.0 is a follow-up on OAuth 1.0, which is not supported by this module. The specification for version 2.0 can be found in
. RFC6749, Authorization framework: http://tools.ietf.org/html/rfc6749
. RFC6750, Bearer token usage: http://tools.ietf.org/html/rfc6750
Start with one these modules:
. Net::OAuth2::Profile::WebServer
. Net::OAuth2::Profile::Password
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1130
%patch1 -p1
%endif
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
rm -rf %{buildroot}%perl_vendorarch/auto
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%perl_archlib/perllocal.pod
%changelog