You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kde-connect/kde-connect.spec

336 lines
10 KiB

# once kf5 dolphin lands, may consider disabling this -- rex
%if 0%{?fedora} < 24
%global _with_kde4 1
%endif
Name: kde-connect
8 years ago
Version: 1.0
Release: 1%{?dist}
License: GPLv2+
Summary: KDE Connect client for communication with smartphones
Url: https://projects.kde.org/kdeconnect-kde
%if 0%{?_git_describe:1}
# using releaseme:
# ./tarme.rb kdeconnect-kde --origin trunk --version 0.8
# then rename accordingly
Source0: kdeconnect-kde-%{_git_describe}.tar.xz
%else
8 years ago
Source0: http://download.kde.org/stable/kdeconnect/%{version}/src/kdeconnect-kde-%{version}.tar.xz
%endif
Source1: http://download.kde.org/unstable/kdeconnect/0.8/src/kdeconnect-kde-0.8.tar.xz
# firewalld service definition, see https://bugzilla.redhat.com/show_bug.cgi?id=1257699#c2
Source2: kde-connect.xml
# Upstream patch for KDE 4 version
Patch0: kdeconnect-kde-0.8-b-revision.patch
BuildRequires: desktop-file-utils
BuildRequires: extra-cmake-modules
BuildRequires: firewalld-filesystem
BuildRequires: kf5-rpm-macros
BuildRequires: kf5-kcmutils-devel
8 years ago
BuildRequires: kf5-kdoctools-devel
BuildRequires: kf5-kconfigwidgets-devel
BuildRequires: kf5-kdbusaddons-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kiconthemes-devel
Buildrequires: kf5-kio-devel
BuildRequires: kf5-knotifications-devel
BuildRequires: kf5-kwayland-devel
BuildRequires: libXtst-devel
BuildRequires: pkgconfig(libfakekey)
10 years ago
BuildRequires: qca-qt5-devel >= 2.1.0-14
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
BUildRequires: qt5-qtx11extras-devel
%if 0%{?_with_kde4}
BuildRequires: kdelibs4-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libfakekey)
BuildRequires: pkgconfig(QJson)
BuildRequires: pkgconfig(qca2)
%else
Obsoletes: kde-connect-kde4-ioslave < 0.9
Obsoletes: kde-connect-kde4-libs < 0.9
%endif
# upstream name
Provides: kdeconnect-kde = %{version}-%{release}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: kdeconnectd = %{version}-%{release}
Requires: kf5-filesystem
Requires: fuse-sshfs
Requires: qca-qt5-ossl
# /usr/bin/plasmawindowed (make optional at least until this is split out for bug #1286431)
#Recommends: plasma-workspace
# /usr/bin/kcmshell5
Requires: kde-cli-tools
%description
KDE Connect adds communication between KDE and your smartphone.
Currently, you can pair with your Android devices over Wifi using the
8 years ago
KDE Connect 1.0 app from Albert Vaka which you can obtain via Google Play, F-Droid
or the project website.
%package -n kdeconnectd
Summary: KDE Connect service
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: firewalld-filesystem
%description -n kdeconnectd
%{summary}.
%package libs
Summary: Runtime libraries for %{name}
Requires: %{name} = %{version}-%{release}
%description libs
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
%{summary}.
%if 0%{?_with_kde4}
%package kde4-libs
Summary: Runtime libraries for %{name} KDE4 kioslave
# circular deps, this is mostly useless without the ioslave too -- rex
Requires: %{name}-kde4-ioslave = %{version}-%{release}
%description kde4-libs
%{summary}.
%package kde4-ioslave
Summary: %{name} KDE4 kioslave
Requires: %{name}-kde4-libs%{?_isa} = %{version}-%{release}
Requires: fuse-sshfs
%description kde4-ioslave
%{summary}.
%endif
%prep
8 years ago
%setup -q -n kdeconnect-kde-%{version}
8 years ago
%if 0%{?_with_kde4}
tar xfJ %{SOURCE1}
pushd kdeconnect-kde-0.8
%patch0 -p1
popd
%endif
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%if 0%{?_with_kde4}
8 years ago
pushd kdeconnect-kde-0.8
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
make %{?_smp_mflags} -C interfaces/
make %{?_smp_mflags} -C kio/
popd
8 years ago
popd
%endif
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
install -m644 -p -D %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/services/kde-connect.xml
%find_lang %{name} --all-name
# https://bugzilla.redhat.com/show_bug.cgi?id=1296523
desktop-file-edit --remove-key=OnlyShowIn %{buildroot}%{_sysconfdir}/xdg/autostart/kdeconnectd.desktop
%if 0%{?_with_kde4}
8 years ago
make install/fast DESTDIR=%{buildroot} -C kdeconnect-kde-0.8/%{_target_platform}/interfaces
make install/fast DESTDIR=%{buildroot} -C kdeconnect-kde-0.8/%{_target_platform}/kio
# Remove undesired kde4 devel files
rm -rfv %{buildroot}%{_includedir}/kde4/
rm -rfv %{buildroot}%{_libdir}/cmake/
rm -rfv %{buildroot}%{_kde4_libdir}/libkdeconnectinterfaces.so
%endif
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.kcm.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.nonplasma.desktop
%post
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi
%files -f %{name}.lang
%license COPYING
%{_kf5_bindir}/kdeconnect-cli
%{_kf5_datadir}/plasma/plasmoids/org.kde.kdeconnect/
%{_kf5_datadir}/knotifications5/*
%{_kf5_datadir}/kservices5/*.desktop
%{_kf5_datadir}/kservices5/*.protocol
%{_kf5_datadir}/kservicetypes5/*.desktop
%{_qt5_plugindir}/kcm_kdeconnect.so
%{_qt5_plugindir}/kio_kdeconnect.so
%{_datadir}/icons/hicolor/*/apps/kdeconnect.*
%{_datadir}/icons/hicolor/*/status/*
%{_datadir}/applications/org.kde.kdeconnect.kcm.desktop
%{_datadir}/applications/org.kde.kdeconnect.nonplasma.desktop
%{_qt5_archdatadir}/qml/org/kde/kdeconnect/
8 years ago
%{_kf5_docdir}/HTML/en/kdeconnect-kde/
%post -n kdeconnectd
%{?firewalld_reload}
%postun -n kdeconnectd
if [ $1 -eq 0 ] ; then
%{?firewalld_reload}
fi
%files -n kdeconnectd
%{_sysconfdir}/xdg/autostart/kdeconnectd.desktop
%{_libexecdir}/kdeconnectd
%{_datadir}/dbus-1/services/org.kde.kdeconnect.service
%{_prefix}/lib/firewalld/services/kde-connect.xml
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files libs
8 years ago
%{_kf5_libdir}/libkdeconnectpluginkcm.so.1*
%{_kf5_libdir}/libkdeconnectinterfaces.so.1*
%{_kf5_libdir}/libkdeconnectcore.so.1*
%{_qt5_plugindir}/kdeconnect*.so
%{_qt5_plugindir}/kdeconnect/
%if 0%{?_with_kde4}
%post kde4-libs -p /sbin/ldconfig
%postun kde4-libs -p /sbin/ldconfig
%files kde4-libs
%{_kde4_libdir}/libkdeconnectinterfaces.so.1*
%files kde4-ioslave
%{_kde4_datadir}/kde4/services/kdeconnect.protocol
%{_kde4_libdir}/kde4/kio_kdeconnect.so
%endif
%changelog
8 years ago
* Sun Aug 28 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.0-1
- kde-connect-1.0
* Sun Jun 05 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.9-7
- prep git snapshot (for 1.0 compatibility), but don't use yet
- kdeconnectd subpkg (#1324214)
- kdeconnectd does not autostart on MATE (#1296523)
* Fri Feb 19 2016 Rex Dieter <rdieter@fedoraproject.org> 0.9-6
- drop kde4 support (f24+)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9 years ago
* Sat Jan 09 2016 Rex Dieter <rdieter@fedoraproject.org> 0.9-4
- kde-connect-0.9g
* Tue Dec 01 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9-3
- make plasma-workspace a soft dependency (#1286431)
* Thu Nov 19 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9-2
- respin kde-connect-0.9f, includes translations
* Mon Nov 16 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
- kde-connect-0.9 (missing translations?)
* Tue Nov 10 2015 Rex Dieter <rdieter@fedoraproject.org> 0.8-10
- Requires: plasma-workspace kde-cli-tools (#1280078)
* Wed Sep 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.8-9
- include kde-connect firewalld service (#1115547)
10 years ago
* Thu Aug 27 2015 Helio Chissini de Castro <helio@kde.org> - 0.8-8
- Added buildreq for specific qca version that has proper headers
* Wed Aug 26 2015 Rex Dieter <rdieter@fedoraproject.org> - 0.8-7
- fresh snapshot, use releaseme to include translations
- tighten subpkg deps
- .spec cosmetics
* Fri Aug 07 2015 Helio Chissini de Castro <helio@kde.org> - 0.8-6
- Added missing requires, qca-qt5-ossl. Thanks to Stefano Cavallari <spiky.kiwi@gmail.com>
10 years ago
* Wed Aug 05 2015 Helio Chissini de Castro <helio@kde.org> - 0.8-5
- Update the KF5 snapshot.
- Added b revision for 0.8 KDE 4
- Added requires for fuse-ssh ( thanks to Sudhir Khanger )
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri May 01 2015 Helio Chissini de Castro <helio@kde.org> - 0.8.3
- Added some missing buildrequires for rawhide
* Mon Apr 20 2015 Helio Chissini de Castro <helio@kde.org> - 0.8-2
- KDE Connect KF5 snapshot based on 0.8 and kioslave for KDE 4
* Sun Feb 22 2015 Rex Dieter <rdieter@fedoraproject.org> 0.8-1
- KDE Connect 0.8 available (#1195011)
- 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
- BR: libfakekey-devel (and switch other BR's to pkgconfig style)
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jul 06 2014 Rex Dieter <rdieter@fedoraproject.org> 0.7.2-1
- kde-connect-0.7.2 (#1116448)
11 years ago
* Sun Jun 29 2014 Rex Dieter <rdieter@fedoraproject.org> 0.7.1-1
- 0.7.1
* Sat Jun 28 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.7-1
- kde-connect-0.7 (#1114196)
- Requires: fuse-sshfs (#1114197)
- Requires: qca-ossl
- -libs, -devel subpkgs
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-0.3.20140305git52901898
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Mar 05 2014 Martin Briza <mbriza@redhat.com> - 0.6-0.2.20140305git52901898
- Include the translations too
* Wed Mar 05 2014 Martin Briza <mbriza@redhat.com> - 0.6-0.1.20140305git52901898
- Updated to the latest upstream git to match the mobile app release
* Mon Feb 24 2014 Martin Briza <mbriza@redhat.com> - 0.5-1
- New release
* Thu Jan 02 2014 Martin Briza <mbriza@redhat.com> - 0.4.2-1
- Initial package