%global majmin %(echo %{version} | cut -d. -f1,2) Name: ktorrent Version: 22.08.0 Release: 2 Summary: A BitTorrent program License: GPLv2+ URL: https://www.kde.org/applications/internet/ktorrent/ %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/%{name}-%{version}.tar.xz # I think this will be dropped in the next release Patch0: fix-desktop-file-validate-typo-bug.patch BuildRequires: boost-devel BuildRequires: cmake(Qca-qt5) BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: GeoIP-devel BuildRequires: libappstream-glib BuildRequires: pkgconfig(phonon4qt5) BuildRequires: pkgconfig(taglib) BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5IconThemes) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5NotifyConfig) BuildRequires: cmake(KF5KCMUtils) BuildRequires: cmake(KF5Parts) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5Solid) BuildRequires: cmake(KF5WidgetsAddons) BuildRequires: cmake(KF5WindowSystem) BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5Completion) BuildRequires: cmake(KF5DNSSD) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5ItemViews) BuildRequires: cmake(KF5Kross) BuildRequires: cmake(KF5Plotting) BuildRequires: cmake(KF5TextWidgets) BuildRequires: cmake(KF5Syndication) BuildRequires: cmake(LibKWorkspace) %ifarch %{qt5_qtwebengine_arches} BuildRequires: cmake(Qt5WebEngineWidgets) %endif BuildRequires: kf5-libktorrent-devel >= %{majmin} Obsoletes: ktorrent < 3.2.3-2 Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description KTorrent is a BitTorrent program for KDE. Its main features are native KDE integration, download of torrent files, upload speed capping, internet searching using various search engines, UDP Trackers and UPnP support. %package libs Summary: Runtime libraries for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: kf5-libktorrent%{?_isa} >= %{majmin} %description libs %{summary}. %prep %autosetup -n %{name}-%{version}%{?pre} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ -DWITH_SYSTEM_GEOIP:BOOL=ON popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} mkdir -p %{buildroot}%{_kf5_datadir}/ktorrent %find_lang %{name} --with-html %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.ktorrent.appdata.xml desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.ktorrent.desktop %files -f %{name}.lang %doc ChangeLog %license LICENSES/* %{_kf5_bindir}/ktorrent %{_kf5_bindir}/ktmagnetdownloader %{_kf5_bindir}/ktupnptest %{_kf5_metainfodir}/org.kde.ktorrent.appdata.xml %{_kf5_datadir}/applications/org.kde.ktorrent.desktop %{_kf5_datadir}/icons/hicolor/*/*/* %{_kf5_datadir}/ktorrent/ %{_kf5_datadir}/knotifications5/ktorrent.notifyrc %{_kf5_datadir}/kxmlgui5/ktorrent/ %{_qt5_plugindir}/ktorrent_plugins/*.so %ldconfig_scriptlets libs %files libs %{_kf5_libdir}/libktcore.so.* %changelog * Mon Feb 13 2023 misaka00251 - 22.08.0-2 - Add patch to fix desktop-file-validate build error * Fri Dec 16 2022 misaka00251 - 22.08.0-1 - Init package