|
|
1f52601 |
# Perform optional tests
|
|
|
1f52601 |
%bcond_without perl_IO_Interactive_enables_optional_test
|
|
|
1f52601 |
|
|
|
6d77042 |
Name: perl-IO-Interactive
|
|
|
9285ef7 |
Version: 1.025
|
|
|
42f27c5 |
Release: 4%{?dist}
|
|
|
6d77042 |
Summary: Utilities for interactive I/O
|
|
|
528d10d |
# lib/IO/Interactive.pm: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
528d10d |
# LICENSE: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0
|
|
|
528d10d |
# license_clarification: Artistic-2.0 (brian d foy's explanation)
|
|
|
528d10d |
# README.pod: "see LICENSE file and the modules files"
|
|
|
528d10d |
# IO-Ineractive-1.021 added the ambiguous LICENSE file. Because there are
|
|
|
528d10d |
# still files only referring to Perl, but not referring to Artistic-2.0,
|
|
|
528d10d |
# I keep the (GPL-1.0-or-later OR Artistic-1.0-Perl) part in the License tag.
|
|
|
3e9bfd6 |
# <https://github.com/briandfoy/io-interactive/issues/2>
|
|
|
528d10d |
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0
|
|
|
98572a7 |
URL: https://metacpan.org/release/IO-Interactive
|
|
|
98572a7 |
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/IO-Interactive-%{version}.tar.gz
|
|
|
a18c7cb |
Source1: license_clarification
|
|
|
6d77042 |
BuildArch: noarch
|
|
|
3e9bfd6 |
BuildRequires: coreutils
|
|
|
3e9bfd6 |
BuildRequires: make
|
|
|
44444f7 |
BuildRequires: perl-generators
|
|
|
1f52601 |
BuildRequires: perl-interpreter
|
|
|
3e9bfd6 |
BuildRequires: perl(:VERSION) >= 5.8
|
|
|
1f52601 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
3e9bfd6 |
BuildRequires: perl(File::Spec)
|
|
|
3e9bfd6 |
BuildRequires: perl(File::Spec::Functions)
|
|
|
6d77042 |
BuildRequires: perl(strict)
|
|
|
3e9bfd6 |
# Test::Manifest not used
|
|
|
6d77042 |
BuildRequires: perl(warnings)
|
|
|
6d77042 |
# Run-time:
|
|
|
6d77042 |
BuildRequires: perl(Carp)
|
|
|
6d77042 |
BuildRequires: perl(IO::Handle)
|
|
|
6d77042 |
# Tests:
|
|
|
4fcbb3d |
BuildRequires: perl(Test::More) >= 1
|
|
|
1f52601 |
%if %{with perl_IO_Interactive_enables_optional_test}
|
|
|
6d77042 |
# Optional tests:
|
|
|
6d77042 |
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
6d77042 |
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
1f52601 |
%endif
|
|
|
3e9bfd6 |
Requires: perl(Carp)
|
|
|
6d77042 |
|
|
|
71b12ab |
# Filter underspecified dependencies
|
|
|
71b12ab |
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$
|
|
|
71b12ab |
|
|
|
6d77042 |
%description
|
|
|
6d77042 |
This module provides utility subroutines that make it easier to develop
|
|
|
6d77042 |
interactive applications.
|
|
|
6d77042 |
|
|
|
71b12ab |
%package tests
|
|
|
71b12ab |
Summary: Tests for %{name}
|
|
|
71b12ab |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
71b12ab |
Requires: perl-Test-Harness
|
|
|
71b12ab |
Requires: perl(Test::More) >= 1
|
|
|
71b12ab |
|
|
|
71b12ab |
%description tests
|
|
|
71b12ab |
Tests from %{name}. Execute them
|
|
|
71b12ab |
with "%{_libexecdir}/%{name}/test".
|
|
|
71b12ab |
|
|
|
6d77042 |
%prep
|
|
|
6d77042 |
%setup -q -n IO-Interactive-%{version}
|
|
|
1f52601 |
install -m 0644 %{SOURCE1} .
|
|
|
1f52601 |
%if !%{with perl_IO_Interactive_enables_optional_test}
|
|
|
1f52601 |
rm t/pod*
|
|
|
1f52601 |
perl -i -ne 'print $_ unless m{^t/pod}' MANIFEST
|
|
|
1f52601 |
%endif
|
|
|
71b12ab |
chmod +x t/*.t
|
|
|
6d77042 |
|
|
|
6d77042 |
%build
|
|
|
1f52601 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
1f52601 |
%{make_build}
|
|
|
6d77042 |
|
|
|
6d77042 |
%install
|
|
|
1f52601 |
%{make_install}
|
|
|
528d10d |
%{_fixperms} %{buildroot}/*
|
|
|
71b12ab |
# Install tests
|
|
|
71b12ab |
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
71b12ab |
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
71b12ab |
%if %{with perl_IO_Interactive_enables_optional_test}
|
|
|
71b12ab |
rm %{buildroot}%{_libexecdir}/%{name}/t/pod*
|
|
|
71b12ab |
%endif
|
|
|
71b12ab |
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
71b12ab |
#!/bin/sh
|
|
|
71b12ab |
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
71b12ab |
EOF
|
|
|
71b12ab |
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
6d77042 |
|
|
|
6d77042 |
%check
|
|
|
528d10d |
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
6d77042 |
make test
|
|
|
6d77042 |
|
|
|
6d77042 |
%files
|
|
|
3e9bfd6 |
%license LICENSE
|
|
|
a18c7cb |
%doc Changes examples license_clarification README.pod
|
|
|
528d10d |
%dir %{perl_vendorlib}/IO
|
|
|
528d10d |
%{perl_vendorlib}/IO/Interactive.pm
|
|
|
528d10d |
%{_mandir}/man3/IO::Interactive.*
|
|
|
6d77042 |
|
|
|
71b12ab |
%files tests
|
|
|
71b12ab |
%{_libexecdir}/%{name}
|
|
|
71b12ab |
|
|
|
6d77042 |
%changelog
|
|
|
42f27c5 |
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.025-4
|
|
|
42f27c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
42f27c5 |
|
|
|
d37d30f |
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.025-3
|
|
|
d37d30f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
d37d30f |
|
|
|
eac01de |
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.025-2
|
|
|
eac01de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
eac01de |
|
|
|
9285ef7 |
* Fri Jul 07 2023 Petr Pisar <ppisar@redhat.com> - 1.025-1
|
|
|
9285ef7 |
- 1.025 bump
|
|
|
9285ef7 |
|
|
|
528d10d |
* Mon Apr 17 2023 Petr Pisar <ppisar@redhat.com> - 1.023-8
|
|
|
528d10d |
- Convert a licene tag to an SPDX format
|
|
|
71b12ab |
- Package the tests
|
|
|
528d10d |
|
|
|
5bb72b3 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.023-7
|
|
|
5bb72b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
5bb72b3 |
|
|
|
79800eb |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.023-6
|
|
|
79800eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
79800eb |
|
|
|
d5ddcad |
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.023-5
|
|
|
d5ddcad |
- Perl 5.36 rebuild
|
|
|
d5ddcad |
|
|
|
c82e4fb |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.023-4
|
|
|
c82e4fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
c82e4fb |
|
|
|
bf82915 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.023-3
|
|
|
bf82915 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
bf82915 |
|
|
|
585ff63 |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.023-2
|
|
|
585ff63 |
- Perl 5.34 rebuild
|
|
|
585ff63 |
|
|
|
4fcbb3d |
* Fri Feb 05 2021 Petr Pisar <ppisar@redhat.com> - 1.023-1
|
|
|
4fcbb3d |
- 1.023 bump
|
|
|
4fcbb3d |
|
|
|
a482293 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-15
|
|
|
a482293 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
a482293 |
|
|
|
666b503 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-14
|
|
|
666b503 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
666b503 |
|
|
|
f658c77 |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.022-13
|
|
|
f658c77 |
- Perl 5.32 rebuild
|
|
|
f658c77 |
|
|
|
1f52601 |
* Thu Jun 18 2020 Petr Pisar <ppisar@redhat.com> - 1.022-12
|
|
|
1f52601 |
- Moderize a spec file
|
|
|
1f52601 |
|
|
|
3dcad26 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-11
|
|
|
3dcad26 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
3dcad26 |
|
|
|
fb86f48 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-10
|
|
|
fb86f48 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
fb86f48 |
|
|
|
7d6b5e9 |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.022-9
|
|
|
7d6b5e9 |
- Perl 5.30 rebuild
|
|
|
7d6b5e9 |
|
|
|
c10674a |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-8
|
|
|
c10674a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c10674a |
|
|
|
398ff9f |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-7
|
|
|
398ff9f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
398ff9f |
|
|
|
d5e767d |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.022-6
|
|
|
d5e767d |
- Perl 5.28 rebuild
|
|
|
d5e767d |
|
|
|
201cef7 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-5
|
|
|
201cef7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
201cef7 |
|
|
|
212b345 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-4
|
|
|
212b345 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
212b345 |
|
|
|
7eee86f |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.022-3
|
|
|
7eee86f |
- Perl 5.26 rebuild
|
|
|
7eee86f |
|
|
|
cc28b64 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-2
|
|
|
cc28b64 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
cc28b64 |
|
|
|
b2212c7 |
* Mon Sep 05 2016 Petr Pisar <ppisar@redhat.com> - 1.022-1
|
|
|
b2212c7 |
- 1.022 bump
|
|
|
b2212c7 |
|
|
|
da4a078 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.021-4
|
|
|
da4a078 |
- Perl 5.24 rebuild
|
|
|
da4a078 |
|
|
|
43d21bf |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.021-3
|
|
|
43d21bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
43d21bf |
|
|
|
a18c7cb |
* Fri Jan 29 2016 Petr Pisar <ppisar@redhat.com> - 1.021-2
|
|
|
a18c7cb |
- License clarification added
|
|
|
a18c7cb |
|
|
|
3e9bfd6 |
* Thu Jan 28 2016 Petr Pisar <ppisar@redhat.com> - 1.021-1
|
|
|
3e9bfd6 |
- 1.021 bump
|
|
|
3e9bfd6 |
- License changed to ((GPL+ or Artistic) and (Artistic 2.0))
|
|
|
3e9bfd6 |
|
|
|
adef028 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-5
|
|
|
adef028 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
adef028 |
|
|
|
2fee6b6 |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.0.6-4
|
|
|
2fee6b6 |
- Perl 5.22 rebuild
|
|
|
2fee6b6 |
|
|
|
0c4468e |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.0.6-3
|
|
|
0c4468e |
- Perl 5.20 rebuild
|
|
|
0c4468e |
|
|
|
e6b106f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
|
|
|
e6b106f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e6b106f |
|
|
|
6d77042 |
* Thu Mar 27 2014 Petr Pisar <ppisar@redhat.com> 0.0.6-1
|
|
|
6d77042 |
- Specfile autogenerated by cpanspec 1.78.
|