Name: telepathy-qt Version: 0.9.8 Release: %mkrel 4 Summary: Qt5 high-level bindings for Telepathy License: LGPLv2+ Group: Networking/Instant messaging Url: https://telepathy.freedesktop.org/wiki/Telepathy-Qt5 Source0: https://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz ## upstream patches ## mga patches Patch101: telepathy-qt-fix-FindGIOUnix.patch BuildRequires: pkgconfig(telepathy-farstream) >= 0.6 BuildRequires: pkgconfig(telepathy-glib) BuildRequires: pkgconfig(farstream-0.2) BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: python3-dbus BuildRequires: cmake BuildRequires: doxygen BuildRequires: libxml2-utils BuildRequires: qttools5-assistant %description Qt5 bindings for Telepathy. #-------------------------------------------------------------------- %define libtelepathy_qt5_farstream_major 0 %define libtelepathy_qt5_farstream %mklibname telepathy-qt5-farstream %{libtelepathy_qt5_farstream_major} %package -n %libtelepathy_qt5_farstream Summary: Telepathy Qt Farstream runtime library Group: System/Libraries %description -n %libtelepathy_qt5_farstream Telepathy Qt Farstream runtime library. %files -n %libtelepathy_qt5_farstream %{_libdir}/libtelepathy-qt5-farstream.so.%{libtelepathy_qt5_farstream_major}{,.*} #-------------------------------------------------------------------- %define libtelepathy_qt5_major 0 %define libtelepathy_qt5 %mklibname telepathy-qt5_ %{libtelepathy_qt5_major} %package -n %libtelepathy_qt5 Summary: Telepathy Qt runtime library Group: System/Libraries %description -n %libtelepathy_qt5 Telepathy Qt runtime library. %files -n %libtelepathy_qt5 %{_libdir}/libtelepathy-qt5.so.%{libtelepathy_qt5_major}{,.*} #-------------------------------------------------------------------- %define libtelepathy_qt5_service_major 1 %define libtelepathy_qt5_service %mklibname telepathy-qt5-service %{libtelepathy_qt5_service_major} %package -n %libtelepathy_qt5_service Summary: Telepathy Qt Service runtime library Group: System/Libraries %description -n %libtelepathy_qt5_service Telepathy Qt Service runtime library. %files -n %libtelepathy_qt5_service %{_libdir}/libtelepathy-qt5-service.so.%{libtelepathy_qt5_service_major} %{_libdir}/libtelepathy-qt5-service.so.0.%{version} #-------------------------------------------------------------------- %define develname %mklibname telepathy-qt -d %package -n %{develname} Summary: %{name} development files Group: Development/Other Provides: lib%{name}-devel = %{version} Provides: %name-devel = %{version} Requires: %libtelepathy_qt5 = %{version} Requires: %libtelepathy_qt5_farstream = %{version} Requires: %libtelepathy_qt5_service = %{version} Requires: pkgconfig(telepathy-farstream) >= 0.6 %description -n %{develname} Telepathy Qt development files. %files -n %{develname} %{_includedir}/* %{_libdir}/pkgconfig/* %{_libdir}/*.so %{_libdir}/cmake/TelepathyQt5/ %{_libdir}/cmake/TelepathyQt5Farstream/ %{_libdir}/cmake/TelepathyQt5Service/ #-------------------------------------------------------------------- %prep %setup -q %autopatch -p1 %build %cmake_qt5 \ -DDISABLE_WERROR:BOOL=ON \ -DENABLE_TESTS:BOOL=ON \ -DENABLE_FARSTREAM:BOOL=ON %cmake_build %install %cmake_install