Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-O
perl-OAuthomatic
perl-OAuthomatic.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-OAuthomatic.spec of Package perl-OAuthomatic
# # spec file for package perl-OAuthomatic # # Copyright (c) 2020 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/ # Name: perl-OAuthomatic Version: 0.0202 Release: 0 %define cpan_name OAuthomatic Summary: Automate setup of access to OAuth-secured resources. Intended especially[cut] License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/ME/MEKK/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Browser::Open) BuildRequires: perl(Const::Fast) >= 0.014 BuildRequires: perl(Data::Dump) BuildRequires: perl(Exporter::Shiny) BuildRequires: perl(File::ShareDir) >= 1.03 BuildRequires: perl(File::ShareDir::Install) >= 0.06 BuildRequires: perl(HTTP::Body) BuildRequires: perl(HTTP::Headers) BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Response) BuildRequires: perl(HTTP::Server::Brick) BuildRequires: perl(HTTP::Status) BuildRequires: perl(IO::Interactive) BuildRequires: perl(IO::Null) BuildRequires: perl(JSON) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Pluggable) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::AttributeShortcuts) BuildRequires: perl(MooseX::Getopt) BuildRequires: perl(MooseX::Types::Path::Tiny) BuildRequires: perl(Net::EmptyPort) BuildRequires: perl(Net::OAuth) BuildRequires: perl(Net::SSL) BuildRequires: perl(Passwd::Keyring::Auto) BuildRequires: perl(Path::Tiny) BuildRequires: perl(Proc::Background) BuildRequires: perl(Role::HasMessage::Errf) BuildRequires: perl(Role::HasPayload::Merged) BuildRequires: perl(StackTrace::Auto) BuildRequires: perl(Template) BuildRequires: perl(Test::CheckDeps) >= 0.010 BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Test::Most) BuildRequires: perl(Test::UseAllModules) BuildRequires: perl(Thread::Queue) >= 3.02 BuildRequires: perl(Throwable) BuildRequires: perl(Try::Tiny) BuildRequires: perl(URI) BuildRequires: perl(URI::QueryParam) BuildRequires: perl(feature) BuildRequires: perl(namespace::sweep) BuildRequires: perl(version) Requires: perl(Browser::Open) Requires: perl(Const::Fast) >= 0.014 Requires: perl(Data::Dump) Requires: perl(Exporter::Shiny) Requires: perl(File::ShareDir) >= 1.03 Requires: perl(HTTP::Body) Requires: perl(HTTP::Headers) Requires: perl(HTTP::Request) Requires: perl(HTTP::Response) Requires: perl(HTTP::Server::Brick) Requires: perl(HTTP::Status) Requires: perl(IO::Interactive) Requires: perl(IO::Null) Requires: perl(JSON) Requires: perl(LWP::UserAgent) Requires: perl(Module::Pluggable) Requires: perl(Moose) Requires: perl(Moose::Role) Requires: perl(Moose::Util::TypeConstraints) Requires: perl(MooseX::AttributeShortcuts) Requires: perl(MooseX::Getopt) Requires: perl(MooseX::Types::Path::Tiny) Requires: perl(Net::EmptyPort) Requires: perl(Net::OAuth) Requires: perl(Net::SSL) Requires: perl(Passwd::Keyring::Auto) Requires: perl(Path::Tiny) Requires: perl(Proc::Background) Requires: perl(Role::HasMessage::Errf) Requires: perl(Role::HasPayload::Merged) Requires: perl(StackTrace::Auto) Requires: perl(Template) Requires: perl(Thread::Queue) >= 3.02 Requires: perl(Throwable) Requires: perl(Try::Tiny) Requires: perl(URI) Requires: perl(URI::QueryParam) Requires: perl(feature) Requires: perl(namespace::sweep) Requires: perl(version) Recommends: perl(Passwd::Keyring::Gnome) Recommends: perl(Passwd::Keyring::PWSafe3) %{perl_requires} %description *WARNING:* _This is early release. Things may change (although I won't change crucial APIs without good reason)._ Main purpose of this module: make it easy to start scripting around some OAuth-controlled site (at the moment, OAuth 1.0a is supported). The user needs only to check site docs for appropriate URLs, construct OAuthomatic object, and go. I wrote this module as I always struggled with using OAuth-secured APIs from perl. Modules I found on CPAN were mostly low-level, not-too-well documented, and - worst of all - required my scripts to handle whole „get keys, acquire permissions, save tokens” sequence. OAuthomatic is very opinionated. It shows instructions in English. It uses Passwd::Keyring::Auto to save (and restore) sensitive data. It assumes application keys are to be provided by the user on first run (not distributed with the script). It spawns web browser (and temporary in-process webserver to back it). It provides a few HTML pages and they are black-on-white, 14pt font, without pictures. Thanks to all those assumptions it usually just works, letting the script author to think about job at hand instead of thinking about authorization. And, once script grows to application, all those opinionated parts can be tweaked or substituted where necessary. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes docs examples README-development.html README.html README.txt %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor