Initial spec and resources

This commit is contained in:
Daniel Berteaud 2022-02-11 15:15:52 +01:00
parent ff329afc21
commit 607236490a
5 changed files with 64 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

1
.tito/releasers.conf Symbolic link
View File

@ -0,0 +1 @@
../../tito_libs/releasers.conf

View File

@ -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

BIN
Crypt-U2F-Server-0.45.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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 <dbd@ehtrace.com> 0.45-1
- Specfile autogenerated by cpanspec 1.78.