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