105 lines
2.9 KiB
RPMSpec
105 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package kreport
|
|
#
|
|
# Copyright (c) 2024 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 sover 4
|
|
Name: kreport
|
|
Version: 3.2.0
|
|
Release: 0
|
|
Summary: Framework for creation and generation of reports
|
|
License: LGPL-2.0-only
|
|
URL: https://community.kde.org/KReport
|
|
Source0: https://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-UPSTREAM
|
|
Patch0: Fix-kexi-build-with-GCC-10.patch
|
|
# PATCH-FIX-UPSTREAM -- find python3
|
|
Patch1: 0001-Find-also-Python3-with-find_package-PythonInterp.patch
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: python3-base
|
|
BuildRequires: cmake(KF5Config)
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
BuildRequires: cmake(KF5GuiAddons)
|
|
BuildRequires: cmake(KF5WidgetsAddons)
|
|
BuildRequires: cmake(KPropertyCore)
|
|
BuildRequires: cmake(Qt5Core)
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
|
BuildRequires: cmake(Qt5PrintSupport)
|
|
BuildRequires: cmake(Qt5Qml)
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
BuildRequires: cmake(Qt5Xml)
|
|
|
|
%description
|
|
A framework for creation and generation of reports in multiple formats
|
|
|
|
%package -n libKReport3-%{sover}
|
|
Summary: The library for the Report Creation and generation Framework
|
|
Requires: kreport >= %{version}
|
|
|
|
%description -n libKReport3-%{sover}
|
|
The main library for the Report creation and generation framework
|
|
|
|
%package devel
|
|
Summary: Development package for KReport
|
|
Requires: libKReport3-%{sover} = %{version}
|
|
Requires: cmake(KPropertyCore)
|
|
Requires: cmake(Qt5Qml)
|
|
|
|
%description devel
|
|
Development package for the Report Creation and Generation framework
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
sed -i 's#/usr/bin/env python$#/usr/bin/python3#' tools/sdc.py
|
|
|
|
%build
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
|
|
%find_lang %{name} %{name}.lang --all-name --with-qt
|
|
|
|
# The pkgconfig files contain incorrect stuff
|
|
rm %{buildroot}%{_libdir}/pkgconfig/KReport3.pc
|
|
|
|
%ldconfig_scriptlets -n libKReport3-%{sover}
|
|
|
|
%files -n libKReport3-%{sover}
|
|
%license COPYING.LIB
|
|
%{_libdir}/libKReport3.so.*
|
|
|
|
%files
|
|
%{_kf5_plugindir}/kreport3/
|
|
%{_kf5_servicetypesdir}/kreport_elementplugin.desktop
|
|
%{_kf5_sharedir}/kreport3/
|
|
|
|
%files devel
|
|
%license COPYING*
|
|
%{_includedir}/KReport3/
|
|
%{_kf5_cmakedir}/KReport3/
|
|
%{_kf5_libdir}/libKReport3.so
|
|
%{_kf5_mkspecsdir}/qt_KReport3.pri
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|