2012-09-09 23:51:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqxmpp
|
|
|
|
#
|
2015-03-16 20:22:21 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-01-11 09:30:55 +01:00
|
|
|
%define build_qt4 1
|
|
|
|
%define build_qt5 0
|
|
|
|
|
2012-09-09 23:51:59 +02:00
|
|
|
Name: libqxmpp
|
2015-03-16 20:22:21 +01:00
|
|
|
Version: 0.8.3
|
2012-09-09 23:51:59 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Qt XMPP Library
|
|
|
|
License: LGPL-2.0+
|
|
|
|
Group: System/Libraries
|
2014-03-27 20:09:54 +01:00
|
|
|
Url: http://qxmpp.org
|
2015-01-11 09:30:55 +01:00
|
|
|
Source0: https://github.com/qxmpp-project/qxmpp/archive/v%{version}.tar.gz
|
2013-08-21 17:34:14 +02:00
|
|
|
Source1: baselibs.conf
|
2015-01-11 09:30:55 +01:00
|
|
|
# PATCH-FEATURE-OPENSUSE to make Qt5 build.
|
|
|
|
Patch0: libqxmpp-qt5.patch
|
|
|
|
|
2012-09-09 23:51:59 +02:00
|
|
|
BuildRequires: fdupes
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt4
|
|
|
|
BuildRequires: pkgconfig(QtCore)
|
2013-08-21 17:34:14 +02:00
|
|
|
%endif
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt5
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(opus)
|
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
BuildRequires: pkgconfig(theora)
|
|
|
|
BuildRequires: pkgconfig(vpx)
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.
|
2013-08-21 17:34:14 +02:00
|
|
|
|
2012-09-09 23:51:59 +02:00
|
|
|
QXmpp is pretty intuitive and easy to use. It uses Qt extensively. Qt is the only
|
|
|
|
third party library it is dependent on. Users need to a have working knowledge of
|
|
|
|
C++ and Qt basics (Signals and Slots and Qt data types). The underlying TCP socket
|
|
|
|
and the XMPP RFCs (RFC3920 and RFC3921) have been encapsulated into classes and
|
|
|
|
functions. Therefore the user would not be bothered with these details. But it is
|
|
|
|
always recommended to the advanced users to read and enjoy the low level details.
|
|
|
|
|
|
|
|
%package -n %{name}0
|
|
|
|
Summary: Qt XMPP Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{name}0
|
|
|
|
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.
|
2013-08-21 17:34:14 +02:00
|
|
|
|
2012-09-09 23:51:59 +02:00
|
|
|
QXmpp is pretty intuitive and easy to use. It uses Qt extensively. Qt is the only
|
|
|
|
third party library it is dependent on. Users need to a have working knowledge of
|
|
|
|
C++ and Qt basics (Signals and Slots and Qt data types). The underlying TCP socket
|
|
|
|
and the XMPP RFCs (RFC3920 and RFC3921) have been encapsulated into classes and
|
|
|
|
functions. Therefore the user would not be bothered with these details. But it is
|
|
|
|
always recommended to the advanced users to read and enjoy the low level details.
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
|
|
|
|
Summary: Qxmpp Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt4
|
|
|
|
Requires: %{name}0 = %{version}
|
|
|
|
%endif
|
|
|
|
%if %build_qt5
|
|
|
|
Requires: %{name}-0 = %{version}
|
|
|
|
%endif
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
It's a development package for qxmpp.
|
|
|
|
|
|
|
|
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.
|
|
|
|
|
|
|
|
%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}
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt5
|
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
|
|
|
# A hack vs. "E: arch-independent-package-contains-binary-or-object"
|
|
|
|
# after %%check.
|
|
|
|
cp -r examples doc/
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%build
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt4
|
2013-08-21 17:34:14 +02:00
|
|
|
qmake \
|
2015-01-11 09:30:55 +01:00
|
|
|
%endif
|
|
|
|
%if %build_qt5
|
|
|
|
qmake-qt5 \
|
|
|
|
%endif
|
2013-08-21 17:34:14 +02:00
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_lib} \
|
|
|
|
QMAKE_STRIP="" \
|
|
|
|
QMAKE_CXXFLAGS+="%{optflags}" \
|
2015-01-11 09:30:55 +01:00
|
|
|
QXMPP_USE_OPUS=1 \
|
2013-08-21 17:34:14 +02:00
|
|
|
QXMPP_USE_SPEEX=1 \
|
2015-01-11 09:30:55 +01:00
|
|
|
QXMPP_USE_THEORA=1 \
|
|
|
|
QXMPP_USE_VPX=1
|
2013-08-21 17:34:14 +02:00
|
|
|
|
2015-01-11 09:30:55 +01:00
|
|
|
make V=1 %{?_smp_mflags}
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
|
|
|
%fdupes %{buildroot}%{_datadir}/doc/qxmpp/
|
|
|
|
|
2015-01-11 09:30:55 +01:00
|
|
|
%check
|
|
|
|
make V=1 %{?_smp_mflags} check
|
|
|
|
|
2012-09-09 23:51:59 +02:00
|
|
|
%post -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}0
|
|
|
|
%defattr(-,root,root)
|
2015-01-11 09:30:55 +01:00
|
|
|
%doc AUTHORS CHANGELOG LICENSE.LGPL README*
|
2012-09-09 23:51:59 +02:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}.so
|
2015-01-11 09:30:55 +01:00
|
|
|
%if %build_qt4
|
|
|
|
%{_includedir}/qxmpp
|
2012-09-09 23:51:59 +02:00
|
|
|
%{_libdir}/pkgconfig/qxmpp.pc
|
2015-01-11 09:30:55 +01:00
|
|
|
%endif
|
|
|
|
%if %build_qt5
|
|
|
|
%{_includedir}/qxmpp-qt5
|
|
|
|
%{_libdir}/pkgconfig/qxmpp-qt5.pc
|
|
|
|
%endif
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2015-01-11 09:30:55 +01:00
|
|
|
%doc doc/examples
|
2012-09-09 23:51:59 +02:00
|
|
|
|
|
|
|
%changelog
|