Summary(pl): Standardowy klient ftp (file transfer protocol)
Summary(tr): Standart UN*X ftp istemcisi
Name: ftp
-Version: 0.16
-Release: 6
+Version: 0.17
+Release: 7
License: BSD
Group: Applications/Networking
+Group(de): Applikationen/Netzwerkwesen
Group(pl): Aplikacje/Sieciowe
-Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/file-transfer/netkit-%{name}-%{version}.tar.gz
-Source1: ftp.1.pl
+Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
+Source1: %{name}.1.pl
+Patch0: netkit-%{name}-macro-quit.patch
BuildRequires: ncurses-devel >= 5.0
BuildRequires: readline-devel >= 4.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n netkit-ftp-%{version}
+%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" \
-LDFLAGS="-s" \
-./configure
+CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}" \
+./configure --with-c-compiler=gcc
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/{man1,pl/man1}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/{,pl}/man1}
%{__make} install \
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
echo ".so ftp.1" > $RPM_BUILD_ROOT%{_mandir}/pl/man1/pftp.1
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man1/*,pl/man1/*}
-
%clean
rm -rf $RPM_BUILD_ROOT