2010-07-20 21:01:43 +02:00
|
|
|
#
|
2011-02-01 18:54:47 +01:00
|
|
|
# spec file for package libktorrent
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
2011-01-10 11:44:23 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-01-10 11:44:19 +01:00
|
|
|
%define gitver git20101211
|
|
|
|
%define srcversion 1.1beta1
|
|
|
|
%define debug_package_requires libktorrent3 = %{version}-%{release}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
Name: libktorrent
|
|
|
|
BuildRequires: fdupes gmp-devel kdebase4-workspace-devel libkdepimlibs4-devel libqca2-devel taglib-devel
|
|
|
|
Url: http://ktorrent.pwsp.net/
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Productivity/Networking/File-Sharing
|
|
|
|
Summary: KTorrent Downloading Library
|
2011-01-10 11:44:19 +01:00
|
|
|
Version: 1.0.80
|
2011-02-01 18:54:47 +01:00
|
|
|
Release: 2
|
2010-07-20 21:01:43 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-10 11:44:19 +01:00
|
|
|
Source: %{name}-%{srcversion}.tar.bz2
|
2010-11-22 23:47:58 +01:00
|
|
|
Source1: %{name}-po.tar.bz2
|
2011-02-01 18:54:41 +01:00
|
|
|
# Patch0 fixes superseeding crash, see : kde #(261529), first reported in kde #(262560).
|
|
|
|
Patch0: libktorrent-1.1beta1-sprseedcrash.patch
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description
|
2010-12-14 10:30:40 +01:00
|
|
|
Torrent is a BitTorrent program for KDE. Its main features are:
|
|
|
|
* Download of torrent files
|
2010-07-20 21:01:43 +02:00
|
|
|
* Upload speed capping, seeing that most people cannot upload
|
2010-12-14 10:30:40 +01:00
|
|
|
infinite amounts of data
|
2010-07-20 21:01:43 +02:00
|
|
|
* Internet searching using the BitTorrent Web site's search engine
|
|
|
|
* UDP trackers
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
License: GPLv2+
|
2010-12-14 10:30:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-07-20 21:01:43 +02:00
|
|
|
Summary: KDE BitTorrent Client Build Environment
|
2010-11-22 23:47:58 +01:00
|
|
|
Requires: libktorrent3 = %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package includes the necessary files to build KTorrent plugins.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%package -n libktorrent3
|
2010-07-20 21:01:43 +02:00
|
|
|
License: GPLv2+
|
|
|
|
Group: Productivity/Networking/File-Sharing
|
|
|
|
Summary: KDE BitTorrent Client Build Environment
|
2010-09-27 10:28:30 +02:00
|
|
|
Recommends: libktorrent2-lang = %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%description -n libktorrent3
|
2010-12-14 10:30:40 +01:00
|
|
|
This package includes the ktorrent donwloading library
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jois Guisson <jrois.guisson@gmail.com>
|
|
|
|
|
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%lang_package -n libktorrent3
|
2010-07-20 21:01:43 +02:00
|
|
|
%prep
|
2011-01-10 11:44:19 +01:00
|
|
|
%setup -q -n %{name}-%{srcversion}
|
|
|
|
# -a 1
|
2011-02-01 18:54:41 +01:00
|
|
|
%patch0
|
2010-11-22 23:47:58 +01:00
|
|
|
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt
|
|
|
|
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt
|
|
|
|
echo "add_subdirectory( po ) " >> CMakeLists.txt
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=true
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd build
|
|
|
|
%makeinstall
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
|
|
|
%if %suse_version < 1120
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/hne
|
|
|
|
%endif
|
|
|
|
%kde_post_install
|
|
|
|
%find_lang %name
|
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%pre -n libktorrent3 -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%post -n libktorrent3 -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%postun -n libktorrent3 -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%files -n libktorrent3-lang -f build/%name.lang
|
2010-07-20 21:01:43 +02:00
|
|
|
%defattr(-,root,root)
|
2011-02-01 18:54:41 +01:00
|
|
|
%if 0%{?suse_version} < 1140
|
2010-07-20 21:01:43 +02:00
|
|
|
%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
|
2011-02-01 18:54:41 +01:00
|
|
|
%endif
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2010-11-22 23:47:58 +01:00
|
|
|
%files -n libktorrent3
|
2010-07-20 21:01:43 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libktorrent.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/include/libktorrent
|
|
|
|
%_libdir/libktorrent.so
|
|
|
|
/usr/include/libktorrent
|
|
|
|
/usr/share/kde4/apps/cmake/modules/FindKTorrent.cmake
|
|
|
|
|
|
|
|
%changelog
|