libktorrent/libktorrent.spec

105 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libktorrent
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define ktor_ver 5.2.0
%define sonum 6
Name: libktorrent
Version: 2.2.0
Release: 0
Summary: Torrent Downloading Library
License: GPL-2.0-or-later
Group: Productivity/Networking/File-Sharing
URL: https://kde.org/applications/internet/org.kde.ktorrent/
Source0: https://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz
BuildRequires: doxygen
BuildRequires: extra-cmake-modules
BuildRequires: gmp-devel >= 6.0.0
BuildRequires: libboost_headers-devel
BuildRequires: libgcrypt-devel
BuildRequires: cmake(KF5Archive)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(Qca-qt5)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Xml)
%description
libktorrent is a torrent downloading library.
%package devel
Summary: Development files for libktorrent
Group: Development/Libraries/C and C++
Requires: gmp-devel
Requires: libKF5Torrent%{sonum} = %{version}
Requires: libboost_headers-devel
Requires: libgcrypt-devel
Requires: cmake(KF5Archive)
Requires: cmake(KF5Config)
Requires: cmake(KF5KIO)
Requires: cmake(Qca-qt5)
Requires: cmake(Qt5Core)
Requires: cmake(Qt5Network)
%description devel
This package includes the necessary files for development using libktorrent.
%package -n libKF5Torrent%{sonum}
Summary: Torrent Downloading Library
Group: System/Libraries
Recommends: %{name}-lang = %{version}
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n libKF5Torrent%{sonum}
libktorrent is a torrent downloading library.
%lang_package
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%find_lang libktorrent5 %{name}.lang
%post -n libKF5Torrent%{sonum} -p /sbin/ldconfig
%postun -n libKF5Torrent%{sonum} -p /sbin/ldconfig
%files devel
%{_kf5_includedir}/libktorrent/
%{_kf5_libdir}/libKF5Torrent.so
%{_kf5_cmakedir}/KF5Torrent/
%files -n libKF5Torrent%{sonum}
%license COPYING
%doc ChangeLog RoadMap
%{_kf5_libdir}/libKF5Torrent.so.%{sonum}*
%files lang -f %{name}.lang
%changelog