File gajim.spec of Package gajim

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

Name:           gajim
Version:        0.16.2
Release:        0
License:        GPL-3.0+
Summary:        Jabber Client written in PyGTK
Url:            http://www.gajim.org
Group:          Productivity/Networking/Talk/Clients
Source:         http://www.gajim.org/downloads/0.15/%{name}-%{version}.tar.bz2
Patch1:         desktop_file.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(pygtk-2.0)
Requires:       dbus-1-python
#Requires:       libxml2-python
Requires:       python-crypto
Requires:       python-gconf
Requires:       python-gnomekeyring
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-notify
Requires:       python-openssl
Requires:       python-xdg
Requires:       python-nbxmpp >= 0.5.3
Recommends:     python-farstream
# Not actually required, but to make sure that the runtime requirements
# are actually available -- if not, make the build fail (fail fast),
# instead of failing when people try to install the package.
BuildRequires:  python-gstreamer-0_10
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Gajim is a jabber client written in PyGTK. The goal of Gajim's developers is
to provide a full featured and easy to use xmpp client for the GTK+
users. Gajim does not require GNOME to run, eventhough it exists with it
nicely. Gajim is released under the GNU General Public License

Features:
- Tabbed chat windows
- Groupchat support (with MUC protocol)
- Emoticons, URL grabber
- Systray icon
- TLS & GPG support
- Transport Registration support
- Service Discovery including Nodes
- Multiple accounts support

%prep
%setup -q
%patch1 -p1
%build
%configure \
  --enable-remote \
  --enable-gtkspell \
  --enable-idle \
  --enable-trayicon

make %{?_smp_mflags} docdir=%{_docdir}/%{name}

%install
%make_install docdir=%{_docdir}/%{name}

find "%{buildroot}%{_datadir}/gajim/src/" -type f -name '*.pyo' -delete

%find_lang %{name}
%suse_update_desktop_file -r gajim Network InstantMessaging
%__python -c 'import compileall; compileall.compile_file("%{buildroot}%{_datadir}/gajim/src/common/defs.py", ddir="%{_datadir}/gajim/src/common", force=1)'
%fdupes -s %{buildroot}/

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS README.html COPYING THANKS* README
%doc %{_mandir}/man1/gajim.1*
%doc %{_mandir}/man1/gajim-remote.1*
%doc %{_mandir}/man1/gajim-history-manager.1*
%{_bindir}/gajim
%{_bindir}/gajim-history-manager
%{_bindir}/gajim-remote
%{_datadir}/gajim/
%{_datadir}/applications/gajim.desktop
%{_datadir}/icons/hicolor/64x64/apps/gajim.png
%{_datadir}/icons/hicolor/scalable/apps/gajim.svg
%{_datadir}/icons/hicolor/128x128/apps/gajim.png

%changelog
openSUSE Build Service is sponsored by