]> git.pld-linux.org Git - packages/perl-Net-SCP-Expect.git/commitdiff
- new
authorradek <radek@pld-linux.org>
Fri, 7 May 2004 21:34:57 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Net-SCP-Expect.spec -> 1.1

perl-Net-SCP-Expect.spec [new file with mode: 0644]

diff --git a/perl-Net-SCP-Expect.spec b/perl-Net-SCP-Expect.spec
new file mode 100644 (file)
index 0000000..3e9d56c
--- /dev/null
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Net
+%define        pnam    SCP-Expect
+Summary:       Net::SCP::Expect - Wrapper for scp that allows passwords via Expect.
+#Summary(pl):  
+Name:          perl-Net-SCP-Expect
+Version:       0.10
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 272080e0abdcf7e8b70cb61f51d05a35
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Expect >= 1.14
+BuildRequires: perl-Term-ReadPassword >= 0.01
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is simply a wrapper around the scp call.  The primary
+difference between this module and I<Net::SCP> is that you may send
+a password programmatically, instead of being forced to deal with
+interactive sessions.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES
+%{perl_vendorlib}/%{pdir}/*/*.pm
+%{_mandir}/man3/*
This page took 0.081356 seconds and 4 git commands to generate.