libqxmpp/libqxmpp.spec
Marcus Meissner 39f5ad7c40 Accepting request 1144105 from home:jubalh:branches:network
- Update to 1.5.6:
  * Behaviour change: sendIq() automatically parses stanza errors (returned as QXmppError)
  * CMake: "QXmpp" legacy cmake package is now only installed for Qt 5 builds
  * Fix unit tests with Qt 6!
  * EncryptedFileSharingProvider: Fix wrong cipher set in sent file share element
  * Fix SCE parsing mode when parsing encrypted messages
  * Fix file encryption with QCA issues
  * Fix picking by strength of hashing algorithms
  * Fix github ci
  * Add unit tests for all file encryption ciphers

- Update to 1.5.5:
  * Fix dependencies in generated pkg-config files
  * Fix compilation with android/clang

- Update to 1.5.4:
  * OMEMO fixes
  * Fix use-after-move in EntityTimeManager
  * EME: Always send encryption name text
  * Fix interpretation of empty to/from address in the client
  * MSVC related build fixes
  * Support installing QXmpp with Qt 5 and Qt 6 in parallel
  * Support building QXmppOmemo statically

OBS-URL: https://build.opensuse.org/request/show/1144105
OBS-URL: https://build.opensuse.org/package/show/network/libqxmpp?expand=0&rev=38
2024-02-06 08:35:11 +00:00

138 lines
3.6 KiB
RPMSpec

#
# spec file for package libqxmpp
#
# Copyright (c) 2024 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/
#
# Currently not available on 15.4 / 15.5
%if 0%{?suse_version} > 1500
%bcond_without omemo
%endif
%define sover 4
Name: libqxmpp
Version: 1.5.6
Release: 0
Summary: Qt XMPP Library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/qxmpp-project/qxmpp/
Source0: https://github.com/qxmpp-project/qxmpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.7
BuildRequires: doxygen
BuildRequires: fdupes
# c++-17 is required
%if 0%{?suse_version} == 1500
BuildRequires: gcc10-c++
%endif
BuildRequires: pkgconfig
BuildRequires: cmake(Qca-qt5)
BuildRequires: cmake(Qt5Core) >= 5.15.0
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Xml)
BuildRequires: pkgconfig(gstreamer-1.0)
%if %{with omemo}
BuildRequires: pkgconfig(libomemo-c)
%endif
%description
QXmpp is a cross-platform C++ XMPP client library based on Qt and C++.
%package -n %{name}%{sover}
Summary: Qt XMPP Library
Group: System/Libraries
Provides: libqxmpp-qt5-0 = %{version}
Obsoletes: libqxmpp-qt5-0 < %{version}
%description -n %{name}%{sover}
QXmpp is a cross-platform C++ XMPP client library based on Qt and C++.
%package -n %{name}-devel
Summary: Qxmpp Development Files
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
Requires: pkgconfig(gstreamer-1.0)
Provides: libqxmpp-qt5-devel = %{version}
Obsoletes: libqxmpp-qt5-devel < %{version}
%description -n %{name}-devel
Development package for qxmpp.
%package doc
Summary: Qxmpp library documentation
Group: Documentation/HTML
BuildArch: noarch
%description doc
This packages provides documentation of Qxmpp library API.
%prep
%setup -q -n qxmpp-%{version}
%build
%if 0%{?suse_version} <= 1500
export CXX=g++-10
%endif
%cmake \
-DWITH_GSTREAMER=ON \
-DBUILD_DOCUMENTATION=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_TESTS=ON \
%if %{with omemo}
-DBUILD_OMEMO=ON \
%endif
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}/doc/qxmpp/
%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
# Exclude tests needing a network connection
%{ctest --exclude-regex "tst_(qxmppcallmanager|qxmppiceconnection|qxmppserver|qxmpptransfermanager|qxmppuploadrequestmanager)"}
%ldconfig_scriptlets -n %{name}%{sover}
%files -n %{name}%{sover}
%license LICENSES/*
%doc AUTHORS CHANGELOG.md README.md
%{_libdir}/libQXmppQt5.so.*
%if %{with omemo}
%{_libdir}/libQXmppOmemoQt5.so.*
%endif
%files -n %{name}-devel
%{_includedir}/QXmppQt5/
%{_libdir}/libQXmppQt5.so
%{_libdir}/cmake/QXmpp/
%{_libdir}/cmake/QXmppQt5/
%{_libdir}/pkgconfig/qxmpp.pc
%{_libdir}/pkgconfig/QXmppQt5.pc
%if %{with omemo}
%{_libdir}/libQXmppOmemoQt5.so
%{_libdir}/cmake/QXmppOmemoQt5/
%endif
%files doc
%{_datadir}/doc/qxmpp/
%changelog