2014-02-07 21:42:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package kcoreaddons
|
|
|
|
#
|
2021-01-09 12:18:44 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-02-07 21:42:13 +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.
|
|
|
|
|
2018-10-16 12:24:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-07 21:42:13 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-03-01 18:33:03 +00:00
|
|
|
%define lname libKF5CoreAddons5
|
2021-09-12 19:34:36 +00:00
|
|
|
%define _tar_path 5.86
|
2017-09-13 12:16:48 +00:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 08:57:50 +00:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2018-08-20 12:58:36 +00:00
|
|
|
%bcond_without lang
|
2014-02-07 21:42:13 +00:00
|
|
|
Name: kcoreaddons
|
2021-09-12 19:34:36 +00:00
|
|
|
Version: 5.86.0
|
2014-02-07 21:42:13 +00:00
|
|
|
Release: 0
|
2018-08-20 12:58:36 +00:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
Group: System/GUI/KDE
|
2018-10-16 12:24:10 +00:00
|
|
|
URL: https://www.kde.org
|
2019-08-11 21:07:08 +00:00
|
|
|
Source: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2019-08-12 00:05:56 +00:00
|
|
|
%if %{with lang}
|
2019-08-11 21:07:08 +00:00
|
|
|
Source1: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2017-04-27 20:24:32 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
2014-02-07 21:42:13 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: shared-mime-info
|
2021-05-09 07:41:56 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.0
|
2014-06-03 20:29:55 +00:00
|
|
|
Requires: shared-mime-info
|
2015-04-10 16:27:12 +00:00
|
|
|
%if %{with lang}
|
2021-05-09 07:41:56 +00:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.15.0
|
2018-08-20 13:32:30 +00:00
|
|
|
%endif
|
2018-11-12 13:16:12 +00:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%description
|
2014-02-10 23:18:46 +00:00
|
|
|
KCoreAddons provides classes built on top of QtCore to perform various tasks
|
|
|
|
such as manipulating mime types, autosaving files, creating backup files,
|
|
|
|
generating random sequences, performing text manipulations such as macro
|
|
|
|
replacement, accessing user information and many more.
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2018-08-20 12:58:36 +00:00
|
|
|
%package -n %{lname}
|
2014-02-10 23:18:46 +00:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
2014-02-07 21:42:13 +00:00
|
|
|
Group: System/GUI/KDE
|
2018-08-20 12:58:36 +00:00
|
|
|
%requires_ge libQt5Core5
|
2014-02-19 23:33:39 +00:00
|
|
|
Recommends: %{name} = %{version}
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2018-08-20 12:58:36 +00:00
|
|
|
%description -n %{lname}
|
2014-02-10 23:18:46 +00:00
|
|
|
KCoreAddons provides classes built on top of QtCore to perform various tasks
|
|
|
|
such as manipulating mime types, autosaving files, creating backup files,
|
|
|
|
generating random sequences, performing text manipulations such as macro
|
|
|
|
replacement, accessing user information and many more.
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%package devel
|
2014-02-10 23:18:46 +00:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
2014-02-07 21:42:13 +00:00
|
|
|
Group: Development/Libraries/KDE
|
2018-08-20 12:58:36 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2014-02-19 23:29:48 +00:00
|
|
|
Requires: %{name} = %{version}
|
2014-02-08 02:32:03 +00:00
|
|
|
Requires: extra-cmake-modules
|
2021-05-09 07:41:56 +00:00
|
|
|
Requires: cmake(Qt5Core) >= 5.15.0
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%description devel
|
2014-02-10 23:18:46 +00:00
|
|
|
KCoreAddons provides classes built on top of QtCore to perform various tasks
|
|
|
|
such as manipulating mime types, autosaving files, creating backup files,
|
|
|
|
generating random sequences, performing text manipulations such as macro
|
|
|
|
replacement, accessing user information and many more. Development files.
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2014-05-05 01:08:45 +00:00
|
|
|
%lang_package
|
2018-08-20 12:58:36 +00:00
|
|
|
|
2014-02-07 21:42:13 +00:00
|
|
|
%prep
|
2021-05-09 07:41:56 +00:00
|
|
|
%autosetup -p1
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-09 07:41:56 +00:00
|
|
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert -DKDE4_DEFAULT_HOME=".kde4"
|
|
|
|
%cmake_build
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-09 07:41:56 +00:00
|
|
|
%kf5_makeinstall -C build
|
|
|
|
%fdupes %{buildroot}
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2015-04-10 16:27:12 +00:00
|
|
|
%if %{with lang}
|
2020-06-13 20:35:12 +00:00
|
|
|
%find_lang %{name}5 --all-name --with-qt --without-mo
|
2015-04-10 16:27:12 +00:00
|
|
|
%endif
|
2014-05-05 01:08:45 +00:00
|
|
|
|
2018-08-20 12:58:36 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2014-02-19 23:29:48 +00:00
|
|
|
%post
|
2016-03-12 19:33:43 +00:00
|
|
|
%mime_database_post
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2018-08-20 12:58:36 +00:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2014-02-19 23:29:48 +00:00
|
|
|
%postun
|
2016-03-12 19:33:43 +00:00
|
|
|
%mime_database_postun
|
2014-02-07 21:42:13 +00:00
|
|
|
|
2015-04-10 16:27:12 +00:00
|
|
|
%if %{with lang}
|
2014-05-05 01:08:45 +00:00
|
|
|
%files lang -f %{name}5.lang
|
2015-04-10 16:27:12 +00:00
|
|
|
%endif
|
2014-05-05 01:08:45 +00:00
|
|
|
|
2014-02-19 23:29:48 +00:00
|
|
|
%files
|
2014-02-07 21:42:13 +00:00
|
|
|
%{_kf5_appsdir}/mime/packages/kde5.xml
|
2016-08-07 21:51:19 +00:00
|
|
|
%{_kf5_datadir}/
|
2014-02-19 23:29:48 +00:00
|
|
|
|
2018-08-20 12:58:36 +00:00
|
|
|
%files -n %{lname}
|
2020-07-11 10:30:45 +00:00
|
|
|
%license LICENSES/*
|
2018-08-20 12:58:36 +00:00
|
|
|
%doc README*
|
2018-11-12 13:16:12 +00:00
|
|
|
%{_kf5_debugdir}/kcoreaddons.categories
|
2020-08-09 07:39:36 +00:00
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2020-07-11 10:30:45 +00:00
|
|
|
%{_kf5_libdir}/libKF5CoreAddons.so.*
|
2014-02-07 21:42:13 +00:00
|
|
|
|
|
|
|
%files devel
|
2014-09-09 10:30:24 +00:00
|
|
|
%{_kf5_bindir}/desktoptojson
|
2014-08-07 20:54:58 +00:00
|
|
|
%{_kf5_includedir}/
|
2020-07-11 10:30:45 +00:00
|
|
|
%{_kf5_libdir}/cmake/KF5CoreAddons/
|
|
|
|
%{_kf5_libdir}/libKF5CoreAddons.so
|
2014-02-07 21:42:13 +00:00
|
|
|
%{_kf5_mkspecsdir}/qt_KCoreAddons.pri
|
|
|
|
|
|
|
|
%changelog
|