ktorrent/ktorrent.spec
OBS User autobuild a480768b08 Accepting request 21016 from KDE:KDE4:Factory:Desktop
Copy from KDE:KDE4:Factory:Desktop/ktorrent based on submit request 21016 from user Beineri

OBS-URL: https://build.opensuse.org/request/show/21016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=46
2009-09-24 22:42:04 +00:00

192 lines
5.9 KiB
RPMSpec

#
# spec file for package ktorrent (Version 3.2.4)
#
# 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.2.4
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
%if %suse_version > 1020
Requires: %{name}-lang = %{version}
%endif
%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 <jrois.guisson@gmail.com>
%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 <jrois.guisson@gmail.com>
%lang_package
%prep
%setup -q -n %name-%{rversion}
%patch1
%patch3
tar xfj %{SOURCE2}
%build
%cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=false
%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/share/kde4/services/ktzeroconfplugin.desktop
%files devel
%defattr(-,root,root)
%_libdir/libbtcore.so
%_libdir/libktcore.so
%_libdir/libktupnp.so
/usr/include/libbtcore
%changelog