From 3c2c5d4ca9e757a47fe37ab39526e9786971d262 Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Mar 01 2016 12:25:28 +0000 Subject: Package cleanup --- diff --git a/perl-Net-SFTP.spec b/perl-Net-SFTP.spec index ae27ee7..335bd93 100644 --- a/perl-Net-SFTP.spec +++ b/perl-Net-SFTP.spec @@ -1,19 +1,17 @@ Name: perl-Net-SFTP Version: 0.10 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Secure File Transfer Protocol client License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Net-SFTP/ Source0: http://www.cpan.org/authors/id/D/DB/DBROBINS/Net-SFTP-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +# Build BuildRequires: coreutils -BuildRequires: findutils BuildRequires: make BuildRequires: perl -BuildRequires: perl(ExtUtils::MakeMaker) -# Run-time: +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Runtime BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(constant) @@ -24,9 +22,9 @@ BuildRequires: perl(Net::SSH::Perl::Constants) BuildRequires: perl(Net::SSH::Perl::Util) BuildRequires: perl(strict) BuildRequires: perl(vars) -# Tests: +# Tests only BuildRequires: perl(Test) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description Net::SFTP is a pure-Perl implementation of the Secure File Transfer @@ -38,34 +36,29 @@ found at http://www.openssh.com/txt/draft-ietf-secsh-filexfer-00.txt. %prep %setup -q -n Net-SFTP-%{version} +chmod a-x -c eg/* %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 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/* +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) -%doc Changes LICENSE README ToDo +%license LICENSE +%doc Changes README ToDo eg %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Tue Mar 01 2016 Petr Šabata - 0.10-22 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering - 0.10-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild