%define py_geoip_pkg python-module-GeoIP %define oname nicotine+ Name: nicotine-plus Version: 1.2.12 Release: alt1 Summary: The client program for the SoulSeek filesharing system Summary(ru_RU.KOI8-R): Клиент для файлообменной сети SoulSeek Group: Networking/File transfer License: GPL Url: http://nicotine-plus.sourceforge.net/ Packager: Vitaly Lipatov Source: http://www.nicotine-plus.org/files/nicotine+-%version.tar.bz2 # TODO: check tranlsation Source1: nicotine.48.png #Patch: %name-alt-desktop-entry.patch BuildArch: noarch Provides: nicotine Obsoletes: nicotine # Automatically added by buildreq on Fri Aug 14 2009 BuildRequires: python-devel python-module-pygobject Requires: python-module-sexy python-module-pygtk-libglade Requires: python-module-mutagen python-module-pygnome-gtkmozembed %add_python_req_skip pywintypes win32con win32gui %description Nicotine is a feature-complete client for the SoulSeek filesharing network that is used primarily to share music. Nicotine supports everything a SoulSeek client is supposed to do, such as downloading, uploading, searching, chatting, keeping a "buddy" list and has lots of other features like finding similar users and getting listening recommendations based on user's preferences. Nicotine also supports a country code blocker using the GeoIP library. To enable this functionality install the %py_geoip_pkg package. Nicotine is a successor to the PySoulSeek project by Alexander Kanavin. Nicotine supports psyco, an inline optimizer for python code, you can install it from python-module-psyco package. %description -l ru_RU.KOI8-R Nicotine -- это полнофункциональный клиент для файлообменной сети SoulSeek, ориентированной, прежде всего, на обмен музыкой. Nicotine поддерживает все стандартные для клиента сети SoulSeek функции, такие как загрузка и пересылка файлов, поиск, чат, ведение списка "друзей", а также множество других, как, например, поиск похожих пользователей и получение рекомендаций по музыке на основе пользовательских предпочтений. Помимо этого, Nicotine умеет блокировать пользователей из определённых стран, посредством библиотеки GeoIP. Для включения данной функциональности необходимо дополнительно установить пакет %py_geoip_pkg. Nicotine является преемником проекта PySoulSeek, который создал Александр Канавин. Nicotine поддерживает оптимизатор кода psyco, вы можете установить его из пакета python-module-psyco. %prep %setup -q -n %oname-%version #%patch %build %python_build %install %__python setup.py install --root=%buildroot --optimize=2 %define _iconstheme hicolor %define _iconsbasedir %_iconsdir/%_iconstheme %define _icons16dir %_iconsbasedir/16x16/apps %define _icons48dir %_iconsbasedir/48x48/apps install -D -m644 files/%name-16px.png %buildroot%_miconsdir/%name.png install -D -m644 files/%name-32px.png %buildroot%_niconsdir/%name.png install -D -m644 %SOURCE1 %buildroot%_liconsdir/%name.png install -D -m644 files/%name-64px.png %buildroot%_iconsdir/hicolor/64x64/apps/%name.png install -D -m644 files/%name-96px.png %buildroot%_iconsdir/hicolor/96x96/apps/%name.png rm -rf %buildroot%_datadir/nicotine/documentation/ %find_lang nicotine %files -f nicotine.lang %_bindir/nicotine* %python_sitelibdir/pynicotine/ %python_sitelibdir/nicotine* %_desktopdir/* %_miconsdir/* %_niconsdir/* %_liconsdir/* %_iconsdir/hicolor/64x64/apps/* %_iconsdir/hicolor/96x96/apps/* %_man1dir/* %_pixmapsdir/* %_datadir/nicotine/ %doc doc/* %changelog * Mon Aug 10 2009 Andrew Clark 1.2.12-alt1 - new version - cleanup spec * Fri Jan 25 2008 Grigory Batalov 1.2.9-alt2.1 - Rebuilt with python-2.5. * Mon Oct 29 2007 Vitaly Lipatov 1.2.9-alt2 - remove psyco requires (fix bug #13236) - cleanup spec * Wed Oct 24 2007 Vitaly Lipatov 1.2.9-alt1 - new version 1.2.9 (with rpmrb script) * Fri Jul 06 2007 Vitaly Lipatov 1.2.8-alt2 - add provides, obsoletes: nicotine - add some useful requires - disable old russian translation (it brokes dialogs) * Fri Jun 08 2007 Vitaly Lipatov 1.2.8-alt1 - new version 1.2.8 (with rpmrb script) * Sat May 26 2007 Vitaly Lipatov 1.2.7.1-alt1 - nicotine-plus forks from nicotine * Fri Mar 25 2005 Dmitry Vukolov 1.0.8-alt2 - rebuilt with python 2.4 * Wed Mar 02 2005 Dmitry Vukolov 1.0.8-alt1 - new version * Mon Jul 19 2004 Dmitry Vukolov 1.0.7-alt3 - repackaged according to the new python policy - altered description * Mon May 10 2004 Dmitry Vukolov 1.0.7-alt2 - added Russian translation - use %%find_lang to mark language files * Sat May 01 2004 Dmitry Vukolov 1.0.7-alt1 - initial release for ALT Linux Sisyphus - patched to use the standard GTK+ directory selection dialog (Debian)