krdc/krdc.spec

115 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package krdc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: krdc
BuildRequires: LibVNCServer-devel
BuildRequires: freerdp
BuildRequires: freerdp-devel
BuildRequires: libkde4-devel
%if 0%{?suse_version} > 1310 && 0%{?is_opensuse}
BuildRequires: pkgconfig(TelepathyQt4)
%endif
BuildRequires: oxygen-icon-theme-large
Version: 16.03.90
Release: 0
Summary: Remote Desktop Connection
License: GPL-2.0+
Group: Productivity/Networking/Remote Desktop
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: freerdp
%kde4_runtime_requires
%description
Krdc allows to connect to VNC and RDP compatible servers.
%package devel
Summary: Development files for krdc
Group: Development/Libraries/KDE
Requires: krdc = %{version}
%kde4_runtime_requires
%description devel
Development libraries and headers needed to build software using krdc
%prep
%setup -q -n %{name}-%{version}
%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%cmake_kde4 -d build
make
%install
cd build
%makeinstall
for i in 128 16 22 32 48 64
do
mkdir -p %{buildroot}%{_kde4_datadir}/icons/hicolor/${i}x${i}/apps
done
cp /usr/share/icons/oxygen/128x128/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/128x128/apps/
cp /usr/share/icons/oxygen/16x16/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/16x16/apps/
cp /usr/share/icons/oxygen/22x22/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/22x22/apps/
cp /usr/share/icons/oxygen/32x32/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/32x32/apps/
cp /usr/share/icons/oxygen/48x48/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/48x48/apps/
cp /usr/share/icons/oxygen/64x64/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/64x64/apps/
cd ..
%suse_update_desktop_file -r krdc System RemoteAccess
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%{_kde4_bindir}/krdc
%{_kde4_modulesdir}/kcm_krdc_*.so
%{_kde4_modulesdir}/krdc_*plugin.so
%{_kde4_libdir}/libkrdccore.so.*
%{_kde4_applicationsdir}/krdc.desktop
%{_kde4_htmldir}/en/krdc
%{_kde4_configkcfgdir}/krdc.kcfg
%{_kde4_appsdir}/krdc/
%{_kde4_servicesdir}/ServiceMenus/smb2rdc.desktop
%{_kde4_servicesdir}/krdc_*.desktop
%{_kde4_servicesdir}/*.protocol
%{_kde4_servicetypesdir}/krdc_plugin.desktop
%_kde4_iconsdir/hicolor/*/apps/krdc.*
%if 0%{?suse_version} > 1310 && 0%{?is_opensuse}
%{_kde4_bindir}/krdc_rfb_approver
%{_kde4_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.krdc_rfb_*.service
%{_kde4_appsdir}/krdc_rfb_approver/
%dir %{_kde4_datadir}/telepathy
%dir %{_kde4_datadir}/telepathy/clients
%{_kde4_datadir}/telepathy/clients/krdc_rfb_*.client
%endif
%files devel
%defattr(-,root,root)
%{_kde4_libdir}/libkrdccore.so
%{_kde4_includedir}/krdc/
%changelog