%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: nicotine-plus Summary: Client for the SoulSeek Filesharing Network Version: 1.2.8 Release: 1.n0i.1%{?dist} Source: http://prdownloads.sourceforge.net/nicotine-plus/nicotine+-%{version}.tar.bz2 Patch1: %{name}-trayicon-makefile-fixes.patch Group: Applications/Internet License: GPLv2 URL: http://nicotine-plus.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: pygtk2 pygtk2-codegen pygtk2-devel BuildRequires: gtk2-devel BuildRequires: gcc make Provides: nicotine = %{version} Obsoletes: nicotine <= %{version} %description Nicotine+ is a SoulSeek client written in Python, based on the PySoulSeek and Nicotine projects. %prep %setup -q -n "nicotine+-%{version}" %patch1 %build %__python ./setup.py build pushd trayicon %__python ./autogen.py %__make OPTFLAGS="%{optflags}" LIB="%{_lib}" popd #trayicon %install %__rm -rf "%{buildroot}" %__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" %__install -D -m0755 trayicon/trayicon.so "%{buildroot}%{python_sitearch}/pynicotine/trayicon.so" %__chmod +x %{buildroot}%{python_sitearch}/pynicotine/{mp3,gtkgui/glade2py}.py %find_lang nicotine %clean %__rm -rf "%{buildroot}" %files -f nicotine.lang %defattr(-,root,root) %doc COPYING doc/CHANGELOG doc/KNOWN_BUGS doc/MAINTAINERS doc/README* %doc doc/*.html doc/TRANSLATIONS doc/TRANSLATORS doc/TODO %{_mandir}/man?/* %{_bindir}/* %{_datadir}/nicotine %{_datadir}/applications/* %{_datadir}/pixmaps/* %{python_sitearch}/pynicotine %changelog * Sat Aug 18 2007 Marius FERARU - 1.2.8-1.n0i.1 - repackaged for Fedora * Wed Jul 18 2007 Pascal Bleser 1.2.8-1 - new upstream version * Tue Mar 13 2007 Pascal Bleser 1.2.7.1-1 - CHANGES: option to copy was added to some of the popup menus - CHANGES: progress bar for share scanning now vanishes properly - CHANGES: attempted fix was made for 'interrupted system call' crashing the network loop - CHANGES: username hotspots for offline/left users aren't disabled - CHANGES: directory cropping was fixed in 'upload directory to' in User Browse - CHANGES: remote-uploading was improved somewhat, as it was quite buggy with two Nicotine+ clients - CHANGES: bugs in transfer slots and popups were fixed - CHANGES: Spanish, French, Dutch, Italian, and Lithuanian translations were updated - new upstream version * Sun Dec 10 2006 Pascal Bleser 1.2.6-3 - added missing Requires for python-gtk * Sun Nov 26 2006 Pascal Bleser 1.2.6-2 - added .egg-info for SUSE 10.2 * Sat Oct 21 2006 Pascal Bleser 1.2.6-1 - new upstream version * Sun Sep 10 2006 Pascal Bleser 1.2.4.1-2 - fixed .desktop file, was starting "nicotine-plus" instead of "nicotine" (thanks to cb400f for reporting) * Tue Aug 22 2006 Pascal Bleser 1.2.4.1-1 - new package