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/.tito/releasers.conf b/.tito/releasers.conf new file mode 120000 index 0000000..867c32f --- /dev/null +++ b/.tito/releasers.conf @@ -0,0 +1 @@ +../../tito_libs/releasers.conf \ No newline at end of file diff --git a/.tito/tito.props b/.tito/tito.props index eab3f19..4c3685b 100644 --- a/.tito/tito.props +++ b/.tito/tito.props @@ -1,5 +1,6 @@ [buildconfig] -builder = tito.builder.Builder -tagger = tito.tagger.VersionTagger +builder = dbd.builder.GitLfsBuilder +tagger = tito.tagger.ReleaseTagger changelog_do_not_remove_cherrypick = 0 changelog_format = %s (%ae) +lib_dir = ../tito_libs diff --git a/Crypt-U2F-Server-0.45.tar.gz b/Crypt-U2F-Server-0.45.tar.gz new file mode 100644 index 0000000..fd4cbd0 --- /dev/null +++ b/Crypt-U2F-Server-0.45.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:782ee0dc9516d5c598e6d41c6a1b2317704f0b885f87af071d05c417258852b2 +size 60243 diff --git a/perl-Crypt-U2F-Server.spec b/perl-Crypt-U2F-Server.spec new file mode 100644 index 0000000..2d98647 --- /dev/null +++ b/perl-Crypt-U2F-Server.spec @@ -0,0 +1,56 @@ +Name: perl-Crypt-U2F-Server +Version: 0.45 +Release: 1%{?dist} +Summary: Low level wrapper around the U2F two factor authentication C library (server side) +License: BSD2-Clause +Group: Development/Libraries +URL: http://search.cpan.org/dist/Crypt-U2F-Server/ +Source0: http://www.cpan.org/authors/id/G/GU/GUIMARD/Crypt-U2F-Server-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(Authen::U2F::Tester) >= 0.02 +BuildRequires: perl(DynaLoader) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(JSON::XS) +BuildRequires: perl(Test::More) +BuildRequires: libu2f-server-devel +Requires: perl(DynaLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This is a very low level wrapper around the original C library. You +probably shouldn't use it, but use Crypt::U2F::Server::Simple instead! + +%prep +%setup -q -n Crypt-U2F-Server-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes META.json README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Crypt* +%{_mandir}/man3/* + +%changelog +* Fri Feb 11 2022 Daniel Berteaud 0.45-1 +- Specfile autogenerated by cpanspec 1.78.