Init package
This commit is contained in:
parent
9e1935c6db
commit
825d3efe7c
182
kde-connect.spec
Normal file
182
kde-connect.spec
Normal file
@ -0,0 +1,182 @@
|
||||
# enable experimental bluetooth support
|
||||
#global bluetooth 1
|
||||
|
||||
%global module kdeconnect-kde
|
||||
|
||||
Name: kde-connect
|
||||
Version: 22.08.0
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Summary: KDE Connect client for communication with smartphones
|
||||
|
||||
Url: https://community.kde.org/KDEConnect
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{module}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: firewalld-filesystem
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
BuildRequires: extra-cmake-modules >= 5.42
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: cmake(KF5ConfigWidgets)
|
||||
BuildRequires: cmake(KF5DBusAddons)
|
||||
BuildRequires: cmake(KF5DocTools)
|
||||
BuildRequires: cmake(KF5I18n)
|
||||
BuildRequires: cmake(KF5IconThemes)
|
||||
BuildRequires: cmake(KF5KCMUtils)
|
||||
BuildRequires: cmake(KF5KIO)
|
||||
BuildRequires: cmake(KF5Kirigami2)
|
||||
BuildRequires: cmake(KF5Notifications)
|
||||
BuildRequires: kf5-kpeople
|
||||
BuildRequires: cmake(KF5Service)
|
||||
BuildRequires: cmake(KF5Wayland)
|
||||
# KF5PackageConfig.cmake
|
||||
BuildRequires: kf5-kpackage-devel
|
||||
|
||||
%if 0%{?bluetooth}
|
||||
BuildRequires: qt5-qtconnectivity-devel
|
||||
%endif
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtmultimedia-devel
|
||||
BuildRequires: qt5-qtdeclarative-devel
|
||||
BuildRequires: qt5-qtquickcontrols2-devel
|
||||
BuildRequires: qt5-qtx11extras-devel
|
||||
|
||||
BuildRequires: qca-qt5-devel
|
||||
|
||||
BuildRequires: pulseaudio-qt-devel
|
||||
#BuildRequires: cmake(KF5PeopleVCard)
|
||||
|
||||
BuildRequires: libXtst-devel
|
||||
BuildRequires: pkgconfig(libfakekey)
|
||||
|
||||
BuildRequires: qt5-qtwayland-devel
|
||||
BuildRequires: plasma-wayland-protocols-devel
|
||||
BuildRequires: kf5-kguiaddons-devel
|
||||
BuildRequires: kf5-kpeople-devel
|
||||
BuildRequires: qqc2-desktop-style
|
||||
|
||||
Obsoletes: kde-connect-kde4-ioslave < %{version}-%{release}
|
||||
Obsoletes: kde-connect-kde4-libs < %{version}-%{release}
|
||||
Provides: kdeconnect-kde = %{version}-%{release}
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Requires: kdeconnectd = %{version}-%{release}
|
||||
|
||||
Requires: fuse-sshfs
|
||||
Requires: qca-qt5-ossl%{?_isa}
|
||||
Requires: kde-cli-tools
|
||||
Requires: kf5-kirigami2%{?_isa}
|
||||
|
||||
%description
|
||||
KDE Connect adds communication between KDE and your smartphone.
|
||||
|
||||
Currently, you can pair with your Android devices over Wifi using the
|
||||
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}
|
||||
%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}.
|
||||
|
||||
%package nautilus
|
||||
Summary: KDEConnect extention for nautilus
|
||||
Requires: kdeconnectd = %{version}-%{release}
|
||||
Requires: nautilus-python
|
||||
Supplements: (kdeconnectd and nautilus)
|
||||
%description nautilus
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{module}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} .. \
|
||||
%{?bluetooth:-DBLUETOOTH_ENABLED:BOOL=ON}
|
||||
popd
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
%find_lang %{name} --all-name --with-html
|
||||
desktop-file-edit --remove-key=OnlyShowIn %{buildroot}%{_sysconfdir}/xdg/autostart/org.kde.kdeconnect.daemon.desktop
|
||||
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.kdeconnect.kcm.appdata.xml ||:
|
||||
for i in %{buildroot}%{_datadir}/applications/org.kde.kdeconnect*.desktop ; do
|
||||
desktop-file-validate $i ||:
|
||||
done
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%dir %{_kf5_datadir}/kdeconnect/
|
||||
%license LICENSES/*
|
||||
%{_datadir}/Thunar/
|
||||
%{_datadir}/applications/org.kde.kdeconnect*.desktop
|
||||
%{_datadir}/contractor/
|
||||
%{_datadir}/deepin/
|
||||
%{_datadir}/icons/hicolor/*/apps/kdeconnect*
|
||||
%{_datadir}/icons/hicolor/*/status/*
|
||||
%{_datadir}/zsh/
|
||||
%{_kf5_bindir}/kdeconnect-*
|
||||
%{_kf5_datadir}/kdeconnect/kdeconnect_*.qml
|
||||
%{_kf5_datadir}/knotifications5/*
|
||||
%{_kf5_datadir}/kservices5/*.desktop
|
||||
%{_kf5_datadir}/plasma/plasmoids/org.kde.kdeconnect/
|
||||
%{_kf5_datadir}/qlogging-categories5/kdeconnect*
|
||||
%{_kf5_metainfodir}/org.kde.kdeconnect.appdata.xml
|
||||
%{_kf5_metainfodir}/org.kde.kdeconnect.metainfo.xml
|
||||
%{_kf5_plugindir}/kfileitemaction/kdeconnectfileitemaction.so
|
||||
%{_kf5_plugindir}/kio/kdeconnect.so
|
||||
%{_qt5_archdatadir}/qml/org/kde/kdeconnect/
|
||||
%{_qt5_plugindir}/kcm_kdeconnect.so
|
||||
|
||||
%files -n kdeconnectd
|
||||
%{_sysconfdir}/xdg/autostart/org.kde.kdeconnect.daemon.desktop
|
||||
%{_datadir}/applications/org.kde.kdeconnect.daemon.desktop
|
||||
%{_libexecdir}/kdeconnectd
|
||||
%{_datadir}/dbus-1/services/org.kde.kdeconnect.service
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files libs
|
||||
%{_kf5_libdir}/libkdeconnectpluginkcm.so.*
|
||||
%{_kf5_libdir}/libkdeconnectinterfaces.so.*
|
||||
%{_kf5_libdir}/libkdeconnectcore.so.*
|
||||
%{_qt5_plugindir}/kdeconnect/
|
||||
|
||||
%files nautilus
|
||||
%{_datadir}/nautilus-python/extensions/kdeconnect-share.py*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 22.08.0-1
|
||||
- Init package
|
||||
4
kde-connect.yaml
Normal file
4
kde-connect.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/kdeconnect-kde
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
BIN
kdeconnect-kde-22.08.0.tar.xz
Normal file
BIN
kdeconnect-kde-22.08.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user