Accepting request 1226955 from KDE:Extra

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1226955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kexi?expand=0&rev=14
This commit is contained in:
2024-11-27 21:15:54 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 18 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 20 17:29:04 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Stop using the %suse_update_desktop_file macro
- Spec cleanup
-------------------------------------------------------------------
Wed Mar 16 10:14:22 UTC 2022 - Max Lin <mlin@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package kexi
#
# Copyright (c) 2020 SUSE LLC
# 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
@@ -23,8 +23,7 @@ Version: 3.2.0
Release: 0
Summary: Database Application
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND GFDL-1.2-only
Group: Productivity/Office/Suite
URL: http://www.kexi-project.org/
URL: https://www.kexi-project.org/
Source0: https://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: Fix-build-with-Qt-5_13.patch
@@ -34,6 +33,8 @@ Patch1: 0001-Include-glib.h-outside-of-the-extern-block.patch
Patch2: Use-plain-Marble-package-instead-of-KexiMarble.patch
BuildRequires: extra-cmake-modules
BuildRequires: glib2-devel
# For dir ownership
BuildRequires: hicolor-icon-theme
BuildRequires: kdb-devel
BuildRequires: kf5-filesystem
BuildRequires: kproperty-devel
@@ -41,7 +42,6 @@ BuildRequires: kreport-devel
BuildRequires: libmysqld-devel
BuildRequires: mysql-devel
BuildRequires: postgresql-server-devel
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Archive)
BuildRequires: cmake(KF5Codecs)
BuildRequires: cmake(KF5Completion)
@@ -67,10 +67,7 @@ BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5UiTools)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5Xml)
# For dir ownership
BuildRequires: hicolor-icon-theme
Requires: hicolor-icon-theme
Recommends: %{name}-lang = %{version}
Obsoletes: calligra-kexi < %{version}
Provides: calligra-kexi = %{version}
# not ported yet
@@ -86,7 +83,6 @@ programs like MS Access or Filemaker.
%package spreadsheet-import
Summary: Spreadsheet-to-Kexi-table import plugin
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Office/Suite
Obsoletes: calligra-kexi-spreadsheet-import < %{version}
Provides: calligra-kexi-spreadsheet-import = %{version}
@@ -102,29 +98,26 @@ This package contains a Spreadsheet-to-Kexi-table import plugin.
%autosetup -p1
%build
# install translations to %{_kf5_localedir} so they don't clash with the kexi translations in calligra-l10n (KDE4 based)
# install translations to %%{_kf5_localedir} so they don't clash with the kexi translations in calligra-l10n (KDE4 based)
# can probably be changed back to the standard location when we have calligra 3 in all supported distributions...
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%cmake_build
%install
%kf5_makeinstall -C build
%if %{with lang}
%{kf5_find_lang}
%endif
%suse_update_desktop_file -r org.kde.kexi-%{soVersion} Qt KDE Office Database
#Remove unwanted development files
# Remove unwanted development files
for i in dataviewcommon formutils extendedwidgets relationsview main migrate utils guiutils datatable core undo
do
rm %{buildroot}%{_kf5_libdir}/libkexi${i}%{soVersion}.so
done
rm %{buildroot}%{_kf5_libdir}/libkformdesigner%{soVersion}.so
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license COPYING COPYING.*
@@ -140,8 +133,6 @@ rm %{buildroot}%{_kf5_libdir}/libkformdesigner%{soVersion}.so
%{_kf5_plugindir}/kexi/
%{_kf5_sharedir}/kexi/
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog