File emesene.spec of Package emesene

#
# spec file for package emesene
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           emesene
Version:        2.12.9
Release:        0
License:        GPL-3.0+
Summary:        MSN Messenger Client
Url:            https://github.com/emesene/emesene
Group:          Productivity/Networking/Other
Source:         emesene-emesene-v%version-0-g5d62b3d.tar.gz
Source99:	%{name}-rpmlintrc
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:	python-distribute
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-notify
Requires:	python-gobject
Requires:	python-qt4
Requires:	python-webkitgtk
Requires:	python-pyOpenSSL
Requires:	python-dnspython
Requires:	python-gupnp-igd
Requires:	python-pycrypto
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
Emesene is an OS independent MSN Messenger client
writed in python and GTK. The main idea is to make
a client similar to the official MSN Messenger client
but kepping it simple and with a nice GUI.

Emesene is a python/gtk MSN messenger clone, it uses
msnlib (MSNP9) and try to be a nice looking and simple MSN client.

You can login, send formated messages, smilies, use autoreply,
change status, change nick, send nudges and all the stuff you
can do in a normal MSN client except, file transfers,custom
emoticons and display picture.

%prep
%setup -q -n emesene-emesene-b89aa5e

%build
python ./setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT

rm -rf %{buildroot}%{python_sitelib}/%{name}/data
rm -rf %{buildroot}%{python_sitelib}/%{name}/test
rm -rf %{buildroot}%{python_sitelib}/%{name}/plugins
rm -rf %{buildroot}%{python_sitelib}/%{name}/.doxygen
mkdir %{buildroot}%{_bindir}
mkdir %{buildroot}%{_datadir}/locale/
mv %{buildroot}%{python_sitelib}/%{name}/po/* %{buildroot}%{_datadir}/locale/
ln -sf %{python_sitelib}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}

%suse_update_desktop_file %{name} Network InstantMessaging

%find_lang %{name} 

%fdupes %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/pixmaps/%{name}.*

%changelog
openSUSE Build Service is sponsored by