%define release %mkrel 4 %define version 0.6.4 %define name ed2k-gtk-gui %define distsuffix plf Name: %name Version: %version Release: %release Summary: Gui frontend for eDonkey2000 and Overnet command line clients Group: Networking/File transfer License: GPL URL: http://ed2k-gtk-gui.sourceforge.net Source0: %name-%version.tar.bz2 Patch1: ed2k_gui_preview.patch.bz2 BuildRoot: %_tmppath/%name-buildroot Requires: libgtk+2.0_0 >= 2.0 BuildRequires: gtk+2-devel BuildRequires: zlib-devel BuildRequires: desktop-file-utils %description ed2k-gtk-gui is a graphical frontend (GUI) that allows you to control an eDonkey2000 or Overnet command line client (core) running on the local machine or on a remote host. It is based on the GTK+-2.x toolkit and the gnet library . You will need to obtain the eDonkey2000 or Overnet command line client separately. (see http://ed2k-gtk-gui.sf.net/ for links). This package is in plf because Mandriva Linux policy forbids p2p applications in contribs. %prep %setup -q %patch1 -b .orig %build %configure --enable-static-gnet --program-transform-name=ed2k_gui %make %install rm -rf $RPM_BUILD_ROOT %makeinstall desktop-file-install --vendor="" \ --remove-category="Application" \ --remove-category="Gtk" \ --add-category="GTK" \ --add-category="Network" \ --add-category="FileTransfer" \ --add-category="P2P" \ --add-category="X-MandrivaLinux-Internet-FileTransfer" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* rm -f $RPM_BUILD_ROOT%{_infodir}/dir find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info \ %{_infodir}/dir 2>/dev/null || : fi %postun /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog ChangeLog-short README TODO %{_bindir}/* %{_datadir}/doc/ed2k_gui/* %{_datadir}/applications/ed2k_gui.desktop %{_datadir}/locale/*/*/* %{_datadir}/ed2k_gui/* %{_mandir}/man[^3]/* %changelog * Wed Aug 30 2006 Anssi Hannula <anssi@zarb.org> 0.6.4-4plf2007.0 - Fix buildrequires * Mon Aug 21 2006 Nicolas Lecureuil <neoclust@zarb.org> 0.6.4-3plf2007.0 - Birth rebuild - Fix rpmlint errors * Wed Aug 17 2005 Stefan van der Eijk <stefan@zarb.org> 0.6.4-2plf - BuildRequires - %%mkrel - distsuffix * Tue May 17 2005 Nicolas Lecureuil <neoclust@zarb.org> 0.6.4-1plf - New release 0.6.4 - s/mandrakelinux/Mandriva Linux * Thu Sep 21 2004 jipe <jipe@zarb.org> 0.6.3-2plf - fixed specfile * Mon Sep 13 2004 jipe <jipe@zarb.org> 0.6.3-1plf - 1st plf release - patched misc.c to add rar, ace, zip and mpc support to the preview script