- Build using python3 rather than python2
- Spec cleanup OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kreport?expand=0&rev=41
This commit is contained in:
parent
88fd7790e7
commit
80525e0313
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 7 16:18:08 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Build using python3 rather than python2
|
||||||
|
- Spec cleanup
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 28 14:47:16 UTC 2021 - Wolfgang Bauer <wbauer@tmo.at>
|
Mon Jun 28 14:47:16 UTC 2021 - Wolfgang Bauer <wbauer@tmo.at>
|
||||||
|
|
||||||
|
20
kreport.spec
20
kreport.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package kreport
|
# spec file for package kreport
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,14 +22,12 @@ Version: 3.2.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Framework for creation and generation of reports
|
Summary: Framework for creation and generation of reports
|
||||||
License: LGPL-2.0-only
|
License: LGPL-2.0-only
|
||||||
Group: Productivity/Office/Other
|
|
||||||
URL: https://community.kde.org/KReport
|
URL: https://community.kde.org/KReport
|
||||||
Source0: https://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
|
Source0: https://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
|
||||||
# PATCH-FIX-UPSTREAM
|
# PATCH-FIX-UPSTREAM
|
||||||
Patch0: Fix-kexi-build-with-GCC-10.patch
|
Patch0: Fix-kexi-build-with-GCC-10.patch
|
||||||
BuildRequires: extra-cmake-modules
|
BuildRequires: extra-cmake-modules
|
||||||
BuildRequires: python-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
BuildRequires: cmake(KF5Config)
|
BuildRequires: cmake(KF5Config)
|
||||||
BuildRequires: cmake(KF5CoreAddons)
|
BuildRequires: cmake(KF5CoreAddons)
|
||||||
BuildRequires: cmake(KF5GuiAddons)
|
BuildRequires: cmake(KF5GuiAddons)
|
||||||
@ -42,25 +40,22 @@ BuildRequires: cmake(Qt5PrintSupport)
|
|||||||
BuildRequires: cmake(Qt5Qml)
|
BuildRequires: cmake(Qt5Qml)
|
||||||
BuildRequires: cmake(Qt5Widgets)
|
BuildRequires: cmake(Qt5Widgets)
|
||||||
BuildRequires: cmake(Qt5Xml)
|
BuildRequires: cmake(Qt5Xml)
|
||||||
Recommends: %{name}-lang
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A framework for creation and generation of reports in multiple formats
|
A framework for creation and generation of reports in multiple formats
|
||||||
|
|
||||||
%package -n libKReport3-%{sover}
|
%package -n libKReport3-%{sover}
|
||||||
Summary: The library for the Report Creation and generation Framework
|
Summary: The library for the Report Creation and generation Framework
|
||||||
Group: System/Libraries
|
Requires: kreport >= %{version}
|
||||||
Requires: %{name} >= %{version}
|
|
||||||
|
|
||||||
%description -n libKReport3-%{sover}
|
%description -n libKReport3-%{sover}
|
||||||
The main library for the Report creation and generation framework
|
The main library for the Report creation and generation framework
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development package for KReport
|
Summary: Development package for KReport
|
||||||
Group: Development/Libraries/KDE
|
Requires: libKReport3-%{sover} = %{version}
|
||||||
Requires: cmake(KPropertyCore)
|
Requires: cmake(KPropertyCore)
|
||||||
Requires: cmake(Qt5Qml)
|
Requires: cmake(Qt5Qml)
|
||||||
Requires: libKReport3-%{sover} = %{version}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development package for the Report Creation and Generation framework
|
Development package for the Report Creation and Generation framework
|
||||||
@ -70,19 +65,22 @@ Development package for the Report Creation and Generation framework
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
|
sed -i 's#/usr/bin/env python$#/usr/bin/python3#' tools/sdc.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kf5 -d build
|
%cmake_kf5 -d build
|
||||||
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
|
|
||||||
%find_lang %{name} %{name}.lang --all-name --with-qt
|
%find_lang %{name} %{name}.lang --all-name --with-qt
|
||||||
|
|
||||||
# The pkgconfig files contain incorrect stuff
|
# The pkgconfig files contain incorrect stuff
|
||||||
rm %{buildroot}%{_libdir}/pkgconfig/KReport3.pc
|
rm %{buildroot}%{_libdir}/pkgconfig/KReport3.pc
|
||||||
|
|
||||||
%post -n libKReport3-%{sover} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libKReport3-%{sover}
|
||||||
%postun -n libKReport3-%{sover} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files -n libKReport3-%{sover}
|
%files -n libKReport3-%{sover}
|
||||||
%license COPYING.LIB
|
%license COPYING.LIB
|
||||||
|
Loading…
Reference in New Issue
Block a user