diff --git a/Sub-Infix-0.004.tar.gz b/Sub-Infix-0.004.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..518ed7735e8cd79ebd2898f550a3529d0d9a852a Binary files /dev/null and b/Sub-Infix-0.004.tar.gz differ diff --git a/perl-Sub-Infix.spec b/perl-Sub-Infix.spec new file mode 100644 index 0000000000000000000000000000000000000000..f186fb95ce2c939f24d54f13235daef330e4b761 --- /dev/null +++ b/perl-Sub-Infix.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Sub-Infix +Version: 0.004 +Release: 1 +Summary: Create a fake infix operator +License: GPL-1.0-only or Artistic-1.0-Perl +Group: Development/Libraries +URL: http://search.cpan.org/dist/Sub-Infix/ +Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/Sub-Infix-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.47 +%description +Sub::Infix creates fake infix operators using overloading. It doesn't use +source filters, or Devel::Declare, or any of that magic. (Though +Devel::Declare isn't magic enough to define infix operators anyway; I +know; I've tried.) It's pure Perl, has no non-core dependencies, and runs +on Perl 5.6. +%package help +Summary : Create a fake infix operator +Provides: perl-Sub-Infix-doc +%description help +Sub::Infix creates fake infix operators using overloading. It doesn't use +source filters, or Devel::Declare, or any of that magic. (Though +Devel::Declare isn't magic enough to define infix operators anyway; I +know; I've tried.) It's pure Perl, has no non-core dependencies, and runs +on Perl 5.6. +%prep +%setup -q -n Sub-Infix-%{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 CONTRIBUTING COPYRIGHT CREDITS dist.ini doap.ttl LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.004-1 +- Specfile autogenerated by Perl_Bot