7e8b6d8bfb
- Added require-lower-LibGMP.patch: 6.0.0 version was chosen randomly, and we know the code compiles with at least 5.1.3 OBS-URL: https://build.opensuse.org/request/show/392946 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libktorrent?expand=0&rev=34
109 lines
3.0 KiB
RPMSpec
109 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package libktorrent
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%define ktor_ver 5.0
|
|
|
|
Name: libktorrent
|
|
Version: 2.0
|
|
Release: 0
|
|
%define sonum 6
|
|
Summary: Torrent Downloading Library
|
|
License: GPL-2.0+
|
|
Group: Productivity/Networking/File-Sharing
|
|
Url: http://ktorrent.org/
|
|
Source0: http://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-OPENSUSE require-lower-LibGMP.patch
|
|
Patch0: require-lower-LibGMP.patch
|
|
BuildRequires: boost-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: gmp-devel >= 5.1.3
|
|
BuildRequires: karchive-devel
|
|
BuildRequires: kdelibs4support-devel
|
|
BuildRequires: ki18n-devel
|
|
BuildRequires: kio-devel
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libqca-qt5-devel
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
libktorrent is a torrent downloading library.
|
|
|
|
%package devel
|
|
Summary: Development files for libktorrent
|
|
Group: Development/Libraries/C and C++
|
|
Requires: boost-devel
|
|
Requires: gmp-devel
|
|
Requires: libktorrent%{sonum} = %{version}
|
|
Requires: libqca-qt5-devel
|
|
|
|
%description devel
|
|
This package includes the necessary files for development using libktorrent.
|
|
|
|
%package -n libktorrent%{sonum}
|
|
Summary: Torrent Downloading Library
|
|
Group: Productivity/Networking/File-Sharing
|
|
Recommends: libktorrent%{sonum}-lang = %{version}
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libktorrent%{sonum}
|
|
libktorrent is a torrent downloading library.
|
|
|
|
%lang_package -n libktorrent%{sonum}
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%cmake_kf5 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libktorrent%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libktorrent%{sonum} -p /sbin/ldconfig
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/libktorrent/
|
|
%{_libdir}/libktorrent.so
|
|
%{_libdir}/cmake/LibKTorrent/
|
|
|
|
%files -n libktorrent%{sonum}
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING ChangeLog RoadMap
|
|
%{_libdir}/libktorrent.so.%{sonum}*
|
|
|
|
%files -n libktorrent%{sonum}-lang -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
|
|
%changelog
|