File krfb.spec of Package krfb

#
# spec file for package krfb
#
# 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:           krfb
BuildRequires:  systemd-devel
BuildRequires:  telepathy-qt5-devel
BuildRequires:  ktp-common-internals-devel
BuildRequires:  LibVNCServer-devel
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  extra-cmake-modules
BuildRequires:  ki18n-devel
BuildRequires:  kcrash-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kdbusaddons-devel
BuildRequires:  kdnssd-framework-devel
BuildRequires:  kdoctools-devel
BuildRequires:  kdelibs4support-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  update-desktop-files
BuildRequires:  oxygen-icon-theme-large
Version:        16.08.2
Release:        0
Summary:        Desktop Sharing
License:        GPL-2.0+
Group:          Productivity/Networking/Remote Desktop
Source0:        %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
VNC-compatible server to share KDE desktops.

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

%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
  %cmake_kf5 -d build -- -DBUILD_EXPERIMENTAL_TUBES_SUPPORT="on"
  make

%install
  cd build
  %makeinstall
  cd ..
  
  for i in 128 16 22 32 48 64
  do
     mkdir -p %{buildroot}%{_kf5_iconsdir}/hicolor/${i}x${i}/apps
     cp %{_kf5_iconsdir}/oxygen/${i}x${i}/apps/krfb.png %{buildroot}%{_kf5_iconsdir}/hicolor/${i}x${i}/apps/ \
     || cp %{_kf5_iconsdir}/oxygen/base/${i}x${i}/apps/krfb.png %{buildroot}%{_kf5_iconsdir}/hicolor/${i}x${i}/apps/
  done

  %suse_update_desktop_file -r org.kde.krfb         System   RemoteAccess

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_kf5_bindir}/krfb
%{_kf5_libdir}/libkrfbprivate.so*
%{_kf5_applicationsdir}/org.kde.krfb.desktop
%{_kf5_htmldir}/en/krfb/
%{_kf5_servicetypesdir}/krfb-framebuffer*.desktop
%{_kf5_iconsdir}/hicolor/*/apps/krfb.*
%_kf5_plugindir/krfb/
%_datadir/krfb/

%changelog
openSUSE Build Service is sponsored by