diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49dd939 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Mojo-JWT-0.08.tar.gz diff --git a/perl-Mojo-JWT.spec b/perl-Mojo-JWT.spec new file mode 100644 index 0000000..130b164 --- /dev/null +++ b/perl-Mojo-JWT.spec @@ -0,0 +1,62 @@ +Name: perl-Mojo-JWT +Version: 0.08 +Release: 2%{?dist} +Summary: JSON Web Token the Mojo way +License: GPL+ or Artistic + +URL: https://metacpan.org/release/Mojo-JWT +Source0: https://cpan.metacpan.org/authors/id/J/JB/JBERGER/Mojo-JWT-%{version}.tar.gz + +BuildArch: noarch +# build requirements +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Module::Build::Tiny) +# runtime requirements +BuildRequires: perl(:VERSION) >= 5.10 +BuildRequires: perl(Carp) +BuildRequires: perl(Crypt::OpenSSL::RSA) +BuildRequires: perl(Digest::SHA) +BuildRequires: perl(MIME::Base64) >= 3.11 +BuildRequires: perl(Mojo::Base) >= 5.00 +BuildRequires: perl(Mojo::JSON) +# test requirements +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version)) +Requires: perl(Crypt::OpenSSL::RSA) +Requires: perl(Digest::SHA) + +%description +JSON Web Token is described in https://tools.ietf.org/html/rfc7519. +Mojo::JWT implements that standard with an API that should feel familiar to +Mojolicious users (though of course it is useful elsewhere). Indeed, JWT is +much like Mojolicious::Sessions except that the result is a URL-safe text +string rather than a cookie. + +%prep +%setup -q -n Mojo-JWT-%{version} + +%build +/usr/bin/perl Build.PL --installdirs=vendor +./Build + +%install +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes README +%license LICENSE +%{perl_vendorlib}/Mojo* +%{_mandir}/man3/Mojo* + +%changelog +* Fri Aug 30 2019 Emmanuel Seyman - 0.08-2 +- Take into account review comments (#1747142) + +* Wed Aug 28 2019 Emmanuel Seyman - 0.08-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..dd2580a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Mojo-JWT-0.08.tar.gz) = e041d99ffd00397677d4bca1000a98cdbc2a769df4e6bb7e9d9064bd79667694eb4c0849dd16795f0a8a5876c8997dc0184eba4dc5b871bf845fb1a1d6f86812