Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 81fbf006d5a28fc5c853e641613d8b8b > files > 10

ncftp-3.1.1-2mdk.src.rpm

%define name 		ncftp
%define version		3.1.1
%define release		2mdk
%define _localstatedir	/var

Summary:	An improved FTP client
Name:		%{name}
Version:	%{version}
Release:	%{release}
Group: 		Networking/File transfer
URL:		http://www.ncftp.com
BuildRequires:	gpm-devel ncurses-devel
License:	Artistic
Source0:	ftp://ftp.ncftp.com/ncftp/ncftp-%{version}-src.tar.bz2
Source1:	%{name}-16.png.bz2
Source2:	%{name}-32.png.bz2
Source3:	%{name}-48.png.bz2
Patch0:		ncftp-confirm.patch.bz2 
Patch1:		ncftp-3.1.1-DESTDIR.patch.bz2
Patch3: 	ncftp-3.0.3-resume.patch.bz2
Patch5:		ncftp-3.0.3-suspend.patch.bz2
#Patch6:		ncftp-304-v6-20011102.diff.bz2
# yves 3.0.3-1mdk
# this patch comes from ftp://ftp.kame.net/pub/kame/misc
# more info on http://www.ipv6.org/v6-apps.html
Patch7:		ncftp-3.1.1-EPLF.diff.bz2
# yves 3.1.1-1mdk
# requested by Yura Gusev <elendal@w4technology.com>
# adapted to 3.1.1 from http://www.fefe.de/ncftp/ncftp-3.0-EPLF.diff
# It will allow ncftp to work with publicfile. http://publicfile.org/


BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
Ncftp is an improved FTP client.  Ncftp's improvements include support
for command line editing, command histories, recursive gets, automatic
anonymous logins and more.

%prep

%setup -q
%patch0 -p0 -b .confirm 
%patch1 -p1
%patch3 -p1 -b .res
%patch5 -p1 -b .suspend
#%patch6 -p1 -b .ipv6
%patch7 -p1 -b .eplf

%build
%configure --enable-signals --enable-ipv6
%make

%install
mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/man1}
%makeinstall BINDIR=$RPM_BUILD_ROOT%{_bindir} 

mkdir -p %{buildroot}/%{_menudir}
cat << EOF > %{buildroot}/%{_menudir}/%{name}
?package(ncftp):needs="text" section="Networking/File transfer" \
title="NCFtp" command="%_bindir/ncftp" \
longtitle="An improved FTP client." \
icon="%{name}.png"
EOF

# mdk icon
mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/icons/mini/%{name}.png
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_datadir}/icons/%{name}.png
bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_datadir}/icons/large/%{name}.png

# yves - 3.1.1-1mdk - fix doc perm
find doc -type f -exec chmod 0644 {} \;
%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -fr %{buildroot};


%files
%defattr(-,root,root)
%doc doc/*.txt
%{_menudir}/*
%{_bindir}/*
%{_mandir}/*/*
%{_iconsdir}/*

%changelog
* Sun Jan 20 2002 Yves Duret <yduret@mandrakesoft.com> 3.1.1-2mdk
- added patch7 to add support to publicfile.org 
  requested by Yura Gusev <elendal@w4technology.com>

* Sun Jan 20 2002 Yves Duret <yduret@mandrakesoft.com> 3.1.1-1mdk
- version 3.1.1
- rediff patch1 ncftp-DESTDIR.patch
- remove patch6 ipv6 support
- png icons, fix menu entry
- spec clean up, more globbing, more macros
- new %%doc section, fix doc permissions

* Sat Nov 10 2001 Yves Duret <yduret@mandrakesoft.com> 3.0.4-1mdk
- version 3.0.4
- removed patch merged upstream
- readded ipv6 patch & support

* Sun Sep 30 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.0.3-4mdk
- RH patch merge (suspend, crash patch).

* Thu Aug 30 2001 David BAUDENS <baudens@mandrakesoft.com> 3.0.3-3mdk
- Use new icons

* Mon Jul 16 2001 Yves Duret <yduret@mandrakesoft.com> 3.0.3-2mdk
- rebuild
- Default to auto-resume=yes (rh #28705) by patch3

* Tue May  1 2001 Yves Duret <yduret@mandrakesoft.com> 3.0.3-1mdk
- version 3.0.3 for general usage
- added ipv6 support (patch2)
- spec clean up: globing for %%files, typo
- added URL tag

* Wed Dec 20 2000 Yves Duret <yduret@mandrakesoft.com> 3.0.2-2mdk
- use %make macro
- fixed some file's permission
- fixed menu entry
- added a large icon

* Thu Oct 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.0.2-1mdk
- 3.0.2.

* Fri Sep 29 2000 Daouda Lo <daouda@mandrakesoft.com> 3.0.1-8mdk
- icons should be tranparents.

* Fri Sep 29 2000 Daouda Lo <daouda@mandrakesoft.com> 3.0.1-7mdk
- add icons
 
* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 3.0.1-6mdk
- automatically added BuildRequires

* Mon Jul 17 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.0.1-4mdk
- use new macros in post and postun scripts

* Thu Jul 06 2000 Christian Zoffoli <czoffoli@linux-mandrake.com> 3.0.1-3mdk.ipv6
- IPv6 support

* Sun Jun 04 2000 David BAUDENS <baudens@mandrakesoft.com> 3.0.1-3mdk
- Fix and use a real %%doc

* Wed Apr  5 2000 Denis Havlik <denis@mandrakesoft.com> 3.0.1-2mdk
- fixed source path

* Mon Apr  3 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.0.1-1mdk
- Add menu.
- Change license to Artistic.
- spec-helper purification.
- Upgrade groups.
- 3.0.1 final (correct a lot of bugs).

* Fri Jan  7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.0beta21-4mdk
- sed 's/1/True/'

* Wed Jan  5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.0beta21-3mdk
- Oxygen Release.
- Disble confirmation in exit by default.