diff --git a/Text-FindIndent-0.11.tar.gz b/Text-FindIndent-0.11.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f588fa887ac7f5b8c64d742871ab81124c89a67 Binary files /dev/null and b/Text-FindIndent-0.11.tar.gz differ diff --git a/perl-Text-FindIndent.spec b/perl-Text-FindIndent.spec new file mode 100644 index 0000000000000000000000000000000000000000..a421bd5166764b0a2e39cfa3b5a65cc9e107cbfa --- /dev/null +++ b/perl-Text-FindIndent.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Text-FindIndent +Version: 0.11 +Release: 1 +Summary: Heuristically determine the indent style +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Text-FindIndent/ +Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Text-FindIndent-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.00503 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.80 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This is a module that attempts to intuit the underlying indent "policy" for +a text file (most likely a source code file). + +%package help +Summary : Heuristically determine the indent style +Provides: perl-Text-FindIndent-doc + +%description help +This is a module that attempts to intuit the underlying indent "policy" for +a text file (most likely a source code file). + +%prep +%setup -q -n Text-FindIndent-%{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 +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Tue Jul 20 2021 Perl_Bot 0.11-1 +- Specfile autogenerated by Perl_Bot