OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 26-Aug-2007 11:00:42 Branch: HEAD Handle: 2007082610004200 Added files: openpkg-src/perl-ssh perl-ssh.spec Log: new package: perl-ssh 5.8.8 (Perl Modules for use with SSH) Summary: Revision Changes Path 1.1 +137 -0 openpkg-src/perl-ssh/perl-ssh.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/perl-ssh/perl-ssh.spec ============================================================================ $ cvs diff -u -r0 -r1.1 perl-ssh.spec --- /dev/null 2007-08-26 11:00:34 +0200 +++ perl-ssh.spec 2007-08-26 11:00:42 +0200 @@ -0,0 +1,137 @@ +## +## perl-ssh.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# versions of individual parts +%define V_perl 5.8.8 +%define V_net_ssh2 0.10 +%define V_net_ssh 0.08 +%define V_net_ssh_expect 1.04 +%define V_net_scp 0.07 +%define V_net_scp_expect 0.12 +%define V_net_sftp_foreign 1.30 + +# package information +Name: perl-ssh +Summary: Perl Modules for use with SSH +URL: http://www.cpan.org/ +Vendor: Perl Community +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: BASE +Group: Perl +License: GPL/Artistic +Version: %{V_perl} +Release: 20070826 + +# list of sources +Source0: http://www.cpan.org/modules/by-module/Net/Net-SSH2-%{V_net_ssh2}.tar.gz +Source1: http://www.cpan.org/modules/by-module/Net/Net-SSH-%{V_net_ssh}.tar.gz +Source2: http://www.cpan.org/modules/by-module/Net/Net-SSH-Expect-%{V_net_ssh_expect}.tar.gz +Source3: http://www.cpan.org/modules/by-module/Net/Net-SCP-%{V_net_scp}.tar.gz +Source4: http://www.cpan.org/modules/by-module/Net/Net-SCP-Expect-%{V_net_scp_expect}.tar.gz +Source5: http://www.cpan.org/modules/by-module/Net/Net-SFTP-Foreign-%{V_net_sftp_foreign}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl} +PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl} +BuildPreReq: perl-sys, perl-term, libssh2 +PreReq: perl-sys, perl-term, libssh2, openssh +AutoReq: no +AutoReqProv: no + +%description + Various Perl modules for use with Secure Shell (SSH): + - Net::SSH2 (%{V_net_ssh2}) + - Net::SSH (%{V_net_ssh}) + - Net::SSH::Expect (%{V_net_ssh_expect}) + - Net::SCP (%{V_net_scp}) + - Net::SCP::Expect (%{V_net_scp_expect}) + - Net::SFTP::Foreign (%{V_net_sftp_foreign}) + +%track + prog perl-ssh:Net-SSH2 = { + version = %{V_net_ssh2} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SSH2-(__VER__)\.tar\.gz + } + prog perl-ssh:Net-SSH = { + version = %{V_net_ssh} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SSH-(__VER__)\.tar\.gz + } + prog perl-ssh:Net-SSH-Expect = { + version = %{V_net_ssh_expect} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SSH-Expect-(__VER__)\.tar\.gz + } + prog perl-ssh:Net-SCP = { + version = %{V_net_scp} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SCP-(__VER__)\.tar\.gz + } + prog perl-ssh:Net-SCP-Expect = { + version = %{V_net_scp_expect} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SCP-Expect-(__VER__)\.tar\.gz + } + prog perl-ssh:Net-SFTP-Foreign = { + version = %{V_net_sftp_foreign} + url = http://www.cpan.org/modules/by-module/Net/ + regex = Net-SFTP-Foreign-(__VER__)\.tar\.gz + } + +%prep + %setup -q -c + %setup -q -T -D -a 1 + %setup -q -T -D -a 2 + %setup -q -T -D -a 3 + %setup -q -T -D -a 4 + %setup -q -T -D -a 5 + +%build + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} subst \ + -e 's:inc = \(.\)\(.;\):inc = \1%{l_prefix}/include\2:' \ + -e 's:lib = \(.\)\(.;\):lib = \1%{l_prefix}/lib\2:' \ + -e 's:-lssh2:-lssh2 -lcrypto -lz -lm:' \ + Net-SSH2-%{V_net_ssh2}/Makefile.PL + %{l_prefix}/bin/perl-openpkg prepare + %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install + %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files` + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org