2016-10-01 22:07:28 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package kdevelop5-plugin-python3
|
|
|
|
|
#
|
2023-03-02 14:21:03 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-10-01 22:07:28 +00: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-03-10 08:39:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-01 22:07:28 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define rname kdev-python
|
2022-06-20 09:35:18 +00:00
|
|
|
%if 0%{suse_version} >= 1550
|
2022-11-17 22:58:18 +00:00
|
|
|
%define mypython python310
|
2022-06-20 09:35:18 +00:00
|
|
|
%else
|
|
|
|
|
%define mypython python3
|
|
|
|
|
%endif
|
2022-01-06 12:44:39 +00:00
|
|
|
%bcond_without released
|
2016-10-01 22:07:28 +00:00
|
|
|
Name: kdevelop5-plugin-python3
|
2023-03-02 14:21:03 +00:00
|
|
|
Version: 22.12.3
|
2016-10-01 22:07:28 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python support for KDevelop
|
2019-01-15 08:15:43 +00:00
|
|
|
License: GPL-2.0-or-later
|
2019-08-08 12:23:54 +00:00
|
|
|
URL: https://www.kdevelop.org
|
2022-12-08 12:38:28 +00:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz
|
2022-01-06 12:44:39 +00:00
|
|
|
%if %{with released}
|
2022-12-08 12:38:28 +00:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig
|
2021-12-13 19:42:59 +00:00
|
|
|
Source2: applications.keyring
|
|
|
|
|
%endif
|
2016-10-01 22:07:28 +00:00
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
|
BuildRequires: fdupes
|
2018-06-02 10:08:15 +00:00
|
|
|
BuildRequires: kdevelop5
|
2016-10-01 22:07:28 +00:00
|
|
|
BuildRequires: kf5-filesystem
|
2022-06-20 09:35:18 +00:00
|
|
|
BuildRequires: %mypython >= 3.4.3
|
|
|
|
|
BuildRequires: %mypython-devel >= 3.4.3
|
2020-09-09 16:05:00 +00:00
|
|
|
BuildRequires: cmake(KDevPlatform)
|
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
|
BuildRequires: cmake(KF5TextEditor)
|
|
|
|
|
BuildRequires: cmake(KF5ThreadWeaver)
|
|
|
|
|
BuildRequires: cmake(Qt5Core)
|
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
2016-10-01 22:07:28 +00:00
|
|
|
Requires: kdevelop5
|
|
|
|
|
Recommends: %{name}-lang
|
2022-06-20 09:35:18 +00:00
|
|
|
Recommends: %mypython-pep8
|
2016-10-01 22:07:28 +00:00
|
|
|
Provides: kdevelop4-plugin-python = %{version}
|
|
|
|
|
Obsoletes: kdevelop4-plugin-python < %{version}
|
|
|
|
|
# The following are needed due to old unstable packages in KDE repositories
|
|
|
|
|
Provides: kdevelop4-plugin-python3 = %{version}
|
|
|
|
|
Obsoletes: kdevelop4-plugin-python3 < %{version}
|
2022-08-09 14:12:32 +00:00
|
|
|
# Only build on archs where Qt5WebEngine is available
|
|
|
|
|
ExcludeArch: ppc ppc64 ppc64le s390 s390x
|
2016-10-01 22:07:28 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A KDevelop plugin which provides Python language support, including code completion and debugging using PDB.
|
|
|
|
|
|
|
|
|
|
%package lang
|
2018-06-02 10:08:15 +00:00
|
|
|
Summary: Translations for package %{name}
|
2016-10-06 10:46:05 +00:00
|
|
|
Requires: %{name} = %{version}
|
2020-09-09 16:05:00 +00:00
|
|
|
Supplements: (bundle-lang-other and %{name})
|
2016-10-06 10:46:05 +00:00
|
|
|
Conflicts: kdevelop4-plugin-python-lang
|
2019-01-15 08:15:43 +00:00
|
|
|
Provides: %{name}-lang-all = %{version}
|
|
|
|
|
BuildArch: noarch
|
2016-10-01 22:07:28 +00:00
|
|
|
|
|
|
|
|
%description lang
|
|
|
|
|
Provides translations to the package %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-12-13 19:42:59 +00:00
|
|
|
%autosetup -p1 -n %{rname}-%{version}
|
2016-10-01 22:07:28 +00:00
|
|
|
|
|
|
|
|
%build
|
2021-12-13 19:42:59 +00:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
|
%make_build parser
|
|
|
|
|
%cmake_build
|
2016-10-01 22:07:28 +00:00
|
|
|
|
|
|
|
|
%install
|
2021-12-13 19:42:59 +00:00
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
|
|
|
|
|
%find_lang kdevpython %{name}.lang
|
|
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}
|
2016-10-01 22:07:28 +00:00
|
|
|
|
2023-03-02 14:21:03 +00:00
|
|
|
%ldconfig_scriptlets
|
2016-10-01 22:07:28 +00:00
|
|
|
|
|
|
|
|
%files
|
2021-12-13 19:42:59 +00:00
|
|
|
%license LICENSES/*
|
2016-10-01 22:07:28 +00:00
|
|
|
%doc README
|
2018-06-02 10:08:15 +00:00
|
|
|
%{_kf5_appstreamdir}/org.kde.kdev-python.metainfo.xml
|
|
|
|
|
%{_kf5_debugdir}/kdevpythonsupport.categories
|
2016-10-01 22:07:28 +00:00
|
|
|
%{_kf5_libdir}/libkdev*python*.so*
|
|
|
|
|
%{_kf5_plugindir}/
|
|
|
|
|
%{_kf5_sharedir}/kdevappwizard/
|
|
|
|
|
%{_kf5_sharedir}/kdevpythonsupport/
|
|
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
|
|
%changelog
|