2024-03-24 12:24:38 +01:00
|
|
|
Name: perl-Crypt-Password
|
|
|
|
Version: 0.28
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Unix-style, Variously Hashed Passwords
|
|
|
|
License: Distributable, see COPYING.txt
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Crypt-Password/
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DR/DRSTEVE/Crypt-Password-%{version}.tgz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2024-03-24 22:15:57 +01:00
|
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
|
BuildRequires: perl(inc::Module::Install)
|
2024-03-24 12:24:38 +01:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is just a wrapper for perl's crypt(), which can do everything you
|
|
|
|
would probably want to do to store a password, but this is to make usage
|
|
|
|
easier. The object stringifies to the return string of the crypt()
|
|
|
|
function, which is (on Linux/glibc et al) in Modular Crypt Format:
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Crypt-Password-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
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 -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 COPYING.txt README SubmittingPatches
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun Mar 24 2024 Trevor Batley <trevor@batley.id.au> 0.28-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|