From 5d786d9209076cdd4791fa46699128a130b37cd7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 21 Jul 2023 06:32:28 +0000 Subject: automatic import of ktorrent --- .gitignore | 1 + fix-desktop-file-validate-typo-bug.patch | 13 +++ ktorrent.spec | 137 +++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 152 insertions(+) create mode 100644 fix-desktop-file-validate-typo-bug.patch create mode 100644 ktorrent.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..8c3acba 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ktorrent-22.08.0.tar.xz diff --git a/fix-desktop-file-validate-typo-bug.patch b/fix-desktop-file-validate-typo-bug.patch new file mode 100644 index 0000000..38bcb16 --- /dev/null +++ b/fix-desktop-file-validate-typo-bug.patch @@ -0,0 +1,13 @@ +diff --git a/ktorrent/org.kde.ktorrent.desktop b/ktorrent/org.kde.ktorrent.desktop +index 5fdc761..a588d20 100755 +--- a/ktorrent/org.kde.ktorrent.desktop ++++ b/ktorrent/org.kde.ktorrent.desktop +@@ -122,7 +122,7 @@ Exec=ktorrent %U + Icon=ktorrent + Type=Application + X-DocPath=ktorrent/index.html +-SingleMainWindow=True ++SingleMainWindow=true + MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet; + X-DBUS-StartupType=Unique + X-DBUS-ServiceName=org.kde.ktorrent diff --git a/ktorrent.spec b/ktorrent.spec new file mode 100644 index 0000000..8eacee2 --- /dev/null +++ b/ktorrent.spec @@ -0,0 +1,137 @@ +%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 diff --git a/sources b/sources new file mode 100644 index 0000000..54d19c3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8e6dfe9a3530ae9853430a11db3ac717 ktorrent-22.08.0.tar.xz -- cgit v1.2.3