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
|
|
|
#
|
2024-02-23 21:08:50 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2019-09-04 09:11:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
|
|
|
|
2011-03-10 11:34:05 +01:00
|
|
|
|
2024-04-12 19:25:55 +02:00
|
|
|
%define kf6_version 6.0.0
|
2024-02-23 21:08:50 +01:00
|
|
|
%define qt6_version 6.6.0
|
|
|
|
|
2022-01-06 13:45:09 +01:00
|
|
|
%bcond_without released
|
2010-07-20 21:01:43 +02:00
|
|
|
Name: libktorrent
|
2024-04-12 19:25:55 +02:00
|
|
|
Version: 24.02.2
|
2012-03-07 13:43:01 +01:00
|
|
|
Release: 0
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
2019-09-04 09:11:10 +02:00
|
|
|
License: GPL-2.0-or-later
|
2021-04-19 15:31:13 +02:00
|
|
|
URL: https://apps.kde.org/ktorrent
|
2024-02-26 11:29:51 +01:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-06 13:45:09 +01:00
|
|
|
%if %{with released}
|
2024-02-26 11:29:51 +01:00
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2021-04-19 15:31:13 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: doxygen
|
2019-09-04 09:11:10 +02:00
|
|
|
BuildRequires: gmp-devel >= 6.0.0
|
2024-02-23 21:08:50 +01:00
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
2019-09-04 09:11:10 +02:00
|
|
|
BuildRequires: libboost_headers-devel
|
2024-02-23 21:08:50 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: cmake(KF6Archive) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Solid) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Core5Compat) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Network) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Xml) >= %{qt6_version}
|
|
|
|
BuildRequires: pkgconfig(libgcrypt) >= 1.4.5
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%package -n libKTorrent6
|
|
|
|
Summary: Torrent Downloading Library
|
|
|
|
Provides: libktorrent = %{version}
|
|
|
|
Obsoletes: libktorrent < %{version}
|
|
|
|
Provides: libktorrent-lang = %{version}
|
|
|
|
Obsoletes: libktorrent-lang < %{version}
|
|
|
|
|
|
|
|
%description -n libKTorrent6
|
|
|
|
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
|
2024-02-23 21:08:50 +01:00
|
|
|
Requires: libKTorrent6 = %{version}
|
|
|
|
Requires: libboost_headers-devel >= 1.66.0
|
|
|
|
Requires: cmake(KF6Archive) >= %{kf6_version}
|
|
|
|
Requires: cmake(KF6Config) >= %{kf6_version}
|
|
|
|
Requires: cmake(KF6KIO) >= %{kf6_version}
|
|
|
|
Requires: cmake(Qt6Core) >= %{qt6_version}
|
|
|
|
Requires: cmake(Qt6Core5Compat) >= %{qt6_version}
|
|
|
|
Requires: cmake(Qt6Network) >= %{qt6_version}
|
|
|
|
Requires: gmp-devel >= 6.0.0
|
|
|
|
Requires: pkgconfig(libgcrypt) >= 1.4.5
|
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
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%lang_package -n libKTorrent6
|
2019-09-04 09:11:10 +02:00
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%prep
|
2021-04-19 15:31:13 +02:00
|
|
|
%autosetup -p1
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
# The boost minimum version change is only cosmetic. Leap 15 only provides 1.66...
|
2021-07-27 11:36:03 +02:00
|
|
|
sed -i 's#1.71.0#1.66.0#' CMakeLists.txt
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%build
|
2023-08-18 08:26:11 +02:00
|
|
|
%ifarch ppc64
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%endif
|
2021-08-26 11:02:45 +02:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%cmake_kf6
|
|
|
|
|
|
|
|
%kf6_build
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%install
|
2024-02-23 21:08:50 +01:00
|
|
|
%kf6_install
|
2011-03-10 11:33:55 +01:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%find_lang %{name} --all-name
|
2011-03-10 11:33:55 +01:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%ldconfig_scriptlets -n libKTorrent6
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%files -n libKTorrent6
|
2021-11-30 08:58:45 +01:00
|
|
|
%license LICENSES/*
|
2024-02-23 21:08:50 +01:00
|
|
|
%{_kf6_libdir}/libKTorrent6.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_kf6_cmakedir}/KTorrent6/
|
|
|
|
%{_kf6_includedir}/libktorrent/
|
|
|
|
%{_kf6_libdir}/libKTorrent6.so
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2024-02-23 21:08:50 +01:00
|
|
|
%files -n libKTorrent6-lang -f %{name}.lang
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%changelog
|