%define module_version 1.41 %define module_name Tie-Array-Sorted # BEGIN SourceDeps(oneline): BuildRequires: perl(Class::Struct) perl(ExtUtils::MakeMaker) perl(Test::More) perl(Tie::Array) perl(base) # END SourceDeps(oneline) %define _unpackaged_files_terminate_build 1 BuildRequires: perl-rpm-build-perl perl-devel perl-podlators rpm-build Name: perl-%{module_name} Version: 1.41 Release: 1%{?dist} Summary: perl module %{module_name} Group: Development/Perl License: perl Url: https://metacpan.org/pod/Tie::Array::Sorted Source0: http://cpan.org.ua/authors/id/T/TM/TMTM/%{module_name}-%{module_version}.tar.gz BuildArch: noarch %description %summary %prep %setup -n %module_name-%module_version %build #perl Makefile.PL installdirs=vendor optimize="%{optimize}" #make installdirs=vendor optimize="%{optimize}" %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install #%perl_vendor_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/* %files %doc Changes README #%perl_vendor_privlib/T* %{perl_vendorlib}/T* %{_mandir}/man3/* %changelog * Mon Sep 16 2013 Igor Vlasenko 1.41-alt1 - regenerated from template by package builder * Tue Sep 03 2013 Igor Vlasenko 1.2-alt1 - initial import by package builder