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
|
|
|
#
|
2017-02-10 09:49:42 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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-03-10 11:34:05 +01:00
|
|
|
|
2016-04-22 16:16:56 +02:00
|
|
|
%define ktor_ver 5.0
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
Name: libktorrent
|
2016-09-07 11:43:37 +02:00
|
|
|
Version: 2.0.1
|
2012-03-07 13:43:01 +01:00
|
|
|
Release: 0
|
2016-04-22 16:16:56 +02:00
|
|
|
%define sonum 6
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
2012-03-07 13:43:01 +01:00
|
|
|
License: GPL-2.0+
|
2010-07-20 21:01:43 +02:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2012-03-07 13:43:01 +01:00
|
|
|
Url: http://ktorrent.org/
|
2016-04-22 16:16:56 +02:00
|
|
|
Source0: http://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz
|
2016-05-31 12:12:49 +02:00
|
|
|
# PATCH-FIX-OPENSUSE require-lower-LibGMP.patch
|
|
|
|
Patch0: require-lower-LibGMP.patch
|
2016-10-28 12:26:30 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Fix-logging-framework-spamming.patch
|
|
|
|
Patch1: Fix-logging-framework-spamming.patch
|
2017-02-10 09:49:42 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: boost-devel
|
2017-02-10 09:49:42 +01:00
|
|
|
%endif
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: doxygen
|
2016-04-22 16:16:56 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2016-05-31 12:12:49 +02:00
|
|
|
BuildRequires: gmp-devel >= 5.1.3
|
2016-04-22 16:16:56 +02:00
|
|
|
BuildRequires: karchive-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kio-devel
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
2016-04-22 16:16:56 +02:00
|
|
|
BuildRequires: libqca-qt5-devel
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2011-11-25 23:11:41 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%package devel
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Development files for libktorrent
|
2010-12-14 10:30:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-02-10 09:49:42 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
Requires: libboost_headers-devel
|
|
|
|
%else
|
2016-04-22 16:16:56 +02:00
|
|
|
Requires: boost-devel
|
2017-02-10 09:49:42 +01:00
|
|
|
%endif
|
2016-04-22 16:16:56 +02:00
|
|
|
Requires: gmp-devel
|
2012-09-11 07:58:49 +02:00
|
|
|
Requires: libktorrent%{sonum} = %{version}
|
2016-04-22 16:16:56 +02:00
|
|
|
Requires: libqca-qt5-devel
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-03-10 11:33:55 +01:00
|
|
|
This package includes the necessary files for development using libktorrent.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%package -n libktorrent%{sonum}
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
2010-07-20 21:01:43 +02:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2012-09-11 07:58:49 +02:00
|
|
|
Recommends: libktorrent%{sonum}-lang = %{version}
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%description -n libktorrent%{sonum}
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%lang_package -n libktorrent%{sonum}
|
2010-07-20 21:01:43 +02:00
|
|
|
%prep
|
2012-09-11 07:58:49 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2016-05-31 12:12:49 +02:00
|
|
|
%patch0 -p1
|
2016-10-28 12:26:30 +02:00
|
|
|
%patch1 -p1
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%build
|
2016-04-22 16:16:56 +02:00
|
|
|
%cmake_kf5 -d build
|
2011-03-10 11:33:55 +01:00
|
|
|
%make_jobs
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%install
|
2016-04-22 16:16:56 +02:00
|
|
|
%kf5_makeinstall -C build
|
2011-03-10 11:33:55 +01:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%post -n libktorrent%{sonum} -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%postun -n libktorrent%{sonum} -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2011-03-10 11:33:55 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2016-04-22 16:16:56 +02:00
|
|
|
%{_includedir}/libktorrent/
|
|
|
|
%{_libdir}/libktorrent.so
|
|
|
|
%{_libdir}/cmake/LibKTorrent/
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%files -n libktorrent%{sonum}
|
2011-03-10 11:33:55 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog RoadMap
|
2016-04-22 16:16:56 +02:00
|
|
|
%{_libdir}/libktorrent.so.%{sonum}*
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2012-09-11 07:58:49 +02:00
|
|
|
%files -n libktorrent%{sonum}-lang -f %{name}.lang
|
2011-03-10 11:33:55 +01:00
|
|
|
%defattr(-,root,root,-)
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%changelog
|