Raymond Wooninck 2016-04-12 14:41:26 +00:00 committed by Git OBS Bridge
parent 90c2cccdf7
commit 2b530cf2dd

View File

@ -20,12 +20,23 @@ Name: krdc
BuildRequires: LibVNCServer-devel BuildRequires: LibVNCServer-devel
BuildRequires: freerdp BuildRequires: freerdp
BuildRequires: freerdp-devel BuildRequires: freerdp-devel
BuildRequires: libkde4-devel BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1310 && 0%{?is_opensuse} BuildRequires: extra-cmake-modules
BuildRequires: pkgconfig(TelepathyQt4) BuildRequires: cmake(KF5Config)
%endif BuildRequires: cmake(KF5KCMUtils)
BuildRequires: oxygen-icon-theme-large BuildRequires: cmake(KF5DNSSD)
Version: 16.03.90 BuildRequires: cmake(KF5NotifyConfig)
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5Bookmarks)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5DocTools)
BuildRequires: oxygen5-icon-theme-large
Version: 15.12.1
Release: 0 Release: 0
Summary: Remote Desktop Connection Summary: Remote Desktop Connection
License: GPL-2.0+ License: GPL-2.0+
@ -33,7 +44,7 @@ Group: Productivity/Networking/Remote Desktop
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: freerdp Requires: freerdp
%kde4_runtime_requires Requires: breeze5-icons
%description %description
Krdc allows to connect to VNC and RDP compatible servers. Krdc allows to connect to VNC and RDP compatible servers.
@ -42,7 +53,6 @@ Krdc allows to connect to VNC and RDP compatible servers.
Summary: Development files for krdc Summary: Development files for krdc
Group: Development/Libraries/KDE Group: Development/Libraries/KDE
Requires: krdc = %{version} Requires: krdc = %{version}
%kde4_runtime_requires
%description devel %description devel
Development libraries and headers needed to build software using krdc Development libraries and headers needed to build software using krdc
@ -54,25 +64,22 @@ Development libraries and headers needed to build software using krdc
%ifarch ppc ppc64 %ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif %endif
%cmake_kde4 -d build %cmake_kf5 -d build
make make
%install %install
cd build %kf5_makeinstall -C build
%makeinstall
for i in 128 16 22 32 48 64 for i in 128 16 22 32 48 64
do do
mkdir -p %{buildroot}%{_kde4_datadir}/icons/hicolor/${i}x${i}/apps mkdir -p %{buildroot}%{_kf5_iconsdir}/hicolor/${i}x${i}/apps
done done
cp /usr/share/icons/oxygen/128x128/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/128x128/apps/ cp %{_kf5_iconsdir}/oxygen/base/128x128/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/128x128/apps/
cp /usr/share/icons/oxygen/16x16/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/16x16/apps/ cp %{_kf5_iconsdir}/oxygen/base/16x16/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/16x16/apps/
cp /usr/share/icons/oxygen/22x22/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/22x22/apps/ cp %{_kf5_iconsdir}/oxygen/base/22x22/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/22x22/apps/
cp /usr/share/icons/oxygen/32x32/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/32x32/apps/ cp %{_kf5_iconsdir}/oxygen/base/32x32/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/32x32/apps/
cp /usr/share/icons/oxygen/48x48/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/48x48/apps/ cp %{_kf5_iconsdir}/oxygen/base/48x48/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/48x48/apps/
cp /usr/share/icons/oxygen/64x64/apps/krdc.png %{buildroot}%{_kde4_datadir}/icons/hicolor/64x64/apps/ cp %{_kf5_iconsdir}/oxygen/base/64x64/apps/krdc.png %{buildroot}%{_kf5_iconsdir}/hicolor/64x64/apps/
cd .. %suse_update_desktop_file -r org.kde.krdc System RemoteAccess
%suse_update_desktop_file -r krdc System RemoteAccess
%kde_post_install
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -84,31 +91,26 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING COPYING.DOC %doc COPYING COPYING.DOC
%{_kde4_bindir}/krdc %_bindir/krdc
%{_kde4_modulesdir}/kcm_krdc_*.so %_libdir/libkrdccore.so.*
%{_kde4_modulesdir}/krdc_*plugin.so %_kf5_plugindir/krdc/
%{_kde4_libdir}/libkrdccore.so.* %_kf5_applicationsdir/org.kde.krdc.desktop
%{_kde4_applicationsdir}/krdc.desktop %dir %_kf5_configkcfgdir
%{_kde4_htmldir}/en/krdc %_kf5_configkcfgdir/krdc.kcfg
%{_kde4_configkcfgdir}/krdc.kcfg %_kf5_htmldir/en/krdc/
%{_kde4_appsdir}/krdc/ %_kf5_iconsdir/hicolor/*/apps/krdc.png
%{_kde4_servicesdir}/ServiceMenus/smb2rdc.desktop %_datadir/krdc/
%{_kde4_servicesdir}/krdc_*.desktop %_kf5_servicesdir/krdc_vnc_config.desktop
%{_kde4_servicesdir}/*.protocol %_kf5_servicesdir/vnc.protocol
%{_kde4_servicetypesdir}/krdc_plugin.desktop %_kf5_kxmlguidir/krdc/
%_kde4_iconsdir/hicolor/*/apps/krdc.* %{_kf5_servicesdir}/ServiceMenus/
%if 0%{?suse_version} > 1310 && 0%{?is_opensuse} %{_kf5_servicesdir}/krdc_rdp_config.desktop
%{_kde4_bindir}/krdc_rfb_approver %{_kf5_servicesdir}/rdp.protocol
%{_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 %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_kde4_libdir}/libkrdccore.so %_includedir/krdc/
%{_kde4_includedir}/krdc/ %_includedir/krdccore_export.h
%_libdir/libkrdccore.so
%changelog %changelog