|
|
|
@ -1,24 +1,27 @@
|
|
|
|
|
%define _git_describe v0.8-231-gfdf91aa
|
|
|
|
|
|
|
|
|
|
Name: kde-connect
|
|
|
|
|
Version: 0.8
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Summary: KDE Connect client for communication with smartphones
|
|
|
|
|
|
|
|
|
|
Url: https://projects.kde.org/projects/playground/base/kdeconnect-kde
|
|
|
|
|
Source0: http://download.kde.org/unstable/kdeconnect/%{version}/src/kdeconnect-kde-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: kdelibs4-devel
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
|
BuildRequires: pkgconfig(libfakekey)
|
|
|
|
|
BuildRequires: pkgconfig(QJson)
|
|
|
|
|
BuildRequires: pkgconfig(qca2)
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
%{?_kde_runtime_requires}
|
|
|
|
|
Requires: fuse-sshfs
|
|
|
|
|
# core/daemon.cpp comments hint qca-gnupg may be required too (but I doubt it) -- rex
|
|
|
|
|
Requires: qca-ossl%{?_isa}
|
|
|
|
|
Source0: http://download.kde.org/unstable/kdeconnect/%{version}/src/kdeconnect-kde-%{_git_describe}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: kf5-rpm-macros
|
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel
|
|
|
|
|
BuildRequires: qca-qt5-devel
|
|
|
|
|
BuildRequires: kf5-ki18n-devel
|
|
|
|
|
Buildrequires: kf5-kio-devel
|
|
|
|
|
BuildRequires: kf5-kconfigwidgets-devel
|
|
|
|
|
BuildRequires: kf5-kdbusaddons-devel
|
|
|
|
|
BuildRequires: kf5-kcmutils-devel
|
|
|
|
|
BuildRequires: kf5-kiconthemes-devel
|
|
|
|
|
|
|
|
|
|
Requires: kf5-filesystem
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
KDE Connect adds communication between KDE and your smartphone.
|
|
|
|
@ -47,82 +50,68 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
%build
|
|
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
%{cmake_kde4} ..
|
|
|
|
|
%{cmake_kf5} ..
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
%find_lang %{name} --all-name --with-kde
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
desktop-file-edit --remove-not-show-in=Plasma --add-not-show-in=X-Plasma %{buildroot}/%{_datadir}/applications/kdeconnect-non-plasma.desktop
|
|
|
|
|
desktop-file-edit --remove-not-show-in=Plasma --add-not-show-in=X-Plasma %{buildroot}/%{_datadir}/applications/kdeconnect.desktop
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/bin/touch --no-create %{_kde4_iconsdir}/hicolor &>/dev/null || :
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
/bin/touch --no-create %{_kde4_iconsdir}/hicolor &>/dev/null
|
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &>/dev/null || :
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING README
|
|
|
|
|
%{_kde4_bindir}/kdeconnect-cli
|
|
|
|
|
#daemon
|
|
|
|
|
%{_libexecdir}/kde4/kdeconnectd
|
|
|
|
|
#kcm
|
|
|
|
|
%{_kde4_libdir}/kde4/kcm_kdeconnect.so
|
|
|
|
|
%{_kde4_datadir}/applications/kde4/kdeconnect.desktop
|
|
|
|
|
%{_kde4_datadir}/kde4/services/kcm_kdeconnect.desktop
|
|
|
|
|
#kio
|
|
|
|
|
%{_kde4_libdir}/kde4/kio_kdeconnect.so
|
|
|
|
|
%{_kde4_datadir}/kde4/services/kdeconnect.protocol
|
|
|
|
|
#lib
|
|
|
|
|
%{_kde4_libdir}/kde4/imports/org/kde/kdeconnect/
|
|
|
|
|
%{_kde4_libdir}/kde4/kded_kdeconnect.so
|
|
|
|
|
#dbus interfaces
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.daemon.xml
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.device.battery.xml
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.device.notifications.notification.xml
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.device.notifications.xml
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.device.xml
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.kdeconnect.device.sftp.xml
|
|
|
|
|
%{_datadir}/dbus-1/services/org.kde.kdeconnect.service
|
|
|
|
|
#modules
|
|
|
|
|
%{_kde4_libdir}/kde4/kdeconnect*.so
|
|
|
|
|
%{_kde4_appsdir}/kdeconnect/
|
|
|
|
|
%{_kde4_appsdir}/plasma/plasmoids/kdeconnect/
|
|
|
|
|
#module desktop files
|
|
|
|
|
%{_kde4_datadir}/kde4/services/kdeconnect*.desktop
|
|
|
|
|
%{_kde4_datadir}/kde4/services/kded/kdeconnect.desktop
|
|
|
|
|
%{_kde4_datadir}/kde4/services/plasma-kdeconnect.desktop
|
|
|
|
|
%{_kde4_datadir}/kde4/servicetypes/kdeconnect_plugin.desktop
|
|
|
|
|
#icons
|
|
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/kdeconnect.*
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
%{_libexecdir}/kdeconnectd
|
|
|
|
|
%{_kf5_bindir}/kdeconnect-cli
|
|
|
|
|
%{_kf5_datadir}/plasma/*
|
|
|
|
|
%{_kf5_datadir}/knotifications5/*
|
|
|
|
|
%{_kf5_datadir}/kservices5/*.desktop
|
|
|
|
|
%{_kf5_datadir}/kservices5/*.protocol
|
|
|
|
|
%{_kf5_datadir}/kservicetypes5/*.desktop
|
|
|
|
|
%{_datadir}/dbus-1/services/*.service
|
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
|
%{_qt5_prefix}/qml/org/kde/kdeconnect/*
|
|
|
|
|
%{_qt5_prefix}/plugins/*
|
|
|
|
|
%{_sysconfdir}/xdg/autostart/kdeconnectd.desktop
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{_kde4_libdir}/libkdeconnectcore.so.1*
|
|
|
|
|
%{_kde4_libdir}/libkdeconnectinterfaces.so.1*
|
|
|
|
|
%{_kf5_libdir}/libkdeconnectpluginkcm.so.0*
|
|
|
|
|
%{_kf5_libdir}/libkdeconnectinterfaces.so.0*
|
|
|
|
|
%{_kf5_libdir}/libkdeconnectcore.so.0*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_kde4_includedir}/KDEConnect/
|
|
|
|
|
%{_kde4_includedir}/kdeconnect/
|
|
|
|
|
%{_kde4_libdir}/cmake/KDEConnect/
|
|
|
|
|
%{_kde4_libdir}/libkdeconnectcore.so
|
|
|
|
|
%{_kde4_libdir}/libkdeconnectinterfaces.so
|
|
|
|
|
#%{_kf5_includedir}/KDEConnect/
|
|
|
|
|
#%{_kf5_includedir}/kdeconnect/
|
|
|
|
|
#%{_kf5_libdir}/cmake/KDEConnect/
|
|
|
|
|
#%{_kf5_libdir}/libkdeconnectcore.so
|
|
|
|
|
#%{_kf5_libdir}/libkdeconnectinterfaces.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 20 2015 Helio Chissini de Castro <helio@kde.org> - 0.8-2
|
|
|
|
|
- KDE Connect KF5 snapshot based on 0.8
|
|
|
|
|
|
|
|
|
|
* Sun Feb 22 2015 Rex Dieter <rdieter@fedoraproject.org> 0.8-1
|
|
|
|
|
- KDE Connect 0.8 available (#1195011)
|
|
|
|
|
- use %%{?_kde_runtime_requires} (instead of %%_kde4_version macro)
|
|
|
|
|
- use %%{?_kde_runtime_requires} (instead of %%_kf5_version macro)
|
|
|
|
|
|
|
|
|
|
* Thu Oct 16 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.7.3-1
|
|
|
|
|
- kde-connect-0.7.3
|
|
|
|
|