2014-02-07 22:42:13 +01:00
|
|
|
#
|
|
|
|
# spec file for package kcoreaddons
|
|
|
|
#
|
2018-01-17 16:06:45 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 22:42:13 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-10 18:27:12 +02:00
|
|
|
%bcond_without lang
|
2014-03-01 19:33:03 +01:00
|
|
|
%define lname libKF5CoreAddons5
|
2018-06-14 00:11:05 +02:00
|
|
|
%define _tar_path 5.47
|
2017-09-13 14:16:48 +02: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)
|
|
|
|
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2014-02-07 22:42:13 +01:00
|
|
|
Name: kcoreaddons
|
2018-06-14 00:11:05 +02:00
|
|
|
Version: 5.47.0
|
2014-02-07 22:42:13 +01:00
|
|
|
Release: 0
|
2017-01-09 00:39:10 +01:00
|
|
|
BuildRequires: cmake >= 3.0
|
2017-04-27 22:24:32 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
2014-02-07 22:42:13 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kf5-filesystem
|
2015-04-10 18:27:12 +02:00
|
|
|
%if %{with lang}
|
2017-02-09 16:46:30 +01:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.6.0
|
2015-04-10 18:27:12 +02:00
|
|
|
%endif
|
2014-02-07 22:42:13 +01:00
|
|
|
BuildRequires: shared-mime-info
|
2017-02-09 16:46:30 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.6.0
|
2014-06-03 22:29:55 +02:00
|
|
|
Requires: shared-mime-info
|
2015-04-10 18:27:12 +02:00
|
|
|
%if %{with lang}
|
2014-05-05 03:26:06 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2015-04-10 18:27:12 +02:00
|
|
|
%endif
|
2014-02-11 00:18:46 +01:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
2018-03-14 14:00:25 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2014-02-07 22:42:13 +01:00
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
2017-04-27 22:24:32 +02:00
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2014-06-03 22:29:55 +02:00
|
|
|
Source1: baselibs.conf
|
2014-02-07 22:42:13 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-02-11 00:18:46 +01: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 22:42:13 +01:00
|
|
|
|
|
|
|
%package -n %lname
|
2014-02-11 00:18:46 +01:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
2014-02-07 22:42:13 +01:00
|
|
|
Group: System/GUI/KDE
|
2014-02-20 00:33:39 +01:00
|
|
|
Recommends: %{name} = %{version}
|
2014-08-07 22:54:58 +02:00
|
|
|
%requires_ge libQt5Core5
|
2014-02-07 22:42:13 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
2014-02-11 00:18:46 +01: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 22:42:13 +01:00
|
|
|
|
|
|
|
%package devel
|
2014-02-11 00:18:46 +01:00
|
|
|
Summary: Utilities for core application functionality and accessing the OS
|
2014-02-07 22:42:13 +01:00
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: %lname = %{version}
|
2014-02-20 00:29:48 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-02-08 03:32:03 +01:00
|
|
|
Requires: extra-cmake-modules
|
2017-02-09 16:46:30 +01:00
|
|
|
Requires: cmake(Qt5Core) >= 5.6.0
|
2014-02-07 22:42:13 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-02-11 00:18:46 +01: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 22:42:13 +01:00
|
|
|
|
2014-05-05 03:08:45 +02:00
|
|
|
%lang_package
|
2014-02-07 22:42:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-10-04 23:49:13 +02:00
|
|
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert -DKDE4_DEFAULT_HOME=".kde4"
|
2014-02-07 22:42:13 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2015-04-10 18:47:28 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-02-07 22:42:13 +01:00
|
|
|
|
2015-04-10 18:27:12 +02:00
|
|
|
%if %{with lang}
|
2015-04-05 13:43:59 +02:00
|
|
|
%find_lang %{name}5 --with-qt --without-mo
|
2015-04-10 18:27:12 +02:00
|
|
|
%endif
|
2014-05-05 03:08:45 +02:00
|
|
|
|
2014-02-20 00:29:48 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post
|
2016-03-12 20:33:43 +01:00
|
|
|
%mime_database_post
|
2014-02-07 22:42:13 +01:00
|
|
|
|
2014-02-20 00:29:48 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
2016-03-12 20:33:43 +01:00
|
|
|
%mime_database_postun
|
2014-02-07 22:42:13 +01:00
|
|
|
|
2015-04-10 18:27:12 +02:00
|
|
|
%if %{with lang}
|
2014-05-05 03:08:45 +02:00
|
|
|
%files lang -f %{name}5.lang
|
2015-04-10 18:27:12 +02:00
|
|
|
%endif
|
2014-05-05 03:08:45 +02:00
|
|
|
|
2014-02-20 00:29:48 +01:00
|
|
|
%files
|
2014-02-07 22:42:13 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_appsdir}/mime/packages/kde5.xml
|
2016-08-07 23:51:19 +02:00
|
|
|
%{_kf5_datadir}/
|
2014-02-20 00:29:48 +01:00
|
|
|
|
|
|
|
%files -n %lname
|
2014-02-20 00:33:39 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
2014-02-07 22:42:13 +01:00
|
|
|
%{_kf5_libdir}/libKF5CoreAddons.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-09-09 12:30:24 +02:00
|
|
|
%{_kf5_bindir}/desktoptojson
|
2014-02-07 22:42:13 +01:00
|
|
|
%{_kf5_libdir}/libKF5CoreAddons.so
|
|
|
|
%{_kf5_libdir}/cmake/KF5CoreAddons/
|
2014-08-07 22:54:58 +02:00
|
|
|
%{_kf5_includedir}/
|
2014-02-07 22:42:13 +01:00
|
|
|
%{_kf5_mkspecsdir}/qt_KCoreAddons.pri
|
|
|
|
|
|
|
|
%changelog
|