1f52601
# Perform optional tests
1f52601
%bcond_without perl_IO_Interactive_enables_optional_test
1f52601
6d77042
Name:           perl-IO-Interactive
4fcbb3d
Version:        1.023
bf82915
Release:        3%{?dist}
6d77042
Summary:        Utilities for interactive I/O
a18c7cb
# LICENSE:                  "the same terms as perl itself" and Artistic 2.0
a18c7cb
# license_clarification:    Artistic 2.0 (brian d foy's explanation)
a18c7cb
# lib/IO/Interactive.pm:    "the same terms as Perl itself"
a18c7cb
# IO-Ineractive-1.021 added the ambiguous LICENSE file, because there are
a18c7cb
# still files referring to Perl, but not referring Artistic 2.0, I keep the
a18c7cb
# (GPL+ or Artistic) part in the License tag.
3e9bfd6
# <https://github.com/briandfoy/io-interactive/issues/2>
3e9bfd6
License:        (GPL+ or Artistic) 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
6d77042
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
3e9bfd6
Requires:       perl(Carp)
6d77042
6d77042
%description
6d77042
This module provides utility subroutines that make it easier to develop
6d77042
interactive applications.
6d77042
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
6d77042
6d77042
%build
1f52601
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
1f52601
%{make_build}
6d77042
6d77042
%install
1f52601
%{make_install}
6d77042
%{_fixperms} $RPM_BUILD_ROOT/*
6d77042
6d77042
%check
6d77042
make test
6d77042
6d77042
%files
3e9bfd6
%license LICENSE
a18c7cb
%doc Changes examples license_clarification README.pod
6d77042
%{perl_vendorlib}/*
6d77042
%{_mandir}/man3/*
6d77042
6d77042
%changelog
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.