Debian Codegraph @

dependencies/plink/packaging/rpm/plink.spec

raw
1 %define archive_name putty
2
3 Name: plink
4 Version: 0.74
5 Release: 1%{?dist}
6 Summary: Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh.
7
8 Group: Development/Tools
9 License: MIT licence
10 URL: http://www.chiark.greenend.org.uk/~sgtatham/putty/
11
12 Source0: %{archive_name}-%{version}.tar.gz
13 BuildRoot: %(mktemp -ud %{_tmppath}/%{archive_name}-%{version}-%{release}-XXXXXX)
14
15 BuildRequires: make
16 BuildRequires: gcc
17
18 %description
19 Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh.
20 It is mostly used for automated operations, such as making CVS access a repository on a remote server.
21
22 %prep
23 %setup -q -n %{archive_name}-%{version}
24
25 %build
26 %configure --without-gtk
27 make %{?_smp_mflags}
28
29 %install
30 rm -rf %{buildroot}
31 make install DESTDIR=%{buildroot}
32 rm -rf $RPM_BUILD_ROOT%{_bindir}/pscp
33 rm -rf $RPM_BUILD_ROOT%{_bindir}/psftp
34 rm -rf $RPM_BUILD_ROOT%{_bindir}/puttygen
35 rm -rf $RPM_BUILD_ROOT%{_mandir}/
36
37 %clean
38 rm -rf %{buildroot}
39
40 %files
41 %defattr(-,root,root,-)
42 %doc
43 %{_bindir}/plink
44
45 %changelog