%global _empty_manifest_terminate_build 0 Name: perl-namespace-clean Version: 0.27 Release: 1 Summary: Keep imports and functions out of your namespace License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/namespace-clean/ Source0: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/namespace-clean-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl(B::Hooks::EndOfScope) >= 0.12 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Package::Stash) >= 0.23 BuildRequires: perl(Test::More) >= 0.47 Requires: perl(B::Hooks::EndOfScope) >= 0.12 Requires: perl(Package::Stash) >= 0.23 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # perl(namespace::clean::_Util) is not provided by this package %global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(namespace::clean::_Util\\) %description Keeping packages clean %package help Summary: Keep imports and functions out of your namespace Provides: perl-namespace-clean-doc %description help Keeping packages clean %prep %setup -q -n namespace-clean-%{version} %build export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install export PERL_MM_OPT="" 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/* pushd %{buildroot} touch filelist.lst if [ -d usr/bin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ];then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib ];then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi popd mv %{buildroot}/filelist.lst . %check make test %clean rm -rf $RPM_BUILD_ROOT %files -f filelist.lst %defattr(-,root,root,-) %doc Changes META.json %{perl_vendorlib}/* %files help %{_mandir}/* %changelog * Sun Oct 09 2022 Perl_Bot 0.27-1 - Specfile autogenerated by Perl_Bot