Compare commits

...

No commits in common. 'c9' and 'i10c-beta' have entirely different histories.

@ -1,19 +1,18 @@
Name: perl-File-Slurp Name: perl-File-Slurp
Version: 9999.32 Version: 9999.32
Release: 5%{?dist} Release: 16%{?dist}
Summary: Efficient Reading/Writing of Complete Files Summary: Efficient Reading/Writing of Complete Files
License: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/File-Slurp URL: https://metacpan.org/release/File-Slurp
Source0: https://cpan.metacpan.org/modules/by-module/File/File-Slurp-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/File/File-Slurp-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: %{__perl}
BuildRequires: %{__make}
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time # Run-time
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
@ -38,6 +37,10 @@ BuildRequires: perl(Socket)
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Remove private test modules
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((FSGlobby|FileSlurpTest|FileSlurpTestOverride)\\)$
%description %description
This module provides subs that allow you to read or write entire files with This module provides subs that allow you to read or write entire files with
one simple call. They are designed to be simple to use, have flexible ways one simple call. They are designed to be simple to use, have flexible ways
@ -47,17 +50,40 @@ a sub to read in all the files in a directory other than . and ..
These slurp/spew subs work for files, pipes and sockets, and stdio, These slurp/spew subs work for files, pipes and sockets, and stdio,
pseudo-files, and DATA. pseudo-files, and DATA.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep %prep
%setup -q -n File-Slurp-%{version} %setup -q -n File-Slurp-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{__make} %{?_smp_mflags} %{make_build}
%install %install
%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
# Remove author tests.
rm -f %{buildroot}%{_libexecdir}/%{name}/t/00*
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check %check
%{__make} test %{__make} test
@ -68,13 +94,52 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%{perl_vendorlib}/File %{perl_vendorlib}/File
%{_mandir}/man3/* %{_mandir}/man3/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 9999.32-5 * Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 9999.32-16
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for MSVSphere 10
Related: rhbz#1991688
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 9999.32-16
- Fix filter of dependencies
* Fri Jul 12 2024 Michal Josef Špaček <mspacek@redhat.com> - 9999.32-15
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 9999.32-14
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Nov 29 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 9999.32-9
- Modernize spec.
- Convert license to SPDX.
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 9999.32-7
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 9999.32-4 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 9999.32-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-3 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9999.32-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save