File telepathy-morse.spec of Package telepathy-morse

Name:		telepathy-morse
Summary:	A Telegram connection manager
Version:	0.2.0
Release:	1
Group:		Applications/Communications
License:	GPL-2.0
URL:		https://github.com/TelepathyIM/telepathy-morse
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-1) >= 1.1.0
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(TelegramQt5) >= 0.2.0
BuildRequires:	pkgconfig(TelepathyQt5) >= 0.9.6
BuildRequires:	pkgconfig(TelepathyQt5Service) >= 0.9.6
BuildRequires:	pkgconfig(TelepathyQt5Farstream) >= 0.9.6
BuildRequires:	cmake >= 2.8

%description
A Telegram connection manager.


%prep
%setup -q -n %{name}-%{version}


%build
%cmake -DCMAKE_INSTALL_LIBEXECDIR=%{_libdir}/libexec
make %{?_smp_mflags}


%install
%cmake_install

%clean
rm -rf %{buildroot}


%post
/sbin/ldconfig

%postun
/sbin/ldconfig


%files
%defattr(-,root,root,-)
%dir %{_libdir}/libexec
%{_libdir}/libexec/%{name}
%{_datadir}/dbus-1/services/*.service
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers
%{_datadir}/telepathy/managers/*.manager