5bc6c89
Name:           perl-TermReadKey
3c0ac36
Version:        2.38
e1c87a6
Release:        21%{?dist}
5bc6c89
Summary:        A perl module for simple terminal control
9758171
License:        TermReadKey AND (GPL-1.0-or-later OR Artistic-1.0-Perl)
acf90e5
URL:            https://metacpan.org/release/TermReadKey
acf90e5
Source0:        https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
1109e0a
Patch0: perl-TermReadKey-configure-c99.patch
Petr Šabata e97864f
# Build
fb03357
BuildRequires:  findutils
128fb37
BuildRequires:  gcc
fb03357
BuildRequires:  make
ae4dc93
BuildRequires:  perl-devel
ae4dc93
BuildRequires:  perl-generators
128fb37
BuildRequires:  perl-interpreter
fb03357
BuildRequires:  perl(Carp)
Petr Šabata e97864f
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
3c0ac36
BuildRequires:  perl(strict)
3c0ac36
BuildRequires:  perl(warnings)
Petr Šabata e97864f
# Runtime
Petr Šabata 82b0ecd
BuildRequires:  perl(Config)
Petr Šabata 82b0ecd
BuildRequires:  perl(Cwd)
Petr Šabata e97864f
BuildRequires:  perl(DynaLoader)
540ffcd
BuildRequires:  perl(Exporter)
fb03357
BuildRequires:  perl(File::Basename)
fb03357
BuildRequires:  perl(File::Spec)
Petr Šabata b9dcb03
BuildRequires:  perl(vars)
Petr Šabata e97864f
# Tests only
Petr Šabata e97864f
BuildRequires:  perl(Fcntl)
Petr Šabata e97864f
BuildRequires:  perl(Test::More)
cvsdist a95fa8e
540ffcd
%{?perl_default_filter}
540ffcd
cvsdist a95fa8e
%description
cvsdist 2015a42
Term::ReadKey is a compiled perl module dedicated to providing simple
5bc6c89
control over terminal driver modes (cbreak, raw, cooked, etc.)
5bc6c89
support for non-blocking reads, if the architecture allows, and some
5bc6c89
generalized handy functions for working with terminals.  One of the
5bc6c89
main goals is to have the functions as portable as possible, so you
5bc6c89
can just plug in "use Term::ReadKey" on any architecture and have a
5bc6c89
good likelyhood of it working.
5bc6c89
e1c87a6
%package tests
e1c87a6
Summary:        Tests for %{name}
e1c87a6
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
e1c87a6
Requires:       perl-Test-Harness
e1c87a6
e1c87a6
%description tests
e1c87a6
Tests from %{name}. Execute them
e1c87a6
with "%{_libexecdir}/%{name}/test".
e1c87a6
cvsdist a95fa8e
%prep
1109e0a
%autosetup -p1 -n TermReadKey-%{version}
e1c87a6
# Help generators to recognize Perl scripts
e1c87a6
for F in t/*.t; do
e1c87a6
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
e1c87a6
    chmod +x "$F"
e1c87a6
done
cvsdist a95fa8e
cvsdist a95fa8e
%build
64b726f
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
64b726f
%{make_build} OPTIMIZE="%{optflags}"
cvsdist a95fa8e
cvsdist a95fa8e
%install
64b726f
%{make_install}
fb03357
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
128fb37
%{_fixperms} %{buildroot}/*
cvsdist a95fa8e
e1c87a6
# Install tests
e1c87a6
mkdir -p %{buildroot}%{_libexecdir}/%{name}
e1c87a6
cp -a t %{buildroot}%{_libexecdir}/%{name}
e1c87a6
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
e1c87a6
#!/bin/sh
e1c87a6
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
e1c87a6
EOF
e1c87a6
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
e1c87a6
573981d
%check
5bc6c89
make test
5bc6c89
5bc6c89
%files
fb03357
%doc Changes example README
e1c87a6
%{perl_vendorarch}/Term*
e1c87a6
%{perl_vendorarch}/auto/Term*
e1c87a6
%{_mandir}/man3/Term::ReadKey*
e1c87a6
e1c87a6
%files tests
e1c87a6
%{_libexecdir}/%{name}
cvsdist a95fa8e
cvsdist a95fa8e
%changelog
e1c87a6
* Thu Feb 01 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-21
e1c87a6
- Package tests
e1c87a6
8547b63
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-20
8547b63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8547b63
b627e7d
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-19
b627e7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b627e7d
c2792c6
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-18
c2792c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c2792c6
05577e7
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-17
05577e7
- Perl 5.38 rebuild
05577e7
56f49ef
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-16
56f49ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
56f49ef
1109e0a
* Fri Nov 25 2022 Florian Weimer <fweimer@redhat.com> - 2.38-15
1109e0a
- Port Configure.pm to C99
1109e0a
fa588f9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-14
fa588f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
fa588f9
bf99c31
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-13
bf99c31
- Perl 5.36 rebuild
bf99c31
0dd0fc1
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-12
0dd0fc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0dd0fc1
5c44d34
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-11
5c44d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5c44d34
fb63828
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-10
fb63828
- Perl 5.34 rebuild
fb63828
9d2c322
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-9
9d2c322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9d2c322
748b3d7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-8
748b3d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
748b3d7
290cea1
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-7
290cea1
- Perl 5.32 rebuild
290cea1
64b726f
* Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 2.38-6
64b726f
- Spec file cleanups: Use make_build and make_install macros
64b726f
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
64b726f
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
64b726f
e2a381e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-5
e2a381e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e2a381e
ba68845
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-4
ba68845
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ba68845
1c4bc67
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-3
1c4bc67
- Perl 5.30 rebuild
1c4bc67
caae8a1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-2
caae8a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
caae8a1
3c0ac36
* Mon Jan 07 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-1
3c0ac36
- 2.38 bump
3c0ac36
16f036e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-9
16f036e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
16f036e
36ad8fd
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.37-8
36ad8fd
- Perl 5.28 rebuild
36ad8fd
128fb37
* Mon Feb 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.37-7
128fb37
- Add build-require gcc
128fb37
2e528e8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-6
2e528e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2e528e8
c8b8e23
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-5
c8b8e23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c8b8e23
87d9636
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-4
87d9636
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
87d9636
e496354
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.37-3
e496354
- Perl 5.26 rebuild
e496354
012af49
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-2
012af49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
012af49
fb03357
* Mon Oct 10 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.37-1
fb03357
- 2.37 bump
fb03357
213e3df
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.33-5
213e3df
- Perl 5.24 rebuild
213e3df
ad5f83d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.33-4
ad5f83d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ad5f83d
d991274
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.33-3
d991274
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d991274
5d5e757
* Tue Jun 09 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.33-2
5d5e757
- Perl 5.22 rebuild
5d5e757
Petr Šabata e97864f
* Fri Jun 05 2015 Petr Šabata <contyk@redhat.com> - 2.33-1
Petr Šabata e97864f
- 2.33 bump
Petr Šabata e97864f
5581b54
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-6
5581b54
- Perl 5.22 rebuild
5581b54
4a1ca82
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-5
4a1ca82
- Perl 5.20 rebuild
4a1ca82
Petr Šabata c8dc728
* Mon Aug 18 2014 Petr Šabata <contyk@redhat.com> - 2.32-4
Petr Šabata c8dc728
- Fix FTBFS
Petr Šabata c8dc728
b0f4a61
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.32-3
b0f4a61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b0f4a61
a7022e1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.32-2
a7022e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a7022e1
Petr Šabata b9dcb03
* Mon May 26 2014 Petr Šabata <contyk@redhat.com> - 2.32-1
Petr Šabata b9dcb03
- 2.32 bump
Petr Šabata b9dcb03
3d4a3f4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-20
3d4a3f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3d4a3f4
c577ac7
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.30-19
c577ac7
- Perl 5.18 rebuild
c577ac7
e03b940
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-18
e03b940
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e03b940
540ffcd
* Tue Aug 21 2012 Petr Pisar <ppisar@redhat.com> - 2.30-17
540ffcd
- Modernize spec file
540ffcd
- Specify all dependencies
540ffcd
- Change license to "(Copyright only) and (Artistic or GPL+)" because of
540ffcd
  ppport.h
540ffcd
d85e4ee
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-16
d85e4ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d85e4ee
0d1bbb9
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 2.30-15
0d1bbb9
- Perl 5.16 rebuild
0d1bbb9
f0069d6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-14
f0069d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f0069d6
cdb120e
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.30-13
cdb120e
- Perl mass rebuild
cdb120e
24d359e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-12
24d359e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24d359e
c6875d0
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.30-11
c6875d0
- 661697 rebuild for fixing problems with vendorach/lib
c6875d0
6e3f024
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.30-10
6e3f024
- Mass rebuild with perl-5.12.0
6e3f024
ae4368c
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 2.30-9
ae4368c
- rebuild against perl 5.10.1
ae4368c
7e0f0ac
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-8
7e0f0ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7e0f0ac
4f2773d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30-7
4f2773d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4f2773d
6be0693
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-6
6be0693
- Rebuild for perl 5.10 (again)
6be0693
57c4078
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.30-5
57c4078
- Autorebuild for GCC 4.3
57c4078
6da8ead
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-4
6da8ead
- rebuild for new perl
6da8ead
573981d
* Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 2.30-3
573981d
- fix various issues from package review:
573981d
- remove extra || : from %%check
573981d
- add dist tag to release
573981d
- remove BR: perl
573981d
- fix tabs and spacing
573981d
1c1ead6
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-2
1c1ead6
- correct license tag
1c1ead6
- add BR: perl(ExtUtils::MakeMaker)
1c1ead6
7f41c75
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
7f41c75
- rebuild
7f41c75
f560ab8
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.2
f560ab8
- bump again for double-long bug on ppc(64)
f560ab8
7d3bb5f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.1
7d3bb5f
- rebuilt for new gcc4.1 snapshot and glibc changes
7d3bb5f
jvdias a198349
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 2.30-1.2
jvdias a198349
- rebuild for new perl-5.8.8
jvdias a198349
c6f2e72
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
c6f2e72
- rebuilt for new gcc
c6f2e72
5bc6c89
* Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
5bc6c89
- Update to 2.30.
5bc6c89
- spec cleanup (#153200)
5852fa4
cvsdist 30a1896
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 30a1896
- rebuilt
cvsdist 30a1896
cvsdist 6ad0c51
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6ad0c51
- rebuilt
cvsdist 6ad0c51
cvsdist 6ad0c51
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6ad0c51
- rebuilt
cvsdist 6ad0c51
cvsdist bdeb76e
* Tue Jun 17 2003 Chip Turner <cturner@redhat.com> 2.20-12
cvsdist bdeb76e
- rebuild
cvsdist bdeb76e
cvsdist c25b481
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
cvsdist c25b481
- version bump and rebuild
cvsdist c25b481
cvsdist c25b481
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
cvsdist c25b481
- rebuild
cvsdist c25b481
cvsdist c25b481
* Tue Sep 10 2002 Chip Turner <cturner@redhat.com>
cvsdist c25b481
- remove 'make test' as it seems to open a tty and hang
cvsdist c25b481
cvsdist 7851681
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
cvsdist 7851681
- automated release bump and build
cvsdist 7851681
cvsdist 7851681
* Tue Aug  6 2002 Chip Turner <cturner@localhost.localdomain>
cvsdist 7851681
- update to 2.20
cvsdist 7851681
cvsdist a95fa8e
* Wed Jan 30 2002 cturner@redhat.com
cvsdist a95fa8e
- Specfile autogenerated
cvsdist a95fa8e