Name: perl-Module-Install-RTx Version: 0.25 Release: 3%{?dist} Summary: RT extension installer License: MIT Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Install-RTx/ Source0: http://www.cpan.org/modules/by-module/Module/Module-Install-RTx-%{version}.tar.gz # http://rt.cpan.org/Ticket/Display.html?id=52776 Patch0: perl-Module-Install-RTx-0.25-try_supplied_RTHOME_first.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Module::Install::Admin) >= 0.4 %if 0%{?_with_test_signature} BuildRequires: perl(Module::Signature) %endif Requires: perl(Module::Install::Admin) >= 0.4 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This Module::Install extension implements one function, RTx, that takes the extension name as the only argument. %prep %setup -q -n Module-Install-RTx-%{version} %patch0 -p0 %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 %if 0%{?_with_test_signature} TEST_SIGNATURE=1 make test %else make test %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Dec 18 2009 Xavier Bachelot 0.25-3 - Don't install backup file. * Tue Dec 15 2009 Xavier Bachelot 0.25-2 - Try RT.pm from the supplied RTHOME environment variable first. * Mon Dec 14 2009 Xavier Bachelot 0.25-1 - Specfile autogenerated by cpanspec 1.77. - Conditionally enable module signature test.