2007-01-16 00:30:56 +01:00
|
|
|
#
|
2015-04-14 08:02:54 +02:00
|
|
|
# spec file for package perl-IO-Tty
|
2007-01-16 00:30:56 +01:00
|
|
|
#
|
2024-01-04 16:13:45 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:30:56 +01:00
|
|
|
#
|
2008-10-23 04:43:11 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-01-21 15:46:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:30:56 +01:00
|
|
|
#
|
|
|
|
|
2015-04-14 08:02:54 +02:00
|
|
|
|
2021-01-27 17:13:19 +01:00
|
|
|
%define cpan_name IO-Tty
|
2007-01-16 00:30:56 +01:00
|
|
|
Name: perl-IO-Tty
|
2024-01-04 16:13:45 +01:00
|
|
|
Version: 1.200.0
|
2015-04-14 08:02:54 +02:00
|
|
|
Release: 0
|
2024-01-04 16:13:45 +01:00
|
|
|
%define cpan_version 1.20
|
2020-01-21 15:46:54 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-11-24 17:40:55 +01:00
|
|
|
Summary: Pseudo ttys and constants
|
2020-11-04 11:12:43 +01:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-12-09 14:22:23 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-01-21 15:46:54 +01:00
|
|
|
Source1: cpanspec.yml
|
2010-09-27 16:06:36 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-12-09 14:22:23 +01:00
|
|
|
Provides: perl(IO::Pty) = %{version}
|
|
|
|
Provides: perl(IO::Tty) = %{version}
|
|
|
|
%define __perllib_provides /bin/true
|
2011-03-31 20:17:56 +02:00
|
|
|
%{perl_requires}
|
2007-01-16 00:30:56 +01:00
|
|
|
|
|
|
|
%description
|
2011-03-31 20:17:56 +02:00
|
|
|
'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'.
|
2020-01-21 15:46:54 +01:00
|
|
|
For a list of importable constants, see IO::Tty::Constant.
|
2011-03-31 20:17:56 +02:00
|
|
|
|
2020-01-21 15:46:54 +01:00
|
|
|
Windows is now supported, but ONLY under the Cygwin environment, see
|
|
|
|
http://sources.redhat.com/cygwin/.
|
2011-03-31 20:17:56 +02:00
|
|
|
|
|
|
|
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
|
2020-01-21 15:46:54 +01:00
|
|
|
SourceForge http://sourceforge.net/projects/expectperl/.
|
2011-03-31 20:17:56 +02:00
|
|
|
|
|
|
|
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...
|
2007-01-16 00:30:56 +01:00
|
|
|
|
2011-03-31 20:17:56 +02:00
|
|
|
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!
|
2007-01-16 00:30:56 +01:00
|
|
|
|
|
|
|
%prep
|
2023-12-09 14:22:23 +01:00
|
|
|
%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
|
2007-01-16 00:30:56 +01:00
|
|
|
|
|
|
|
%build
|
2020-01-21 15:46:54 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2021-01-27 17:13:19 +01:00
|
|
|
%make_build
|
2009-08-31 21:41:48 +02:00
|
|
|
|
|
|
|
%check
|
2020-01-21 15:46:54 +01:00
|
|
|
make test
|
2007-01-16 00:30:56 +01:00
|
|
|
|
|
|
|
%install
|
2009-08-31 21:41:48 +02:00
|
|
|
%perl_make_install
|
2007-01-16 00:30:56 +01:00
|
|
|
%perl_process_packlist
|
2009-08-31 21:41:48 +02:00
|
|
|
%perl_gen_filelist
|
2007-01-16 00:30:56 +01:00
|
|
|
|
2010-09-27 16:06:36 +02:00
|
|
|
%files -f %{name}.files
|
2021-01-27 17:13:19 +01:00
|
|
|
%doc ChangeLog README try
|
2007-01-16 00:30:56 +01:00
|
|
|
|
2008-10-23 04:43:11 +02:00
|
|
|
%changelog
|