From 5169228eb8125ba37d4e2309e78f1bd4c27eb8ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 20 Aug 1999 17:03:59 +0000 Subject: [PATCH] - misc fixes and cleanups Changed files: ftp.spec -> 1.2 --- ftp.spec | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/ftp.spec b/ftp.spec index 83bbdf4..b232f1e 100644 --- a/ftp.spec +++ b/ftp.spec @@ -1,13 +1,13 @@ -Summary: The standard UNIX FTP (file transfer protocol) client. -Name: ftp -Version: 0.10 -Release: 22 -Copyright: BSD -Group: Applications/Internet -Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/file-transfer/netkit-ftp-0.10.tar.gz -Patch0: netkit-ftp-0.10-misc.patch -Requires: inetd -BuildRoot: /var/tmp/%{name}-root +Summary: The standard UNIX FTP (file transfer protocol) client. +Name: ftp +Version: 0.10 +Release: 23 +Copyright: BSD +Group: Applications/Internet +Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/file-transfer/netkit-ftp-0.10.tar.gz +Patch0: netkit-ftp-0.10-misc.patch +Requires: inetd +BuildRoot: /tmp/%{name}-%{version}-root %description The ftp package provides the standard UNIX command-line FTP client. @@ -18,7 +18,7 @@ If your system is on a network, you should install ftp in order to do file transfers. %prep -%setup -n netkit-ftp-0.10 +%setup -q -n netkit-ftp-0.10 %patch0 -p1 %build @@ -26,16 +26,23 @@ make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/usr/{bin,man/man1} +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -make INSTALLROOT=$RPM_BUILD_ROOT install +make install \ + BINDIR=$RPM_BUILD_ROOT%{_bindir} \ + MANDIR=$RPM_BUILD_ROOT%{_mandir} + +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/pftp.1 +echo ".so ftp.1" > $RPM_BUILD_ROOT%{_mandir}/man1/pftp.1 + +gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) -/usr/bin/ftp -/usr/bin/pftp -/usr/man/man1/ftp.1 -/usr/man/man1/pftp.1 +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/ftp +%attr(755,root,root) %{_bindir}/pftp +%{_mandir}/man1/ftp.1.gz +%{_mandir}/man1/pftp.1.gz -- 2.44.0