# # spec file for package ktorrent (Version 3.3.1) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: ktorrent BuildRequires: gmp-devel kdebase4-workspace-devel libkdepimlibs4-devel libqca2-devel taglib-devel %if %suse_version > 1020 BuildRequires: fdupes %endif Url: http://ktorrent.pwsp.net/ License: GPL v2 or later Group: Productivity/Networking/File-Sharing Summary: KDE BitTorrent Client Version: 3.3.1 Release: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-build %define rversion %version Source: %{name}-%{rversion}.tar.bz2 Source2: icons.tar.bz2 Patch1: remove-links.diff Patch3: proxy.diff Patch4: suse-dht-warning.diff Requires: %{name}-lang = %{version} %kde4_runtime_requires Requires: oxygen-icon-theme %description Torrent is a BitTorrent program for KDE. Its main features are: * Download of torrent files * Upload speed capping, seeing that most people cannot upload infinite amounts of data * Internet searching using the BitTorrent Web site's search engine * UDP trackers Authors: -------- Jois Guisson %package devel License: GPL v2 or later Group: Productivity/Networking/File-Sharing Summary: KDE BitTorrent Client Build Environment Requires: ktorrent = %{version} %description devel This package includes the necessary files to build KTorrent plugins. Authors: -------- Jois Guisson %lang_package %prep %setup -q -n %name-%{rversion} %patch1 %patch3 %if ! 0%{?packman_bs} %patch4 %endif tar xfj %{SOURCE2} %build %cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=true %make_jobs %install cd build %makeinstall %if %suse_version > 1020 %fdupes -s $RPM_BUILD_ROOT %endif %if %suse_version > 1110 %else rm -rf $RPM_BUILD_ROOT/usr/share/locale/hne %endif %suse_update_desktop_file -r ktorrent Qt KDE Network P2P %kde_post_install %find_lang %name %pre -p /sbin/ldconfig %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %if %suse_version > 1020 %files lang -f build/%name.lang %files %else %files -f build/%name.lang %endif %defattr(-,root,root) /usr/bin/ktorrent /usr/bin/ktupnptest %_kde4_modules/ktbwschedulerplugin.so %_kde4_modules/ktinfowidgetplugin.so %_kde4_modules/ktipfilterplugin.so %_kde4_modules/ktlogviewerplugin.so %_kde4_modules/ktscanfolderplugin.so %_kde4_modules/ktsearchplugin.so %_kde4_modules/ktstatsplugin.so %_kde4_modules/ktupnpplugin.so %_kde4_modules/ktwebinterfaceplugin.so %_kde4_modules/ktmediaplayerplugin.so %_libdir/libbtcore.so.* %_libdir/libktcore.so.* %_libdir/libktupnp.so.* %_kde4_modules/ktdownloadorderplugin.so %_kde4_modules/ktscriptingplugin.so %_kde4_modules/ktsyndicationplugin.so %_kde4_modules/plasma_applet_ktorrent.so %_kde4_modules/plasma_engine_ktorrent.so /usr/share/icons/hicolor/*/actions/kt-add-feeds.* /usr/share/icons/hicolor/*/actions/kt-add-filters.* /usr/share/icons/hicolor/*/actions/kt-remove-feeds.* /usr/share/icons/hicolor/*/actions/kt-remove-filters.* %_kde_share_dir/services/ktdownloadorderplugin.desktop %_kde_share_dir/services/ktscriptingplugin.desktop %_kde_share_dir/services/ktsyndicationplugin.desktop %_kde_share_dir/services/plasma-applet-ktorrent.desktop %_kde_share_dir/services/plasma-dataengine-ktorrent.desktop /usr/share/applications/kde4/ktorrent.desktop /usr/share/icons/hicolor/*/apps/ktorrent.* /usr/share/icons/hicolor/*/mimetypes/torrent.* /usr/share/icons/hicolor/*/actions/kt-bandwidth-scheduler.* /usr/share/icons/hicolor/*/actions/kt-change-tracker.* /usr/share/icons/hicolor/*/actions/kt-check-data.* /usr/share/icons/hicolor/*/actions/kt-chunks.* /usr/share/icons/hicolor/*/actions/kt-encrypted.* /usr/share/icons/hicolor/*/actions/kt-info-widget.* /usr/share/icons/hicolor/*/actions/kt-pause.* /usr/share/icons/hicolor/*/actions/kt-plugins.* /usr/share/icons/hicolor/*/actions/kt-queue-manager.* /usr/share/icons/hicolor/*/actions/kt-remove.* /usr/share/icons/hicolor/*/actions/kt-restore-defaults.* /usr/share/icons/hicolor/*/actions/kt-set-max-download-speed.* /usr/share/icons/hicolor/*/actions/kt-set-max-upload-speed.* /usr/share/icons/hicolor/*/actions/kt-show-hide.* /usr/share/icons/hicolor/*/actions/kt-show-statusbar.* /usr/share/icons/hicolor/*/actions/kt-speed-limits.* /usr/share/icons/hicolor/*/actions/kt-start-all.* /usr/share/icons/hicolor/*/actions/kt-start.* /usr/share/icons/hicolor/*/actions/kt-stop-all.* /usr/share/icons/hicolor/*/actions/kt-stop.* /usr/share/icons/hicolor/*/actions/kt-upnp.* %_kde_share_dir/apps/cmake/modules/FindBTCore.cmake %_kde_share_dir/apps/ktorrent %_kde_share_dir/services/ktbwschedulerplugin.desktop %_kde_share_dir/services/ktinfowidgetplugin.desktop %_kde_share_dir/services/ktipfilterplugin.desktop %_kde_share_dir/services/ktlogviewerplugin.desktop %_kde_share_dir/services/ktscanfolderplugin.desktop %_kde_share_dir/services/ktsearchplugin.desktop %_kde_share_dir/services/ktstatsplugin.desktop %_kde_share_dir/services/ktupnpplugin.desktop %_kde_share_dir/services/ktwebinterfaceplugin.desktop %_kde_share_dir/services/ktmediaplayerplugin.desktop %_kde_share_dir/servicetypes/ktorrentplugin.desktop /usr/%_lib/kde4/ktzeroconfplugin.so /usr/%_lib/kde4/ktshutdownplugin.so /usr/share/kde4/services/ktzeroconfplugin.desktop /usr/share/kde4/services/ktshutdownplugin.desktop %files devel %defattr(-,root,root) %_libdir/libbtcore.so %_libdir/libktcore.so %_libdir/libktupnp.so /usr/include/libbtcore %changelog