From 694b01389fa10cdb57f575ec75de5679681d46df Mon Sep 17 00:00:00 2001 From: freesource Date: Thu, 7 Feb 2002 15:46:00 +0000 Subject: [PATCH] Universal packages, like what comes with Debian for Expect, proper deps in 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. --- pkg/rpm/perl-Expect.spec | 69 +++++++++++++++++++++++++++++++++++++++ pkg/rpm/perl-IO-Stty.spec | 56 +++++++++++++++++++++++++++++++ pkg/rpm/perl-IO-Tty.spec | 67 +++++++++++++++++++++++++++++++++++++ 3 files changed, 192 insertions(+) create mode 100644 pkg/rpm/perl-Expect.spec create mode 100644 pkg/rpm/perl-IO-Stty.spec create mode 100644 pkg/rpm/perl-IO-Tty.spec diff --git a/pkg/rpm/perl-Expect.spec b/pkg/rpm/perl-Expect.spec new file mode 100644 index 0000000..8f28e5f --- /dev/null +++ b/pkg/rpm/perl-Expect.spec @@ -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 + + +# 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 + diff --git a/pkg/rpm/perl-IO-Stty.spec b/pkg/rpm/perl-IO-Stty.spec new file mode 100644 index 0000000..053c32c --- /dev/null +++ b/pkg/rpm/perl-IO-Stty.spec @@ -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 + + +# 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 \ No newline at end of file diff --git a/pkg/rpm/perl-IO-Tty.spec b/pkg/rpm/perl-IO-Tty.spec new file mode 100644 index 0000000..636d837 --- /dev/null +++ b/pkg/rpm/perl-IO-Tty.spec @@ -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 + + +# 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 +