perl-IO-Tty/perl-IO-Tty.spec
Dirk Stoecker 0bf9181d07 Accepting request 1136597 from devel:languages:perl:autoupdate
- updated to 1.20
   see /usr/share/doc/packages/perl-IO-Tty/ChangeLog
  1.20 2023-12-28 Todd Rinaldo <toddr@cpan.org>
      * #32 - Skip t/pty_get_winsize.t tests on AIX
      * #27 - Fix patchlevel check for util.h
  1.19 2023-12-28 Todd Rinaldo <toddr@cpan.org>
      * #37 - Remove --no-undefined from compiler test which is not compatible with all platforms.

OBS-URL: https://build.opensuse.org/request/show/1136597
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Tty?expand=0&rev=27
2024-01-04 15:13:45 +00:00

87 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-IO-Tty
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name IO-Tty
Name: perl-IO-Tty
Version: 1.200.0
Release: 0
%define cpan_version 1.20
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Pseudo ttys and constants
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(IO::Pty) = %{version}
Provides: perl(IO::Tty) = %{version}
%define __perllib_provides /bin/true
%{perl_requires}
%description
'IO::Tty' is used internally by 'IO::Pty' to create a pseudo-tty. You
wouldn't want to use it directly except to import constants, use 'IO::Pty'.
For a list of importable constants, see IO::Tty::Constant.
Windows is now supported, but ONLY under the Cygwin environment, see
http://sources.redhat.com/cygwin/.
Please note that pty creation is very system-dependend. From my experience,
any modern POSIX system should be fine. Find below a list of systems that
'IO::Tty' should work on. A more detailed table (which is slowly getting
out-of-date) is available from the project pages document manager at
SourceForge http://sourceforge.net/projects/expectperl/.
If you have problems on your system and your system is listed in the
"verified" list, you probably have some non-standard setup, e.g. you
compiled your Linux-kernel yourself and disabled ptys (bummer!). Please ask
your friendly sysadmin for help.
If your system is not listed, unpack the latest version of 'IO::Tty', do a
''perl Makefile.PL; make; make test; uname -a'' and send me
(_RGiersig@cpan.org_) the results and I'll see what I can deduce from that.
There are chances that it will work right out-of-the-box...
If it's working on your system, please send me a short note with details
(version number, distribution, etc. 'uname -a' and 'perl -V' is a good
start; also, the output from "perl Makefile.PL" contains a lot of
interesting info, so please include that as well) so I can get an overview.
Thanks!
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc ChangeLog README try
%changelog