17
0

Accepting request 937931 from KDE:Applications

KDE Gear 21.12.0

OBS-URL: https://build.opensuse.org/request/show/937931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdevelop5-plugin-python3?expand=0&rev=29
This commit is contained in:
2021-12-13 19:42:59 +00:00
committed by Git OBS Bridge
parent 7676f05db7
commit fd10288228
6 changed files with 64 additions and 13 deletions

View File

@@ -17,14 +17,19 @@
%define rname kdev-python
%bcond_without lang
Name: kdevelop5-plugin-python3
Version: 5.6.2
Version: 21.12.0
Release: 0
Summary: Python support for KDevelop
License: GPL-2.0-or-later
Group: Development/Tools/IDE
URL: https://www.kdevelop.org
Source0: https://download.kde.org/stable/kdevelop/%{version}/src/%{rname}-%{version}.tar.xz
Source: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz
%if %{with lang}
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kdevelop5
@@ -50,6 +55,7 @@ Obsoletes: kdevelop4-plugin-python3 < %{version}
%description
A KDevelop plugin which provides Python language support, including code completion and debugging using PDB.
%if %{with lang}
%package lang
Summary: Translations for package %{name}
Group: System/Localization
@@ -61,25 +67,30 @@ BuildArch: noarch
%description lang
Provides translations to the package %{name}
%endif
%prep
%setup -q -n %{rname}-%{version}
%autosetup -p1 -n %{rname}-%{version}
%build
%cmake_kf5 -d build
%make_build parser
%cmake_build
%cmake_kf5 -d build
%make_build parser
%cmake_build
%install
%kf5_makeinstall -C build
%find_lang kdevpython %{name}.lang
%fdupes -s %{buildroot}
%kf5_makeinstall -C build
%if %{with lang}
%find_lang kdevpython %{name}.lang
%endif
%fdupes -s %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%license LICENSES/*
%doc README
%{_kf5_appstreamdir}/org.kde.kdev-python.metainfo.xml
%{_kf5_debugdir}/kdevpythonsupport.categories
@@ -88,6 +99,8 @@ Provides translations to the package %{name}
%{_kf5_sharedir}/kdevappwizard/
%{_kf5_sharedir}/kdevpythonsupport/
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog