%define name d4x %define version 2.5.7.1 %define release %mkrel 3 %define group Networking/File transfer %define section Internet/File Transfer %define title Downloader for X %define Summary Web Downloader for X Summary: %{Summary} Name: %{name} Version: %{version} Release: %{release} License: Artistic Group: %{group} Source: %{name}-%{version}.tar.bz2 Source1: d4x-zh_TW.po.bz2 Source2: d4x-pt_BR.po.bz2 URL: http://www.krasu.ru/soft/chuchelo/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Buildrequires: libao-devel Buildrequires: gtk+2-devel Buildrequires: ImageMagick Buildrequires: openssl-devel Buildrequires: boost-devel Buildrequires: desktop-file-utils Obsoletes: nt Provides: nt %description This program lets you download files from internet/intranet using ftp, http or https protocol. Main features: * multithreaded design * convient user-friendly interface * automatic resuming after connection breaks * multiple simultaneous downloads * recursive ftp and http downloading * wildcards support for ftp recursing * proxy support (ftp and http) * supports for traffic limitation * mass downloading function * and other ... %prep %setup -q -n %{name}-%{version} bzcat %{SOURCE2} > po/pt_BR.po %build %configure2_5x \ --enable-release \ --disable-esd \ --disable-oss \ --enable-libao # force gmo file regeneration rm -f po/stamp-po %make %install rm -rf %{buildroot} %makeinstall_std mkdir -p %{buildroot}%{_datadir}/pixmaps install -m 644 share/d4x_aqua.png %{buildroot}%{_datadir}/pixmaps/ install -m 644 share/nt-gray.png %{buildroot}%{_datadir}/pixmaps/ install -m 644 share/nt.png %{buildroot}%{_datadir}/pixmaps/ install -m 644 -D share/nt.desktop %{buildroot}%{_datadir}/gnome/apps/Internet/nt.desktop mkdir -p %{buildroot}%{_miconsdir} \ %{buildroot}%{_liconsdir} \ %{buildroot}%{_iconsdir} install -m 644 share/nt.png %{buildroot}%{_iconsdir}/nt.png convert -size 16x16 share/nt.png %{buildroot}%{_miconsdir}/nt.png convert -size 48x48 share/nt.png %{buildroot}%{_liconsdir}/nt.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications mv %{buildroot}%{_datadir}/gnome/apps/Internet/nt.desktop %{buildroot}%{_datadir}/applications/nt.desktop # menu mkdir -p %{buildroot}%{_menudir} cat << EOF > %{buildroot}%{_menudir}/%{name} ?package(%{name}): longtitle="%{Summary}" \ command="%_bindir/nt" title="%{title}" needs="x11" \ section="%{section}" \ icon="nt.png" \ xdg="true" EOF desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="P2P" \ --add-category="FileTransfer" \ --add-category="Network" \ --add-category="X-MandrivaLinux-Internet-FileTransfer" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* # traditional Chinese translation if test ! -d %{buildroot}%{_datadir}/locale/zh_TW/LC_MESSAGES; then mkdir -p %{buildroot}%{_datadir}/locale/zh_TW/LC_MESSAGES bzcat %{SOURCE1} | msgfmt -o %{buildroot}%{_datadir}/locale/zh_TW/LC_MESSAGES/d4x.mo - fi %find_lang %{name} %post %{update_menus} %postun %{clean_menus} %clean rm -fr %{buildroot} %files -f %{name}.lang %defattr(-, root, root) %doc ChangeLog INSTALL* README* PLANS TODO %{_bindir}/* %{_menudir}/%{name} %{_datadir}/applications/nt.desktop %{_miconsdir}/nt.png %{_iconsdir}/nt.png %{_liconsdir}/nt.png #%{_datadir}/gnome/apps/Internet/nt.desktop %{_datadir}/pixmaps/* %dir %{_datadir}/d4x %{_datadir}/d4x/* %{_mandir}/man1/nt.1* %changelog * Sat Jan 27 2007 Andreas Hasenack <andreas@mandriva.com> 2.5.7.1-3mdv2007.0 + Revision: 114446 - updated pt_BR po file - force gmo regeneration during build * Sat Oct 14 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.5.7.1-2mdv2007.1 + Revision: 64834 - Add menu entry - import d4x-2.5.7.1-1mdv2007.0 * Mon Jun 05 2006 Jerome Soyer <saispo@mandriva.org> 2.5.7.1-1mdv2007.0 - New release 2.5.7.1 * Tue Apr 11 2006 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.7-2mdk - buildrequires boost-devel * Sun Apr 09 2006 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.7-1mdk - 2.5.7 * Sat Nov 19 2005 Abel Cheung <deaddog@mandriva.org> 2.5.6-3mdk - Only install translation file if it does not already exist * Thu Nov 03 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.5.6-2mdk - Fix BuildRequires * Sun Oct 30 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.6-1mdk - 2.5.6 * Tue Sep 27 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.5-1mdk - 2.5.5 * Mon Sep 12 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.4-1mdk - 2.5.4 * Fri Sep 02 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.3-1mdk - 2.5.3 * Sun Aug 28 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.2-1mdk - 2.5.2 * Fri Aug 12 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 2.5.1-1mdk - 2.5.1 - removed P0 and prerel tag - use mkrel - add https protocol into description * Thu Apr 07 2005 Abel Cheung <deaddog@mandriva.org> 2.5.0-3mdk - P0: Fix compile against gtk 2.6.x - Solely use libao - Add traditional Chinese translation from Zunix Ling (zunix AT oaka.org) * Fri Aug 27 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.5.0-2mdk - Fix menu * Sat Aug 07 2004 Tibor Pittich <Tibor.Pittich@mandrake.org> 2.5.0-1mdk - 2.5.0 final * Thu Jun 17 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.5.0-0.rc4.2mdk - Rebuild * Thu May 27 2004 Tibor Pittich <Tibor.Pittich@mandrake.org> 2.5.0-0.rc4.1mdk - rc4 - removed dirty tricks, d4x is now ported to gtk2.4 * Fri May 21 2004 Tibor Pittich <Tibor.Pittich@mandrake.org> 2.5.0-0.rc3.1mdk - rc3 - two quick fixes to allow build under gtk2.4 which is now unsupported by author - added some macros * Tue Mar 02 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.5.0-0.rc2.2mdk - buildrequires - no rm -rf $RPM_BUILD_ROOT in %prep - change summary macro to avoid possible conflicts - add small and large icon * Mon Jan 05 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.5.0-0.rc2.1mdk - rc2 * Sun Dec 28 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.5.0-0.rc1.1mdk - 2.5.0rc1