Name: perl-CPAN-Uploader Version: 0.100760 Release: 1%{?dist} Summary: Upload things to the CPAN License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/CPAN-Uploader/ Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/CPAN-Uploader-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Getopt::Long::Descriptive) >= 0.084 BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(HTTP::Status) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Term::ReadKey) # tests BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) Requires: perl(Term::ReadKey) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} %description CPAN::Uploader is a module which automates the process of uploading a file to CPAN using PAUSE, the Perl Authors Upload Server. %prep %setup -q -n CPAN-Uploader-%{version} # don't conflict with cpan-upload mv bin/cpan-upload bin/cpan-uploader sed -i -e 's!bin/cpan-upload!bin/cpan-uploader!' Makefile.PL %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$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 RELEASE_TESTING=1 make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes dist.ini LICENSE META.json README %{perl_vendorlib}/* %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %changelog * Thu Apr 08 2010 Iain Arnell 0.100760-1 - Specfile autogenerated by cpanspec 1.78. - use perl_default_filter and DESTDIR - tweak requires