ktorrent/ktorrent.spec

192 lines
6.2 KiB
RPMSpec

#
# spec file for package ktorrent (Version 4.0.4)
#
# Copyright (c) 2010 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
BuildRequires: fdupes libktorrent-devel
Url: http://ktorrent.pwsp.net/
License: GPLv2+
Group: Productivity/Networking/File-Sharing
Summary: KDE BitTorrent Client
Version: 4.0.4.60git20101122
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define rversion %version
Source: %{name}-git.tar.bz2
Source2: icons.tar.bz2
Patch1: remove-links.diff
Patch4: suse-dht-warning.diff
Patch5: initial-preference.diff
Recommends: %{name}-lang
%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: GPLv2+
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
%patch1
%if ! 0%{?packman_bs}
%patch4
%endif
%patch5
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
%files lang -f build/%name.lang
%defattr(-,root,root)
%dir /usr/share/locale/sr@ijekavian
%dir /usr/share/locale/sr@ijekavian/LC_MESSAGES
%dir /usr/share/locale/sr@ijekavianlatin
%dir /usr/share/locale/sr@ijekavianlatin/LC_MESSAGES
%files
%defattr(-,root,root)
/usr/bin/ktorrent
/usr/bin/ktupnptest
/usr/bin/ktmagnetdownloader
%_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/libktcore.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.*
/usr/share/icons/hicolor/*/actions/kt-magnet.*
%_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/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/services/magnet.protocol
%_kde_share_dir/servicetypes/ktorrentplugin.desktop
/usr/%_lib/kde4/ktzeroconfplugin.so
/usr/%_lib/kde4/ktshutdownplugin.so
/usr/%_lib/kde4/ktmagnetgeneratorplugin.so
/usr/share/kde4/services/ktzeroconfplugin.desktop
/usr/share/kde4/services/ktshutdownplugin.desktop
/usr/share/kde4/services/ktmagnetgeneratorplugin.desktop
%files devel
%defattr(-,root,root)
%_libdir/libktcore.so
%changelog