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..38a2bd6abb8ced4e890030721ad0d11b8dadd7ab --- /dev/null +++ b/perl-Text-FindIndent.spec @@ -0,0 +1,94 @@ +%global cpan_name Text-FindIndent +%global _empty_manifest_terminate_build 0 + +Name: perl-%{cpan_name} +Version: 0.11 +Release: 1 +Summary: Heuristically determine the indent style + +License: Perl License +Group: Development/Libraries +URL: http://search.cpan.org/dist/%{cpan_name}/ +Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: perl >= 0:5.00503 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.80 +BuildRequires: perl(inc::Module::Install::DSL) >= 1.10 +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-%{cpan_name}-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 %{cpan_name}-%{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 +* Fri Jul 16 2021 ice-kylin 0.11-1 +- Initial package