%define perl_vendorlib %(eval "`%{_bindir}/perl -V:installvendorlib`"; echo $installvendorlib) Summary: Perl module implementing the Diffie-Hellman key exchange system Name: perl-Crypt-DH Version: 0.06 Release: 1 License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Crypt-DH/ Source0: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Crypt-DH-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) %description Crypt::DH is a Perl implementation of the Diffie-Hellman key exchange system. Diffie-Hellman is an algorithm by which two parties can agree on a shared secret key, known only to them. The secret is negotiated over an insecure network without the two parties ever passing the actual shared secret, or their private keys, between them. %prep %setup -q -n Crypt-DH-%{version} %build %{_bindir}/perl Makefile.PL INSTALLDIRS=vendor make %install [ "${RPM_BUILD_ROOT}" != "/" ] && 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}/* %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc Changes ToDo %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun Nov 09 2008 Michael Perzl - 0.06-1 - first version for AIX V5.1 and higher