Files
perl-Net-OAuth2/perl-Net-OAuth2.spec
2025-08-12 18:16:02 +02:00

88 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Net-OAuth2
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define cpan_name Net-OAuth2
Name: perl-Net-OAuth2
Version: 0.670.0
Release: 0
# 0.67 -> normalize -> 0.670.0
%define cpan_version 0.67
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: OAuth2 authenticating client
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/U/UH/UHLE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(URI)
Requires: perl(HTTP::Request)
Requires: perl(HTTP::Response)
Requires: perl(HTTP::Status)
Requires: perl(JSON::MaybeXS)
Requires: perl(LWP::UserAgent)
Requires: perl(URI)
Provides: perl(Net::OAuth2) = %{version}
Provides: perl(Net::OAuth2::AccessToken) = %{version}
Provides: perl(Net::OAuth2::Client) = %{version}
Provides: perl(Net::OAuth2::Profile) = %{version}
Provides: perl(Net::OAuth2::Profile::Password) = %{version}
Provides: perl(Net::OAuth2::Profile::WebServer) = %{version}
%undefine __perllib_provides
%{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
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes examples README README.md
%changelog