File ktorrent.spec of Package KTorrent

#
# spec file for package ktorrent (Version 3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           ktorrent
BuildRequires:  gmp-devel kdebase4-workspace-devel libqca2-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.1
Release:        5.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define rversion %version
Source:         %{name}-%{rversion}.tar.bz2
Source2:        icons.tar.bz2
Patch6:         dndfile.diff
Patch7:         FIXME.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 packages include the necessary files to build KTorrent plugins.



Authors:
--------
    Jois Guisson <jrois.guisson@gmail.com>

%lang_package
%prep
%setup -q -n %{name}-%{version}
%patch6
%patch7
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
  %kde_post_install
  %find_lang %name

%pre
%run_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
/usr/%_lib/kde4/ktbwschedulerplugin.so
/usr/%_lib/kde4/ktinfowidgetplugin.so
/usr/%_lib/kde4/ktipfilterplugin.so
/usr/%_lib/kde4/ktlogviewerplugin.so
/usr/%_lib/kde4/ktscanfolderplugin.so
/usr/%_lib/kde4/ktsearchplugin.so
/usr/%_lib/kde4/ktstatsplugin.so
/usr/%_lib/kde4/ktupnpplugin.so
/usr/%_lib/kde4/ktwebinterfaceplugin.so
/usr/%_lib/kde4/ktmediaplayerplugin.so
/usr/%_lib/libbtcore.so.*
/usr/%_lib/libktcore.so.*
/usr/%_lib/libktupnp.so.*
/usr/share/applications/kde4/ktorrent.desktop
/usr/share/icons/hicolor/*/apps/ktorrent.*
/usr/share/icons/hicolor/*/mimetypes/torrent.*
/usr/share/icons/hicolor/*/actions/
/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-info-widget.*
/usr/share/icons/hicolor/*/actions/kt-pause.*
/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.*
/usr/share/kde4/apps/cmake/modules/FindBTCore.cmake
/usr/share/kde4/apps/ktorrent
/usr/share/kde4/services/ktbwschedulerplugin.desktop
/usr/share/kde4/services/ktinfowidgetplugin.desktop
/usr/share/kde4/services/ktipfilterplugin.desktop
/usr/share/kde4/services/ktlogviewerplugin.desktop
/usr/share/kde4/services/ktscanfolderplugin.desktop
/usr/share/kde4/services/ktsearchplugin.desktop
/usr/share/kde4/services/ktstatsplugin.desktop
/usr/share/kde4/services/ktupnpplugin.desktop
/usr/share/kde4/services/ktwebinterfaceplugin.desktop
/usr/share/kde4/services/ktmediaplayerplugin.desktop
/usr/share/kde4/servicetypes/ktorrentplugin.desktop

%files devel
%defattr(-,root,root)
/usr/%_lib/libbtcore.so
/usr/%_lib/libktcore.so
/usr/%_lib/libktupnp.so
/usr/include/libbtcore

%changelog
* Mon Jun 16 2008 stbinner@suse.de
- update to version 3.1:
  * HTTP webseeding
  * A mediaplayer plugin, supporting audio and video
  * Preview sizes can now be configured
  * A location column has been added in the main view
  * Assured download and upload speeds per torrent
  * Group policies, set default speed limits, max seed time, max
    ratio and default download location for all torrents of group
  * A feature to suppress sleep when torrents are running
  * A redesigned tracker tab, now also showing how many times a
    torrent was downloaded
  * Trackers can now be disabled or enabled
* Sat Jun 14 2008 schwab@suse.de
- Fix creation of dnd files.
* Fri May 16 2008 aj@suse.de
- Add missing new line to spec file.
* Thu May 15 2008 dmueller@suse.de
- fix largefile support (bnc#386475)
- add missing runtime dependencies, remove deprected macro
* Fri Apr 25 2008 stbinner@suse.de
- update to 3.0.2: several crash and other bug fixes
* Tue Mar 25 2008 stbinner@suse.de
- update to 3.0.1: long list of minor and less minor bugfixes
* Tue Feb 19 2008 stbinner@suse.de
- fix build
* Tue Feb 19 2008 stbinner@suse.de
- update to 3.0, the first KDE4-based release
* Sun Jan 27 2008 stbinner@suse.de
- update to 2.2.5, several minor bug fixes
* Thu Nov 22 2007 stbinner@suse.de
- update to 2.2.4, fixes a major fileview crash in 2.2.3
* Wed Nov 21 2007 stbinner@suse.de
- update to 2.2.3, third bugfix release for version 2.2
* Thu Oct 11 2007 stbinner@suse.de
- hide non-funtioncal DHT preference groupbox (#332221)
* Wed Sep 26 2007 stbinner@suse.de
- update to 2.2.2, second bugfix release for version 2.2
* Sun Aug 19 2007 stbinner@suse.de
- fix build on 10.0
* Tue Aug 14 2007 stbinner@suse.de
- add improved Hungarian translation (#295663)
* Tue Jul 24 2007 bvirlet@suse.de
- update to 2.2.1
  * Fix file selection bug
  * Fix several webgui bugs
  * Make sure plugin list is sorted on the plugin name
  * Fix bug with UPnP plugin not releasing ports when KT is shutdown
* Wed Jul  4 2007 stbinner@suse.de
- update to final 2.2 release
* Thu Jun 21 2007 stbinner@suse.de
- run fdupes and kde_post_install, fix invalid .desktop file
* Sun Jun 17 2007 stbinner@suse.de
- update to 2.2rc1:
  * Improved and more consistant GUI
  * Possibility to open as many views as needed. By default you now
    get a downloads and uploads tab
  * Improved search plugin with possibility to open multiple search tabs
  * Option to fully preallocate diskspace to avoid fragmentation
  * Option to move finished downloads to a different directory
  * Progress bar in status bar when searching
  * Redesigned file selection dialog
  * Option to copy torrent files to user specified directory
  * Speed limits for individual torrents
  * Diskspace monitoring, with option to stop torrents when diskspace
    is running low
  * Improved system tray popup
  * Autorotation of the log file when it gets larger then 10 MB
  * Import dialog is now network transparent for the torrent file
  * Statistics plugin which was developed by Krzysztof Kundzicz
* Mon Jun  4 2007 stbinner@suse.de
- fix build on older distributions
* Sun May 20 2007 stbinner@suse.de
- fix package requires
* Mon May 14 2007 coolo@suse.de
- split translations into special package
* Tue Apr 24 2007 stbinner@suse.de
- update to 2.1.4:
  * Fixed crash in parsing of DHT messages
  * Fixed problem with files with .. in their name
  * ScanFolder can now handle incomplete torrent files properly
* Tue Apr  3 2007 dmueller@suse.de
- update to 2.1.3:
  * really fix file overwriting vulnerability
  * crash fix
* Sat Mar 10 2007 dmueller@suse.de
- update to 2.1.2:
  * file overwriting vulnerability
  * chunk id overflow vulnerability
* Tue Mar  6 2007 stbinner@suse.de
- update to version 2.1.1:
  * Rewrite of webserver
  * New webgui : coldmilk
  * Networking thread has been split up in 2 threads, one for
    upload, one for download
  * Significant speed improvements when downloading over a LAN
* Fri Feb  9 2007 stbinner@suse.de
- port and re-enable patch 16
* Mon Feb  5 2007 stbinner@suse.de
- update to version 2.1 release
* Thu Jan  4 2007 stbinner@suse.de
- update to version 2.1rc1:
  * Peer Exchange (µTorrent compatible)
  * Zeroconf plugin
* Sat Nov 25 2006 wstephenson@suse.de
- update to version 2.1beta1
  * Switched the GUI to an IDEAl style GUI (like KDevelop)
  * WebGUI plugin
  * RSS plugin
  * Improvements in down and upload performance
  * Grouping feature to put torrents into groups
  * Improved search plugin, which now allows multiple searches
  * Many bug fixes
* Tue Oct 17 2006 dmueller@suse.de
- remove geoIP database due to license issues (#188562)
* Mon Oct 16 2006 dmueller@suse.de
- fix build on PPC
* Tue Oct 10 2006 stbinner@suse.de
- update to version 2.0.3
  - fixes some download speed issues
  - fixes several other minor bugs
* Wed Aug 30 2006 stbinner@suse.de
- update to version 2.0.2
  - fixes a data corruption bug
  - should get the downloading working properly again
* Mon Aug 21 2006 stbinner@suse.de
- update to version 2.0.1
  - fixes several bugs
  - features some performance improvements
* Wed Aug  9 2006 stbinner@suse.de
- update to version 2.0 (no changelog provided)
  - bugfixes
  - translation updates
* Wed Jul 19 2006 stbinner@suse.de
- update to version 2.0rc1
  * bugfixes and polishing
* Tue Jun  6 2006 stbinner@suse.de
- don't install with kdelibs conflicting x-bittorrent.desktop
* Tue May 23 2006 adrian@suse.de
- update to version 2.0beta1
  * Speed improvements
  * Protocol encryption
  * Bandwith scheduling
  * File prioritization for multifile torrents
  * Directory scanner for torrent files
  * Many bug fixes
- disable experimental DHT for now
* Sun Apr 16 2006 dkukawka@suse.de
- updated/added upstream commited changes:
  - ktorrent-fix-german-translation.diff: updated german
    translation file
  - ktorrent-fix-i18n-strings.diff: fixed typo in i18n string and
    merged back to translations
* Tue Mar  7 2006 dkukawka@suse.de
- fixed some strings in german translation (related to bug #154683
  and upstram changes)
* Thu Mar  2 2006 dkukawka@suse.de
- fixed german translation for the plugin settings
* Tue Feb  7 2006 ro@suse.de
- fix build for < 10.1
* Wed Feb  1 2006 stbinner@suse.de
- update to 1.2 final
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 stbinner@suse.de
- update to 1.2rc2
* Mon Jan 16 2006 dmueller@suse.de
- use -fstack-protector
* Thu Jan  5 2006 dkukawka@suse.de
- added patches:
  - ktorrent-fix-columns.diff (Added focus to all collums in the
    ListView objects)
  - ktorrent-fix-columns_save_restore_ktorrentview.diff (fix store
    columns settings and enable change wide of columns)
  - ktorrent-fix-KBytesPerSecToString.diff
  - ktorrent-fix-keep_seeding.diff (fixed torrentFinished to
    respect "Keep seeding after download has finished")
  - ktorrent-fix-remove-unneeded.diff (removed unneeded code)
  - ktorrent-fix-compiler_warning.diff
* Mon Jan  2 2006 stbinner@suse.de
- update to 1.2rc1 (#135481)
* Thu Oct 13 2005 dmueller@suse.de
- update to BRANCH
* Tue Oct 11 2005 dmueller@suse.de
- update 1.1 final
* Wed Sep  7 2005 adrian@suse.de
- remove links to some search engine with maybe legal problems
* Tue Sep  6 2005 dmueller@suse.de
- update 1.1rc1 (#104905)
* Fri Aug  5 2005 adrian@suse.de
- fix build for released non-PLUS distributions
* Fri Jul 22 2005 adrian@suse.de
- fix file list
* Fri Jul 22 2005 adrian@suse.de
- create initial package of version 1.0
openSUSE Build Service is sponsored by