Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37534518
en ru br
ALT Linux repos
S:0.9.8-alt3

Group :: System/Libraries
RPM: telepathy-qt5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define farstream farstream0.2
%define farstream_dev  pkgconfig(farstream-0.2) libtelepathy-farstream-devel
%define _cmake__builddir BUILD

%define sover 0
%define sover_service 1
%define lib_main libtelepathy-qt5%sover
%define lib_farstream libtelepathy-qt5-farstream%sover
%define lib_service libtelepathy-qt5-service%sover_service
%define dev_main libtelepathy-qt5%name-devel

Name: telepathy-qt5
Version: 0.9.8
Release: alt3

Summary: Telepathy framework - Qt5 connection manager library
License: GPLv2
Group: System/Libraries

URL: https://telepathy.freedesktop.org/components/telepathy-qt/

# https://telepathy.freedesktop.org/releases/telepathy-qt/

Source: telepathy-qt-%version.tar

BuildRequires(pre): qt5-base-devel qt5-tools
BuildRequires: python < 3 python >= 2.7
BuildRequires: cmake doxygen gcc-c++ git-core graphviz
BuildRequires: libxml2-devel glib2-devel libdbus-devel libdbus-glib-devel
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: %farstream_dev
BuildRequires: python-module-dbus python-module-distribute
BuildRequires: kde-common-devel

%description
Telepathy-Qt5 is a high-level binding for Telepathy, similar to telepathy-glib but for Qt 5.

%package common
Summary: %name common package
Group: System/Configuration/Other
BuildArch: noarch
%description common
%name common package

%package -n %lib_main
Group: System/Libraries
Summary: %name library
Requires: %name-common = %version-%release
Requires: %farstream
%description -n %lib_main
Telepathy-Qt5 is a high-level binding for Telepathy, similar to telepathy-glib but for Qt 5.

%package -n %lib_farstream
Group: System/Libraries
Summary: %name library
Requires: %name-common = %version-%release
%description -n %lib_farstream
%name library.

%package -n %lib_service
Group: System/Libraries
Summary: %name library
Requires: %name-common = %version-%release
%description -n %lib_service
%name library.

%package -n lib%name
Summary: Telepathy framework - Qt5 connection manager library
Group: System/Libraries
Requires: %lib_main %lib_farstream %lib_service
%description -n lib%name
Telepathy-Qt5 is a high-level binding for Telepathy, similar to telepathy-glib but for Qt 5.

%package devel
Summary: Development libraries and header files for %name
Group: Development/KDE and QT
Provides: lib%name-devel = %EVR
Obsoletes: lib%name-devel < %EVR
Requires: libtelepathy-glib-devel
%description devel
Development libraries and header files for %name.

%package devel-static
Summary: Static libraries for %name
Group: Development/KDE and QT
Provides: lib%name-devel-static = %EVR
Obsoletes: lib%name-devel-static < %EVR
Requires: %name-devel
%description devel-static
Static libraries for %name.

%prep
%setup -qn telepathy-qt-%version

%build
%ifarch %e2k
%add_optflags -std=c++11
%endif
export PATH=%_qt5_bindir:$PATH
export QT_DOC_DIR=%_qt5_docdir
%cmake \
   -DCMAKE_BUILD_TYPE:STRING=release \
   -DDESIRED_QT_VERSION=5 \
   -DENABLE_FARSTREAM:BOOL=ON \
   -DENABLE_FARSIGHT:BOOL=OFF \
   -DQT_DOC_DIR=%_qt5_docdir \
   -DENABLE_TESTS=OFF \
   -DENABLE_EXAMPLES=OFF \
   -DDISABLE_WERROR=ON \
   #

%cmake_build
%cmake_build --target doxygen-doc

%install
make -C BUILD install DESTDIR=%buildroot

%files common
%doc AUTHORS COPYING HACKING NEWS README

%files -n lib%name

%files -n %lib_main
%_libdir/libtelepathy-qt5.so.%sover
%_libdir/libtelepathy-qt5.so.*
%files -n %lib_farstream
%_libdir/libtelepathy-qt5-farstream.so.%sover
%_libdir/libtelepathy-qt5-farstream.so.*
%files -n %lib_service
%_libdir/libtelepathy-qt5-service.so.%sover_service
%_libdir/libtelepathy-qt5-service.so.*

%files devel
%doc %{_cmake__builddir}*/doc/html
%_libdir/cmake/TelepathyQt5*/
%_libdir/lib*.so
%_pkgconfigdir/TelepathyQt5*.pc
%_includedir/telepathy-qt5

#%files devel-static

#%_libdir/lib*.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin