Name: perl-RT-Extension-SaltedPasswords Version: 1.1 Release: 1%{?dist} Summary: RT::Extension::SaltedPasswords Perl module License: GPL+ or Artistic Group: Development/Libraries URL: http://bestpractical.com/rt/ Source0: http://download.bestpractical.com/pub/rt/release/RT-Extension-SaltedPasswords-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Digest::SHA) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(RT) Requires: perl(Digest::SHA) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This extension is a security hotfix for all RT versions prior to 3.8.9. It has been tested on RT 3.8.x and RT 3.6.x, but may work with previous versions as well. %prep %setup -q -n RT-Extension-SaltedPasswords-%{version} ## Apply some surgery to RT.pm #sed -i -e "s.\$LocalPath = '/usr/local/lib/rt3'\;.\$LocalPath = '%{perl_vendorlib}'\;." # -e "s.\$LocalEtcPath = '/usr/local/etc/rt3'\;.\$LocalEtcPath = '/etc/rt3'\;." # $RPM_BUILD_ROOT%{perl_vendorlib}/RT.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT install -Dp sbin/vulnerable-passwords $RPM_BUILD_ROOT/%{_sbindir}/rt3-vulnerable-passwords 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 README %{perl_vendorlib}/* %{_mandir}/man3/* %{_sbindir}/rt3-vulnerable-passwords %changelog * Wed May 18 2011 Xavier Bachelot 1.1-1 - Specfile autogenerated by cpanspec 1.78.