diff --git a/Sys-Mmap-0.20.tar.gz b/Sys-Mmap-0.20.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6b8651b7db90ea34040582cbaa1152f690694c14 Binary files /dev/null and b/Sys-Mmap-0.20.tar.gz differ diff --git a/perl-Sys-Mmap.spec b/perl-Sys-Mmap.spec new file mode 100644 index 0000000000000000000000000000000000000000..ef0b9ef04999a2d7134eed909ec64a07e949ef0f --- /dev/null +++ b/perl-Sys-Mmap.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Sys-Mmap +Version: 0.20 +Release: 1 +Summary: Uses mmap to map in a file as a Perl variable +License: GPL-1.0-only or Artistic-1.0-Perl +Group: Development/Libraries +URL: http://search.cpan.org/dist/Sys-Mmap/ +Source0: http://www.cpan.org/authors/id/T/TO/TODDR/Sys-Mmap-%{version}.tar.gz +BuildRequires: perl-generators +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Errno) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(XSLoader) +Requires: perl(DynaLoader) +Requires: perl(XSLoader) +%description +The Sys::Mmap module uses the POSIX mmap call to map in a file as a Perl +variable. Memory access by mmap may be shared between threads or forked +processes, and may be a disc file that has been mapped into memory. +Sys::Mmap depends on your operating system supporting UNIX or POSIX.1b +mmap, of course. +%package help +Summary : Uses mmap to map in a file as a Perl variable +Provides: perl-Sys-Mmap-doc +%description help +The Sys::Mmap module uses the POSIX mmap call to map in a file as a Perl +variable. Memory access by mmap may be shared between threads or forked +processes, and may be a disc file that has been mapped into memory. +Sys::Mmap depends on your operating system supporting UNIX or POSIX.1b +mmap, of course. +%prep +%setup -q -n Sys-Mmap-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile +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 -type f -name '*.bs' -size 0 -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 Artistic Changes Copying META.json README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Sys* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.20-1 +- Specfile autogenerated by Perl_Bot