# # spec file for package perl-LWP-Authen-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 LWP-Authen-OAuth2 Name: perl-LWP-Authen-OAuth2 Version: 0.200.0 Release: 0 # 0.20 -> normalize -> 0.200.0 %define cpan_version 0.20 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Make requests to OAuth2 APIs URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DO/DOMM/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(JSON) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Module::Load) BuildRequires: perl(URI) BuildRequires: perl(parent) Requires: perl(HTTP::Request::Common) Requires: perl(JSON) Requires: perl(LWP::UserAgent) Requires: perl(Module::Load) Requires: perl(URI) Requires: perl(parent) Provides: perl(LWP::Authen::OAuth2) = %{version} Provides: perl(LWP::Authen::OAuth2::AccessToken) = %{version} Provides: perl(LWP::Authen::OAuth2::AccessToken::Bearer) = %{version} Provides: perl(LWP::Authen::OAuth2::Args) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Dwolla) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google::Device) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google::Installed) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google::Login) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google::Service) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Google::WebServer) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Line) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Line::AccessToken) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Strava) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Withings) = %{version} Provides: perl(LWP::Authen::OAuth2::ServiceProvider::Yahoo) = %{version} %undefine __perllib_provides %{perl_requires} %description Make requests to OAuth2 APIs. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %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 %doc Changes README.md %license LICENSE %changelog