2014-10-26 11:55:33 +01:00
|
|
|
#
|
|
|
|
# spec file for package gajim
|
|
|
|
#
|
2019-01-02 16:09:36 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-10-26 11:55:33 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-22 16:01:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2014-10-26 11:55:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-11-08 10:35:15 +01:00
|
|
|
%define _version 1.1
|
2014-10-26 11:55:33 +01:00
|
|
|
Name: gajim
|
2019-05-24 16:22:17 +02:00
|
|
|
Version: 1.1.3
|
2014-10-26 11:55:33 +01:00
|
|
|
Release: 0
|
2018-03-19 21:51:28 +01:00
|
|
|
Summary: XMPP client written in Python and Gtk3
|
|
|
|
License: GPL-3.0-only
|
2014-10-26 11:55:33 +01:00
|
|
|
Group: Productivity/Networking/Talk/Clients
|
2018-09-24 14:25:06 +02:00
|
|
|
URL: https://gajim.org/
|
2017-07-04 21:18:01 +02:00
|
|
|
Source: https://gajim.org/downloads/%{_version}/%{name}-%{version}.tar.bz2
|
2018-05-23 17:58:56 +02:00
|
|
|
BuildRequires: ca-certificates-mozilla
|
2014-10-26 11:55:33 +01:00
|
|
|
BuildRequires: fdupes
|
2018-03-19 21:51:28 +01:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2014-10-26 11:55:33 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2017-07-04 21:18:01 +02:00
|
|
|
BuildRequires: p11-kit-devel
|
2017-05-10 11:55:52 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-05-14 19:39:36 +02:00
|
|
|
BuildRequires: python3 >= 3.5.0
|
2019-05-24 16:22:17 +02:00
|
|
|
BuildRequires: python3-nbxmpp >= 0.6.10
|
2019-01-31 11:35:07 +01:00
|
|
|
BuildRequires: python3-precis-i18n >= 1.0.0
|
2018-03-19 21:51:28 +01:00
|
|
|
BuildRequires: python3-setuptools
|
2014-10-26 11:55:33 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2017-07-04 21:18:01 +02:00
|
|
|
Requires: ca-certificates-mozilla
|
2018-05-14 19:39:36 +02:00
|
|
|
Requires: python3 >= 3.5.0
|
2018-09-24 14:25:06 +02:00
|
|
|
Requires: python3-cairo
|
2018-11-08 10:35:15 +01:00
|
|
|
Requires: python3-cssutils >= 1.0.2
|
2018-03-19 22:48:16 +01:00
|
|
|
Requires: python3-docutils
|
2018-09-24 14:25:06 +02:00
|
|
|
Requires: python3-gobject-Gdk
|
|
|
|
Requires: python3-gobject-cairo
|
2019-01-31 11:35:07 +01:00
|
|
|
Requires: python3-nbxmpp >= 0.6.9
|
|
|
|
Requires: python3-precis-i18n >= 1.0.0
|
2018-03-19 21:51:28 +01:00
|
|
|
Requires: python3-pyOpenSSL >= 0.12
|
2018-03-19 23:06:12 +01:00
|
|
|
Requires: python3-pycurl
|
2018-03-19 21:51:28 +01:00
|
|
|
Requires: python3-xml
|
2015-08-02 13:29:41 +02:00
|
|
|
Recommends: %{name}-lang
|
2018-11-09 13:22:15 +01:00
|
|
|
# OMEMO encryption
|
2018-09-24 14:25:06 +02:00
|
|
|
Recommends: gajim-plugin-omemo
|
2018-11-09 13:22:15 +01:00
|
|
|
Recommends: python3-axolotl
|
2015-02-10 22:57:11 +01:00
|
|
|
# End-to-end encryption.
|
2018-03-19 21:51:28 +01:00
|
|
|
Recommends: python3-pycrypto
|
2014-10-26 11:55:33 +01:00
|
|
|
# zeroconf support.
|
|
|
|
Suggests: dbus-1-glib
|
2018-03-19 23:06:12 +01:00
|
|
|
# Idle module.
|
|
|
|
Suggests: libXss1
|
2014-10-26 11:55:33 +01:00
|
|
|
BuildArch: noarch
|
2018-03-19 21:51:28 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-03-19 22:48:16 +01:00
|
|
|
Requires: python3-Pillow
|
2018-03-19 21:51:28 +01:00
|
|
|
Requires: python3-dbus-python
|
2018-03-20 06:58:04 +01:00
|
|
|
Requires: python3-keyring
|
2018-03-19 22:48:16 +01:00
|
|
|
# GPG encryption.
|
|
|
|
Recommends: python3-python-gnupg
|
2018-03-19 21:51:28 +01:00
|
|
|
%else
|
|
|
|
Requires: dbus-1-python3
|
2018-03-19 22:48:16 +01:00
|
|
|
# WebP avatars.
|
|
|
|
Recommends: python3-Pillow
|
|
|
|
# GPG encryption.
|
|
|
|
Recommends: python3-gnupg
|
2018-03-20 06:58:04 +01:00
|
|
|
# Password storage.
|
|
|
|
Recommends: python3-keyring
|
2018-03-19 21:51:28 +01:00
|
|
|
%endif
|
2014-10-26 11:55:33 +01:00
|
|
|
|
|
|
|
%description
|
2017-07-11 08:35:16 +02:00
|
|
|
Gajim is a Jabber/XMPP client. It works with MATE and GNOME, but does
|
2014-10-26 11:55:33 +01:00
|
|
|
require neither to run.
|
|
|
|
|
|
|
|
Features:
|
2017-05-10 11:55:52 +02:00
|
|
|
* Tabbed chat window and single window modes.
|
2015-08-02 13:29:41 +02:00
|
|
|
* Group chat support (with Multi-User Chat protocol), invitation,
|
2017-05-10 11:55:52 +02:00
|
|
|
chat to group chat transformation, minimise group chat to roster.
|
|
|
|
* Emoticons, avatars, PEP (user activity, mood and tune).
|
|
|
|
* Audio / video conferences.
|
|
|
|
* File transfer, room bookmarks.
|
|
|
|
* Metacontacts support.
|
|
|
|
* Trayicon, speller, extended chat history functionalities.
|
|
|
|
* TLS, GPG and End-To-End encryption support (with SSL legacy support).
|
|
|
|
* Transport registration support.
|
|
|
|
* Service discovery including nodes, user search.
|
|
|
|
* Wikipedia, dictionary and search engine lookup.
|
|
|
|
* Multiple accounts support.
|
|
|
|
* DBus capabilities. Read more information.
|
|
|
|
* XML console.
|
|
|
|
* Link local (bonjour / zeroconf), BOSH.
|
|
|
|
* Other features via plugins.
|
2014-10-26 11:55:33 +01:00
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-03-19 21:51:28 +01:00
|
|
|
sed -i '/^Keywords/d' data/org.gajim.Gajim.desktop.in
|
2014-10-26 11:55:33 +01:00
|
|
|
|
2018-04-02 13:28:30 +02:00
|
|
|
# FIXME: Some leftover.
|
|
|
|
rm gajim/data/plugins/plugin_installer/config_dialog.ui~
|
|
|
|
|
2014-10-26 11:55:33 +01:00
|
|
|
%build
|
2018-03-19 21:51:28 +01:00
|
|
|
python3 setup.py build
|
2014-10-26 11:55:33 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-19 21:51:28 +01:00
|
|
|
python3 setup.py install \
|
|
|
|
--root=%{buildroot} --prefix=%{_prefix}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/
|
|
|
|
mv %{buildroot}{%{python3_sitelib}/%{name}/data,%{_datadir}/%{name}}/
|
|
|
|
ln -s %{_datadir}/%{name} %{buildroot}%{python3_sitelib}/%{name}/data
|
|
|
|
|
2018-05-23 17:58:56 +02:00
|
|
|
# Do not package PEM certificates.
|
|
|
|
for cert in DST_Root_CA_X3.pem; do
|
|
|
|
[ -f "%{trustdir_static}/$cert" ]
|
|
|
|
rm "%{buildroot}%{_datadir}/%{name}/plugins/plugin_installer/$cert"
|
|
|
|
ln -s "%{trustdir_static}/$cert" %{buildroot}%{_datadir}/%{name}/plugins/plugin_installer/
|
|
|
|
done
|
|
|
|
|
2018-03-19 21:51:28 +01:00
|
|
|
%suse_update_desktop_file -r org.gajim.Gajim Network InstantMessaging
|
2016-10-13 15:39:25 +02:00
|
|
|
%fdupes %{buildroot}%{_prefix}/
|
2014-10-26 11:55:33 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2018-03-19 21:51:28 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
2014-10-26 11:55:33 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2017-12-06 23:31:39 +01:00
|
|
|
%endif
|
2014-10-26 11:55:33 +01:00
|
|
|
|
|
|
|
%files
|
2018-03-19 21:51:28 +01:00
|
|
|
%license COPYING
|
2014-10-26 11:55:33 +01:00
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_datadir}/%{name}/
|
2018-03-19 21:51:28 +01:00
|
|
|
%{python3_sitelib}/%{name}/
|
|
|
|
%{python3_sitelib}/%{name}-*
|
|
|
|
%{_datadir}/applications/*%{name}*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*%{name}*.*
|
|
|
|
%dir %{_datadir}/metainfo/
|
|
|
|
%{_datadir}/metainfo/*%{name}*.appdata.xml
|
2015-07-26 00:25:19 +02:00
|
|
|
%{_mandir}/man?/%{name}*%{?ext_man}
|
2014-10-26 11:55:33 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|