SHA256
1
0
forked from pool/krfb
krfb/krfb.spec

122 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package krfb
#
# Copyright (c) 2017 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/
#
%bcond_without lang
Name: krfb
Version: 17.08.0
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: Desktop Sharing
License: GPL-2.0+
Group: Productivity/Networking/Other
Source0: %{name}-%{version}.tar.xz
BuildRequires: LibVNCServer-devel
BuildRequires: extra-cmake-modules
BuildRequires: kcompletion-devel
BuildRequires: kconfig-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kcrash-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdnssd-framework-devel
BuildRequires: kdoctools-devel
BuildRequires: ki18n-devel
BuildRequires: knotifications-devel
BuildRequires: ktp-common-internals-devel
BuildRequires: kwallet-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kxmlgui-devel
BuildRequires: oxygen5-icon-theme-large
BuildRequires: pkgconfig
BuildRequires: systemd-devel
BuildRequires: telepathy-qt5-devel
BuildRequires: update-desktop-files
BuildRequires: xcb-util-image-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
%if %{with lang}
Recommends: %{name}-lang
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
VNC-compatible server to share KDE desktops.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%cmake_kf5 -d build -- -DBUILD_EXPERIMENTAL_TUBES_SUPPORT="on"
make
%install
%make_install -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%kf5_find_htmldocs
%endif
for i in 128 64 48 32 22 16
do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
done
cp %{_datadir}/icons/oxygen/base/128x128/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/
cp %{_datadir}/icons/oxygen/base/16x16/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
cp %{_datadir}/icons/oxygen/base/22x22/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/
cp %{_datadir}/icons/oxygen/base/32x32/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
cp %{_datadir}/icons/oxygen/base/48x48/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
cp %{_datadir}/icons/oxygen/base/64x64/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
cd ..
%suse_update_desktop_file -r org.kde.krfb System RemoteAccess
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README
%doc %lang(en) %{_kf5_htmldir}/en/krfb/
%{_kf5_applicationsdir}/org.kde.krfb.desktop
%{_kf5_appstreamdir}/
%{_kf5_bindir}/krfb
%{_kf5_iconsdir}/hicolor/*/apps/krfb.*
%{_kf5_libdir}/libkrfbprivate.so*
%{_kf5_plugindir}/krfb/
%{_kf5_servicetypesdir}/krfb-framebuffer*.desktop
%{_kf5_sharedir}/krfb/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog