mirror of https://github.com/fspc/gbootroot.git
Browse Source
Expect, and IO::Tty is put in a non-versioned and non-arch place which should work fine on the majority of rpm-based distributions.master
freesource
23 years ago
3 changed files with 192 additions and 0 deletions
@ -0,0 +1,69 @@ |
|||
# A SPEC to crreate a rpm package from Expect. This should work on all |
|||
# distributions using >= perl5. |
|||
|
|||
# Update this according to version |
|||
%define version 1.12 |
|||
%define release 1 |
|||
|
|||
|
|||
Summary: Expect.pm (%{version}) - Perl Expect interface |
|||
Name: Expect |
|||
Version: %{version} |
|||
Release: %{release} |
|||
Copyright: GPL |
|||
Group: Development/Perl |
|||
Source: http://www.perl.com/CPAN/authors/id/R/RG/RGIERSIG/Expect-%{version}.tar.gz |
|||
URL: http://gbootroot.sourceforge.net |
|||
Distribution: BootRoot |
|||
Vendor: Free Software |
|||
Packager: Jonathan Rosenbaum <freesource@users.sourceforge.net> |
|||
|
|||
|
|||
# Dependencies |
|||
Requires: perl-IO-Stty, perl-IO-Tty |
|||
AutoReqProv: no |
|||
|
|||
|
|||
%description |
|||
The Expect module is a successor of Comm.pl and a descendent of Chat.pl. It |
|||
more closely ressembles the Tcl Expect language than its predecessors. It |
|||
does not contain any of the networking code found in Comm.pl. I suspect this |
|||
would be obsolete anyway given the advent of IO::Socket and external tools |
|||
such as netcat. |
|||
|
|||
Expect.pm is an attempt to have more of a switch() & case: feel to make |
|||
decision processing more fluid. three separate types of debugging have |
|||
been implemented to make code production easier. |
|||
|
|||
It is now possible to interconnect multiple file handles (and processes) much |
|||
like Tcl's expect. An attempt was made to enable all the features of Tcl's |
|||
expect without forcing Tcl on the victim programmer :-) . |
|||
|
|||
|
|||
%prep |
|||
%setup -n Expect-%{version} |
|||
|
|||
|
|||
# This works if IO::Pty is put in the proper place |
|||
%build |
|||
perl Makefile.PL LIB=/usr/lib/perl5/site_perl |
|||
make |
|||
|
|||
|
|||
%install |
|||
make install |
|||
|
|||
|
|||
# nothing to clean |
|||
%clean |
|||
|
|||
|
|||
%files |
|||
/usr/lib/perl5/site_perl/Expect.pm |
|||
/usr/lib/perl5/site_perl/Expect.pod |
|||
/usr/share/man/man3/Expect.3pm |
|||
|
|||
|
|||
|
|||
%changelog |
|||
|
@ -0,0 +1,56 @@ |
|||
# A SPEC to crreate a rpm package from IO-Stty-. This should work on all |
|||
# distributions using >= perl5. |
|||
|
|||
# Update this according to version |
|||
%define version .02 |
|||
%define release 1 |
|||
|
|||
|
|||
Summary: Interface to secure pseudo ttys |
|||
Name: perl-IO-Stty |
|||
Version: %{version} |
|||
Release: %{release} |
|||
Copyright: GPL |
|||
Group: Development/Perl |
|||
Source: http://www.perl.com/CPAN/authors/id/A/AU/AUSCHUTZ/IO-Stty-%{version}.tar.gz |
|||
URL: http://gbootroot.sourceforge.net |
|||
Distribution: BootRoot |
|||
Vendor: Free Software |
|||
Packager: Jonathan Rosenbaum <freesource@users.sourceforge.net> |
|||
|
|||
|
|||
# Dependencies |
|||
PreReq: perl |
|||
AutoReqProv: no |
|||
|
|||
|
|||
%description |
|||
This is a generic interface to handle secure pseudo terminals by perl |
|||
scripts, such as the expect library. |
|||
|
|||
|
|||
|
|||
%prep |
|||
%setup -n IO-Stty-%{version} |
|||
|
|||
|
|||
%build |
|||
perl Makefile.PL LIB=/usr/lib/perl5/site_perl |
|||
make |
|||
|
|||
|
|||
%install |
|||
make install |
|||
|
|||
|
|||
# nothing to clean |
|||
%clean |
|||
|
|||
|
|||
# will read this all from a files list %files -f filelist |
|||
%files |
|||
/usr/lib/perl5/site_perl/IO/Stty.pm |
|||
/usr/lib/perl5/site_perl/IO/stty.pl |
|||
|
|||
|
|||
%changelog |
@ -0,0 +1,67 @@ |
|||
# A SPEC to crreate a rpm package from IO-Tty. This should work on all |
|||
# distributions using >= perl5. |
|||
|
|||
# Update this according to version |
|||
%define version 0.04 |
|||
%define release 1 |
|||
|
|||
|
|||
Summary: Perl module for pseudo tty IO |
|||
Name: perl-IO-Tty |
|||
Version: %{version} |
|||
Release: %{release} |
|||
Copyright: GPL |
|||
Group: Development/Perl |
|||
Source: http://www.perl.com/CPAN/authors/id/G/GB/GBARR/IO-Tty-%{version}.tar.gz |
|||
URL: http://gbootroot.sourceforge.net |
|||
Distribution: BootRoot |
|||
Vendor: Free Software |
|||
Packager: Jonathan Rosenbaum <freesource@users.sourceforge.net> |
|||
|
|||
|
|||
# Dependencies |
|||
PreReq: perl |
|||
AutoReqProv: no |
|||
|
|||
|
|||
%description |
|||
IO::Pty provides I/O handles to the master- and slave-side of a |
|||
pseudo tty. |
|||
|
|||
|
|||
%prep |
|||
%setup -n IO-Tty-%{version} |
|||
|
|||
|
|||
%build |
|||
perl Makefile.PL LIB=/usr/lib/perl5/site_perl |
|||
make |
|||
|
|||
|
|||
# This here is a kludge to avoid versioning to allow the creation of a |
|||
# universal package. This is done in Debian. |
|||
%install |
|||
install -d /usr/lib/perl5/site_perl/auto/IO/Tty |
|||
cp -fa blib/arch/auto/IO/Tty/Tty.so /usr/lib/perl5/site_perl/auto/IO/Tty/Tty.so |
|||
cp -fa blib/arch/auto/IO/Tty/Tty.bs /usr/lib/perl5/site_perl/auto/IO/Tty/Tty.bs |
|||
install -d /usr/lib/perl5/site_perl/auto/IO/Tty |
|||
cp -fa Tty.pm /usr/lib/perl5/site_perl/IO/Tty.pm |
|||
cp -fa Pty.pm /usr/lib/perl5/site_perl/IO/Pty.pm |
|||
install -d /usr/share/man/man3 |
|||
cp -fa blib/man3/IO::Pty.3pm /usr/share/man/man3/IO::Pty.3pm |
|||
|
|||
|
|||
# nothing to clean |
|||
%clean |
|||
|
|||
|
|||
%files |
|||
/usr/lib/perl5/site_perl/IO/Pty.pm |
|||
/usr/lib/perl5/site_perl/IO/Tty.pm |
|||
%attr(0644, root, root) /usr/lib/perl5/site_perl/auto/IO/Tty/Tty.bs |
|||
%attr(0755, root, root) /usr/lib/perl5/site_perl/auto/IO/Tty/Tty.so |
|||
/usr/share/man/man3/IO::Pty.3pm |
|||
|
|||
|
|||
%changelog |
|||
|
Loading…
Reference in new issue