SHA256
1
0
forked from pool/gajim
gajim/gajim.spec
Alexei Sorokin 4d589a7cd2 Accepting request 1004936 from home:sebix:branches:network
- update to version  1.5.1:
 - Bug Fixes
  - ChatBanner: Format markup string correctly
- update to version  1.5.0:
 - CVE-2022-39835
 - This release fixes a vulnerability which allowed attackers to craft a XML
 - stanza in a way, so Gajim would accept it as message correction for messages
 - not originating from the attacker.
 - New
  - Add drag and drop support for pinned chats
  - Workspaces: Add shortcuts for switching
  - Refactor ChatWidgets so they are only created once (#10987, #11038, #10973, #10119, #11052, #10945)
 - Improvements
  - Preview: Improve mime type detection (#11150)
  - SearchView: Add hint for search filters (#11136)
  - Preview: Show left click action tooltip on icon (#11138)
  - ACE: Highlight non-default values (#11120)
  - XMLConsole: Use SourceView for XML input (#11121)
  - Migration: Make archive migation more resilient
  - Workspaces: Move chats when removing workspace (#11098)
  - ChatList: Always show when switching workspace (#11108)
  - MessageActionsBox: Disable encryption button if MUC is public (#10959)
  - Increase contrast for message row meta elements
  - StatusIcon: Use new icon for pending events
  - WorkspaceSidebar: Allow removing workspace from context menu
  - AccountPage: Add button for Ad-Hoc commands
  - Don’t try to query avatars in MUCs which don’t allow it (#10937)
  - Don’t disco MUC participants on presence
  - Chatstate: Don’t make too many assumptions
  - Windows: Increase default font size
  - CSS: Use relative sizes for fonts
  - ChatControl: Show error if encryption plugin is missing
  - Store and restore running HTTP File Transfer uploads
  - Add button for toggling chat list (#11035)
  - ContactInfo/GroupchatDetails: Toggle icon when editing name
 - Change
  - Raise nbxmpp version
  - Raise PyGObject version (#11132)
  - Add requirement for min sqlite version
  - ChatBanner: Add button for managing voice requests
  - Remove IPython support
  - Rework ChatCommands
  - Shortcuts: Use Ctrl+F for opening the search bar (#11073)
  - Remove clear-chat action (Ctrl+L)
  - Raise required nbxmpp version to 3.2.2
 - Performance
  - Use Task Queue to request avatars on MUC join
 - Bug Fixes
  - GroupchatState: Hide when we are offline
  - Corrections: Don’t correct message if text has not changed (#11146)
  - Make plugin usable check work on all unix/linux systems (#11134)
  - MUC: Don’t ignore MUC invites when ignore_unknown_contacts is set (#11107)
  - Make shortcuts more discoverable (#11122, #11127)
  - Better validate message corrections
  - MUC: Improve automatically adding members on invite
  - Preview: Sanitize filename from disallowed chars (#11105#10752)
  - Chatstates: Don’t sent chatstate delayed to ourself
  - Don’t reset setting when closing single chat
  - Preview: Don’t fail if thumb file already exists (#11091)
  - MessageInputTextView: Account for having multiple blocks when applying style (#11015)
  - ActionMenu: Correctly execute text actions if text contains underscore
  - InfoMessage: Don’t escape text
  - MUC: Send password and reason correctly on invite
  - Preview: Reset received size before cancelling or downloading
  - BlockingList: Don’t fail with placeholder address (#11084)
  - ChatList: Update status for private chats correctly
  - ChatList: Update avatar for all chats correctly
  - GroupChat: Handle nickname changes correctly
  - Roster: Add missing contact-info action
  - Make switch-next-unread-tab action work
  - ChatBanner: Use correct scaling for chatstates
  - FileTransferRow: Don’t cancel transfer when switching chat
  - ChatBanner: Don’t show phone icon for group chats
  - Don’t handle message-sent even for groupchats
  - ChatBanner: Display account badge again
  - Make nick completion test pass
  - Preview: Store last_save_dir with Save As
  - Preview: Make sure the widget is not being destroyed while updating (#10920)
  - Fix handling of URLs without scheme (#11059)
  - GroupchatState: Call correct page for not-joined
  - ChatControl: Don’t assume messages always have a resource (#11042)
 - Notes
  - ChatCommands have been reworked. Only following commands are now available
 -   - status
 -   - invite
 -   - ban
 -   - affiliate
 -   - kick
 -   - role
  - Ctrl+H for opening the search bar has been removed, please use the
 -   commonly used Ctrl+F (find). The shortcut for starting a file transfer
 -   has been dropped.

OBS-URL: https://build.opensuse.org/request/show/1004936
OBS-URL: https://build.opensuse.org/package/show/network/gajim?expand=0&rev=111
2022-09-20 18:32:37 +00:00

131 lines
4.2 KiB
RPMSpec

#
# spec file for package gajim
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global __requires_exclude ^typelib\\(AppIndicator3\\)
%if 0%{?suse_version} > 1500
%define py3ver 3
%define py3pkg python3
%define py3pkg_sitelib %{python3_sitelib}
%else
# Requires at least python 3.9
%define py3ver 3.10
%define py3pkg python310
%define py3pkg_sitelib %{_prefix}/lib/python%{py3ver}/site-packages
%endif
Name: gajim
Version: 1.5.1
Release: 0
Summary: XMPP client written in Python and Gtk
License: GPL-3.0-only
Group: Productivity/Networking/Talk/Clients
URL: https://gajim.org/
Source: https://gajim.org/downloads/1.5/gajim-%{version}.tar.gz
BuildRequires: %{py3pkg}-nbxmpp >= 3.0
BuildRequires: %{py3pkg}-precis-i18n >= 1.0.0
BuildRequires: %{py3pkg}-setuptools
BuildRequires: ca-certificates-mozilla
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: hicolor-icon-theme
BuildRequires: p11-kit-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
Requires: %{py3pkg}-Pillow
Requires: %{py3pkg}-base
Requires: %{py3pkg}-css-parser
Requires: %{py3pkg}-gobject-Gdk
Requires: %{py3pkg}-gobject-cairo
Requires: %{py3pkg}-keyring
Requires: %{py3pkg}-nbxmpp >= 3.0
Requires: %{py3pkg}-precis-i18n >= 1.0.0
Requires: %{py3pkg}-pyOpenSSL >= 16.2
Requires: %{py3pkg}-pycairo >= 1.16.0
Requires: ca-certificates-mozilla
Requires: typelib(GtkSource) = 4
Requires: typelib(Soup) = 2.4
# gajim-remote
Recommends: %{py3pkg}-dbus-python
# OMEMO encryption
Recommends: gajim-plugin-omemo
Recommends: %{py3pkg}-axolotl
BuildArch: noarch
%description
Gajim is a Jabber/XMPP client. It works with MATE and GNOME, but does
require neither to run.
Features:
* Tabbed chat window and single window modes.
* Group chat support (with Multi-User Chat protocol), invitation,
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.
%lang_package
%prep
%setup -q
sed -i '/^Keywords/d' data/org.gajim.Gajim.desktop.in
sed -i '1{/\/usr\/bin\/*/d;}' gajim/gajim_remote.py
%build
python%{py3ver} setup.py build
%install
python%{py3ver} setup.py install \
--root=%{buildroot} --prefix=%{_prefix}
mkdir -p %{buildroot}%{_datadir}/
mv %{buildroot}{%{py3pkg_sitelib}/%{name}/data,%{_datadir}/%{name}}/
ln -s %{_datadir}/%{name} %{buildroot}%{py3pkg_sitelib}/%{name}/data
# The plugins subdirectory must be owned by the package.
mkdir %{buildroot}%{_datadir}/%{name}/plugins/
%suse_update_desktop_file -r org.gajim.Gajim Network InstantMessaging
%fdupes %{buildroot}%{_prefix}/
%find_lang %{name}
%files
%license COPYING
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{py3pkg_sitelib}/%{name}/
%{py3pkg_sitelib}/%{name}-*
%{_datadir}/applications/*%{name}*.desktop
%{_datadir}/icons/hicolor/*/apps/*%{name}*.*
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/*%{name}*.appdata.xml
%{_mandir}/man?/%{name}*%{?ext_man}
%files lang -f %{name}.lang
%changelog