]> git.pld-linux.org Git - packages/sftp.git/blob - sftp.spec
ac88bbcd2fea06b6bf47a934db106420c8794b38
[packages/sftp.git] / sftp.spec
1 Summary:        sftp: a ftp-replacement over an rsh/ssh tunnel
2 Summary(pl.UTF-8):      Zamiennik ftp działający poprzez tunel rsh/ssh
3 Name:           sftp
4 Version:        0.9.9
5 Release:        7
6 License:        GPL
7 Group:          Applications/Networking
8 Source0:        http://www.xbill.org/sftp/download/old/%{name}-%{version}.tar.gz
9 # Source0-md5:  9880c86ed928997da069bdb108bf4ad9
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-open.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  readline-devel >= 4.1
15 BuildRequires:  ncurses-devel >= 5.2
16 URL:            http://www.xbill.org/sftp/
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 sftp is an ftp replacement that runs over an ssh tunnel. Two programs
21 are included - sftp and sftpserv. When sftp is run and a host is
22 connected to (either by running 'sftp remotehost' or 'open remotehost'
23 from the sftp prompt), an ssh connection is initiated to the remote
24 host, and sftpserv is run. From within sftp, all of the normal FTP
25 commands are present: open, close, get, put, pwd, cd, ls, lcd, quit,
26 etc. There's also exec, which runs a program on the remote end.
27
28 %description -l pl.UTF-8
29 sftp jest zamiennikiem ftp działającym poprzez tunel ssh. Dołączone są
30 dwa programy - sftp i sftpserv.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35 %patch1 -p1
36
37 %build
38 %{__aclocal}
39 %{__autoconf}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 mv $RPM_BUILD_ROOT%{_bindir}/sftp \
50         $RPM_BUILD_ROOT%{_bindir}/sftpc
51 mv $RPM_BUILD_ROOT%{_mandir}/man1/sftp.1 \
52         $RPM_BUILD_ROOT%{_mandir}/man1/sftpc.1
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README Changelog
60 %attr(755,root,root) %{_bindir}/*
61 %{_mandir}/man?/*
This page took 0.076761 seconds and 2 git commands to generate.