Name: perl-RT-Authen-ExternalAuth Version: 0.09 Release: 1%{?dist} Summary: RT Authentication using External Sources License: GPLv2 Group: Development/Libraries URL: http://search.cpan.org/dist/RT-Authen-ExternalAuth/ Source0: http://www.cpan.org/modules/by-module/RT/RT-Authen-ExternalAuth-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(RT) BuildRequires: perl(Convert::ASN1) BuildRequires: perl(Net::LDAP) # This plugin will work only with RT 3.8.1 or later # For RT 3.6, use 0.05 Requires: rt3 > 3.8.1 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description A complete package for adding external authentication mechanisms to RT. It currently supports LDAP via Net::LDAP and External Database authentication for any database with an installed DBI driver. %prep %setup -q -n RT-Authen-ExternalAuth-%{version} sed -i -e 's/\r//' lib/RT/Authen/ExternalAuth/DBI.pm sed -i -e 's/\r//' lib/RT/Authen/ExternalAuth/LDAP.pm chmod a-x ChangeLog LICENSE README find lib/RT -name *.pm -exec chmod a-x {} ';' mv etc/RT_SiteConfig.pm etc/RT_SiteConfig.pm.example %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 ChangeLog LICENSE README etc/RT_SiteConfig.pm.example %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu May 19 2011 Xavier Bachelot 0.09-1 - Update to 0.09. * Wed Jul 07 2010 Xavier Bachelot 0.08-2 - Add example config file to %%doc. * Wed Jun 03 2009 Xavier Bachelot 0.08-1 - Specfile autogenerated by cpanspec 1.77. - Fix License:. - Fix spurious exec perms. - Fix wrong end of line encoding.