diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ab8cb0e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-Mojo-JWT +# $Id: +NAME := perl-Mojo-JWT +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/Mojo-JWT-0.08.tar.gz b/Mojo-JWT-0.08.tar.gz new file mode 100644 index 0000000..e6e48d1 --- /dev/null +++ b/Mojo-JWT-0.08.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c910229e1182266b6666a2d65deea381a04e48d3aa788c42461b3184006934de +size 13647 diff --git a/README.md b/README.md index 4cbca2f..f448630 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # perl-Mojo-JWT -3rd Party (Maintained by Koozali) git repo for perl-Mojo-JWT smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for perl-Mojo-JWT smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +Perl-Mojo-JWT is a Perl library for encoding and decoding JSON Web Tokens (JWT). It provides a convenient interface for working with JWT, allowing users to easily create, parse, sign, and verify encoded JWT strings. In addition to providing basic JWT functions, the library also supports a variety of customization options, such as custom header and payload options, as well as support for JWT encryption and signing algorithms. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/perl-Mojo-JWT.spec b/perl-Mojo-JWT.spec new file mode 100644 index 0000000..addaf0a --- /dev/null +++ b/perl-Mojo-JWT.spec @@ -0,0 +1,76 @@ +Name: perl-Mojo-JWT +Version: 0.08 +Release: 3%{?dist} +Summary: JSON Web Token the Mojo way +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Mojo-JWT/ +Source0: http://www.cpan.org/authors/id/J/JB/JBERGER/Mojo-JWT-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 0:5.010 +BuildRequires: perl(Crypt::OpenSSL::RSA) +BuildRequires: perl(Digest::SHA) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build::Tiny) +BuildRequires: perl(Test::More) +BuildRequires: perl(Mojolicious) >= 5.00 +Requires: perl(Crypt::OpenSSL::RSA) +Requires: perl(Digest::SHA) +Requires: perl(Mojolicious) >= 5.00 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Provides: perl(Mojo::JWT) + +%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 +%{__perl} Build.PL prefix /usr installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +##./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + +./Build install \ + --destdir $RPM_BUILD_ROOT \ + --install_path libdoc=%{_mandir}/man3 + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +#find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes cpanfile LICENSE META.json metamerge.json README +/usr/local/share/perl5/* +%{_mandir}/man3/* + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Sun Jul 31 2022 Michel Begue 0.08-3 +- add Provides: perl(Mojo::JWT) + +* Sat Jun 25 2022 Michel Begue 0.08-2 +- fix email + +* Wed Aug 26 2020 Michel Begue 0.08-1 +- First build using cpanspec