SHA256
1
0
forked from pool/ktorrent
ktorrent/ktorrent.spec
Stephan Kulow b2720c6e05 Accepting request 108782 from KDE:Distro:Factory
- Update to version 4.2.0, also lists changes what changed in rc1
  * Add new group switcher combobox in toolbar
  * Make kio-magnet optional
  * Improve handing magnet uris in search plugin
  * Fix bug causing kio-magnet to deselect all files
  * Close current scan widget when a new one is started for a torrent
  * Fix syndication plugin not handling relative urls properly
  * Fix magnet uri's not being handled properly in load torrent feature of webinterface
  * Make it possible to check individual files of a torrent
  * Data checks for multiple torrents can now get started at the same time
  * Make links clickable in the status tab comments field
  * Revamp UPnP plugin
  * Fix bug making it possible to add conflicting items to the schedule
  * Make it possible for schedule items to span multiple days
  * Include disk usage of existing files when calculating bytes left after download in FileSelectDlg
  * Disable scripts in GUI, if no interpreter could be found for the script
  * Show shutdown plugin's config dialog when no rules are present and the enable button is pressed
  * Make it possible to wait for several events before activating the shutdown action
  * Fix wrong required diskspace calculation in some rare circumstances
  * Revamp scanfolder plugin
  * Revamp GUI of mediaplayer plugin
  * Make properties extender a dialog
  * Fix bug causing scripts not to be selectable in scripting plugin
  * Show info hash in status tab
  * Improve video streaming support
  * Add Open With option to FileView context menu
  * Fix bug causing views to not get properly restored when the application language changes
  * Check if new trackers have a supported protocol
  * Remove usage of several deprecated KDE3 networking classes
  * Remove obsolete config options of datacheck during upload feature

OBS-URL: https://build.opensuse.org/request/show/108782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=86
2012-03-12 19:15:13 +00:00

151 lines
4.9 KiB
RPMSpec

#
# spec file for package ktorrent
#
# Copyright (c) 2012 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
Version: 4.2.0
Release: 0
Summary: KDE BitTorrent Client
License: GPL-2.0+
Group: Productivity/Networking/File-Sharing
Url: http://ktorrent.org/
Source0: http://ktorrent.org/downloads/%{version}/%{name}-%{version}.tar.bz2
# Mimetype icons
Source1: icons.tar.bz2
Source2: ktorrent.1
Source3: ktupnptest.1
# PATCH-FIX-OPENSUSE remove-links.diff adrian@suse.de -- Remove links to some search engine with maybe legal problems
Patch0: remove-links.diff
# PATCH-FIX-OPENSUSE suse-dht-warning.diff wstephenson@novell.com -- Warning popup for DHT
Patch1: suse-dht-warning.diff
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- InitialPreference to set it as the default torrent downloader
Patch2: initial-preference.diff
BuildRequires: ImageMagick
BuildRequires: fdupes
BuildRequires: kdebase4-workspace-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: libktorrent-devel >= 1.2.0
BuildRequires: taglib-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Recommends: %{name}-lang = %{version}
# ktorrent-devel was last used in openSUSE 11.4
Provides: ktorrent-devel = %{version}
Obsoletes: ktorrent-devel < %{version}
# libktcore12 was last used in openSUSE 11.4
Provides: libktcore12 = %{version}
Obsoletes: libktcore12 < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_pimlibs_requires
%kde4_runtime_requires
%description
KTorrent is a bittorrent application for KDE which allows you to download files
using the BitTorrent protocol. It enables you to run multiple torrents at the
same time and comes with extended features to make it a full-featured client
for BitTorrent.
%lang_package
%prep
%setup -q
%patch0
%if ! 0%{?packman_bs}
%patch1
%endif
%patch2
tar jxf %{SOURCE1}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
cd ..
# Not needed, fix "devel-file-in-non-devel-package" rpmlint warning
rm -f %{buildroot}%{_kde4_libdir}/libktcore.so
# patch image with wrong dimensions - fix rpmlint warning "wrong-icon-size"
mogrify -extent 16x16 -background transparent -gravity center %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
mogrify -scale 22x22 -background transparent %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
# Add man pages from help2man edited.
mkdir -p %{buildroot}%{_mandir}/man1
cp -a %{SOURCE2} %{buildroot}%{_mandir}/man1
cp -a %{SOURCE3} %{buildroot}%{_mandir}/man1
# Fix any .py files with shebangs and wrong permissions.
if test -z `find %{buildroot} -name *.py -perm 0644 -print0|xargs -0r grep -l '#!'`; \
then break;
else chmod -f 0755 `find %{buildroot} -name *.py -perm 0644 -print0|xargs -0r grep -l '#!'`; \
fi
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE Network P2P
%endif
# Remove unneeded locales
%if 0%{?suse_version} && 0%{?suse_version} < 1140
rm -rf %{buildroot}%{_datadir}/locale/ast/
rm -rf %{buildroot}%{_datadir}/locale/hne/
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
%endif
%fdupes -s %{buildroot}
%find_lang %{name}
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog RoadMap
%{_kde4_bindir}/ktmagnetdownloader
%{_kde4_bindir}/ktorrent
%{_kde4_bindir}/ktupnptest
%{_kde4_modulesdir}/kt*.so
%{_kde4_modulesdir}/plasma_applet_ktorrent.so
%{_kde4_modulesdir}/plasma_engine_ktorrent.so
%{_kde4_libdir}/libktcore.so.*
%{_kde4_applicationsdir}/ktorrent.desktop
%doc %{_kde4_htmldir}/en/ktorrent/
%{_kde4_iconsdir}/hicolor/*/actions/kt-*.*
%{_kde4_iconsdir}/hicolor/*/apps/ktorrent.*
%{_kde4_iconsdir}/hicolor/*/mimetypes/torrent.*
%{_kde4_appsdir}/ktorrent/
%{_kde4_servicesdir}/kt*.desktop
%{_kde4_servicesdir}/magnet.protocol
%{_kde4_servicesdir}/plasma-applet-ktorrent.desktop
%{_kde4_servicesdir}/plasma-dataengine-ktorrent.desktop
%{_kde4_servicetypesdir}/ktorrentplugin.desktop
%doc %{_mandir}/man1/ktorrent.1%{ext_man}
%doc %{_mandir}/man1/ktupnptest.1%{ext_man}
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/ktorrent/
%changelog