From 6943bb875e511ca3d6b0f465df2433f7c072511e Mon Sep 17 00:00:00 2001 From: Mike Oliver Date: Thu, 27 Sep 2018 09:11:54 -0500 Subject: [PATCH] Initial package creation --- .gitignore | 1 + perl-Mojolicious-Plugin-OAuth2.spec | 63 +++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 perl-Mojolicious-Plugin-OAuth2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd69a2d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Mojolicious-Plugin-OAuth2-1.57.tar.gz diff --git a/perl-Mojolicious-Plugin-OAuth2.spec b/perl-Mojolicious-Plugin-OAuth2.spec new file mode 100644 index 0000000..8ed8bec --- /dev/null +++ b/perl-Mojolicious-Plugin-OAuth2.spec @@ -0,0 +1,63 @@ +Name: perl-Mojolicious-Plugin-OAuth2 +Version: 1.57 +Release: 1%{?dist} +Summary: A Mojolicious plugin that allows OAuth2 authentication + +License: Artistic 2.0 +URL: https://metacpan.org/release/Mojolicious-Plugin-OAuth2 +Source0: https://cpan.metacpan.org/authors/id/M/MR/MRAMBERG/Mojolicious-Plugin-OAuth2-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Find) +BuildRequires: perl(IO::Socket::SSL) +BuildRequires: perl(Mojo::Base) +BuildRequires: perl(Mojo::Promise) +BuildRequires: perl(Mojo::UserAgent) +BuildRequires: perl(Mojo::Util) +BuildRequires: perl(Mojolicious) >= 7.53 +BuildRequires: perl(Mojolicious::Lite) +BuildRequires: perl(Mojolicious::Plugin) +BuildRequires: perl(Test::Mojo) +BuildRequires: perl(Test::More) +BuildRequires: perl(lib) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) + +Requires: perl(IO::Socket::SSL) +Requires: perl(Mojolicious) >= 7.53 +Requires: perl(Mojolicious::Plugin) + +%{?perl_default_filter} + +%description +This Mojolicious plugin allows you to easily authenticate against a OAuth2 +provider. It includes configurations for a few popular providers, but you can +add your own easily as well. + +%prep +%setup -q -n Mojolicious-Plugin-OAuth2-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" +%{__make} %{?_smp_mflags} + +%install +%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{__make} test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Sep 24 2018 Mike Oliver - 1.57-1 +- Initial package creation diff --git a/sources b/sources new file mode 100644 index 0000000..3f4a1c5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Mojolicious-Plugin-OAuth2-1.57.tar.gz) = aa27b4d152bbb4223a9ed6188e7be010881825cc6345e776ec1d54fb6e77eb25fb3788029a42185e699f9e37e191a35882802c1c58fdee3829fea1a6b64c1c9c