Name: 		perl-Crypt-PasswdMD5
Version:	1.41
Release:	1%{?_dist_release}
Summary:	Provides interoperable MD5-based crypt() functions 
Group:		programming
Vendor:		Project Vine
Distribution:	Vine Linux

License:	GPL+ or Artistic
URL: 		https://metacpan.org/pod/Crypt::PasswdMD5
Source0: 	https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-%{version}.tgz

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: 	noarch
BuildRequires:	perl(ExtUtils::MakeMaker)
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This package provides MD5-based crypt() functions


%prep
%setup -q -n Crypt-PasswdMD5-%{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 -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%files
%defattr(-,root,root,-)
%doc README
%{perl_vendorlib}/Crypt
%{_mandir}/man3/*


%changelog
* Wed Mar 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.41-1
- new upstream release.

* Wed Nov  5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3-7
- rebuilt with perl 5.16.3

* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.3-6vl6
- build with perl 5.12.3
- add Vendor and Distribution tags

* Tue Jul 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3-5
- do not require perl(:MODULE_COMPAT_x.y.z) on Vine Linux 4.x

* Sat May 31 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3-4
- initial build for Vine Linux

* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-3.1
- Rebuild for new perl

* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-2.1
- correct license tag
- add BR: perl(ExtUtils::MakeMaker)

* Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-2
- Basic fixes (BZ 230228)

* Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-1
- Initial Packaging
