2014-02-07 21:44:05 +00:00
#
# spec file for package kxmlgui
#
2016-01-02 17:45:49 +00:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2014-02-07 21:44:05 +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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2015-04-10 16:29:00 +00:00
%bcond_without lang
2014-03-06 10:27:32 +00:00
%define lname libKF5XmlGui5
2016-12-04 02:05:59 +00:00
%define _tar_path 5.29
2014-02-07 21:44:05 +00:00
Name : kxmlgui
2016-12-04 02:05:59 +00:00
Version : 5.29.0
2014-02-07 21:44:05 +00:00
Release : 0
2014-07-11 09:59:03 +00:00
%define kf5_version %{version}
2015-04-10 16:29:00 +00:00
BuildRequires : attica-qt5-devel >= %{_tar_path}
2014-02-07 21:44:05 +00:00
BuildRequires : cmake >= 2.8.12
2015-04-10 16:29:00 +00:00
BuildRequires : extra-cmake-modules >= %{_tar_path}
2014-02-07 21:44:05 +00:00
BuildRequires : fdupes
2015-04-10 16:29:00 +00:00
BuildRequires : kconfig-devel >= %{_tar_path}
BuildRequires : kconfigwidgets-devel >= %{_tar_path}
2015-11-08 17:05:42 +00:00
BuildRequires : kcoreaddons-devel >= %{_tar_path}
2014-02-07 21:44:05 +00:00
BuildRequires : kf5-filesystem
2015-04-10 16:29:00 +00:00
BuildRequires : kglobalaccel-devel >= %{_tar_path}
BuildRequires : ki18n-devel >= %{_tar_path}
BuildRequires : kiconthemes-devel >= %{_tar_path}
BuildRequires : kitemviews-devel >= %{_tar_path}
BuildRequires : ktextwidgets-devel >= %{_tar_path}
BuildRequires : kwidgetsaddons-devel >= %{_tar_path}
BuildRequires : kwindowsystem-devel >= %{_tar_path}
2016-08-07 21:58:09 +00:00
BuildRequires : cmake(Qt5Core) >= 5.5.0
BuildRequires : cmake(Qt5DBus) >= 5.5.0
BuildRequires : cmake(Qt5Network) >= 5.5.0
BuildRequires : cmake(Qt5PrintSupport) >= 5.5.0
BuildRequires : cmake(Qt5Test) >= 5.5.0
BuildRequires : cmake(Qt5Widgets) >= 5.5.0
BuildRequires : cmake(Qt5Xml) >= 5.5.0
2014-02-07 21:44:05 +00:00
BuildRequires : pkgconfig(x11)
2014-02-12 02:45:45 +00:00
Summary : Framework for managing menu and toolbar actions
2014-03-04 16:31:23 +00:00
License : LGPL-2.1+ and GPL-2.0+
2014-02-07 21:44:05 +00:00
Group : System/GUI/KDE
Url : http://www.kde.org
2015-02-11 19:57:39 +00:00
Source : http://download.kde.org/stable/frameworks/%{_tar_path} /%{name} -%{version} .tar.xz
2014-06-03 22:27:29 +00:00
Source1 : baselibs.conf
2016-02-22 16:16:38 +00:00
# PATCH-FIX-UPSTREAM use-setFallbackSessionManagementEnabled-API-with-5.5.1.patch -- We can enable usage of setFallbackSessionManagementEnabled function
2016-12-04 02:05:59 +00:00
# with Qt 5.5.1, as we have the qtbase patch backported. For now only apppy patch on 42.1 Leap, as TW doesn't have that patch yet -- #354724, boo#95.290
2016-03-06 10:03:39 +00:00
Patch0 : use-setFallbackSessionManagementEnabled-API-with-5.5.1.patch
2014-02-07 21:44:05 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
2014-02-12 02:45:45 +00:00
libkxmlgui provides a framework for managing menu and toolbar actions in an
abstract way. The actions are configured through a XML description and hooks
in the application code. The framework supports merging of multiple
description for example for integrating actions from plugins.
2014-02-07 21:44:05 +00:00
%package -n %lname
2014-02-12 02:45:45 +00:00
Summary : Framework for managing menu and toolbar actions
2014-02-07 21:44:05 +00:00
Group : System/GUI/KDE
2014-03-06 10:27:32 +00:00
Obsoletes : libKF5XmlGui4
2015-04-10 16:29:00 +00:00
%if %{with lang}
2014-06-01 19:41:27 +00:00
Recommends: %lname-lang = %{version}
2015-04-10 16:29:00 +00:00
%endif
2014-02-07 21:44:05 +00:00
%description -n %lname
2014-02-12 02:45:45 +00:00
libkxmlgui provides a framework for managing menu and toolbar actions in an
abstract way. The actions are configured through a XML description and hooks
in the application code. The framework supports merging of multiple
description for example for integrating actions from plugins.
2014-02-07 21:44:05 +00:00
%package devel
2014-02-12 02:45:45 +00:00
Summary : Framework for managing menu and toolbar actions
2014-02-07 21:44:05 +00:00
Group : Development/Libraries/KDE
2014-02-08 02:33:32 +00:00
Requires : %lname = %{version}
2014-02-07 21:44:05 +00:00
Requires : extra-cmake-modules
2015-04-10 16:29:00 +00:00
Requires : kconfig-devel >= %{_tar_path}
Requires : kconfigwidgets-devel >= %{_tar_path}
2016-08-07 21:58:09 +00:00
Requires : cmake(Qt5DBus) >= 5.5.0
Requires : cmake(Qt5Widgets) >= 5.5.0
Requires : cmake(Qt5Xml) >= 5.5.0
2014-02-07 21:44:05 +00:00
%description devel
2014-02-12 02:45:45 +00:00
libkxmlgui provides a framework for managing menu and toolbar actions in an
abstract way. The actions are configured through a XML description and hooks
in the application code. The framework supports merging of multiple
description for example for integrating actions from plugins. Development files.
2014-02-07 21:44:05 +00:00
2014-06-01 19:41:27 +00:00
%lang_package -n %lname
2014-02-07 21:44:05 +00:00
%prep
%setup -q
2016-04-06 10:08:51 +00:00
%if 0%{?is_opensuse} || 0%{?suse_version} > 1315
2016-02-17 22:09:58 +00:00
%patch0 -p1
2016-04-06 10:08:51 +00:00
%endif
2014-02-07 21:44:05 +00:00
%build
%cmake_kf5 -d build -- -DSYSCONF_INSTALL_DIR=%{_kf5_sysconfdir}
%make_jobs
%install
%kf5_makeinstall -C build
2015-04-10 16:49:02 +00:00
%fdupes %{buildroot}
2014-02-07 21:44:05 +00:00
2014-09-21 19:18:45 +00:00
mkdir -p %{buildroot} %{_kf5_sharedir}/kxmlgui5/
2015-04-10 16:29:00 +00:00
%if %{with lang}
2015-04-05 11:49:26 +00:00
%find_lang %{name} 5
2015-04-10 16:29:00 +00:00
%endif
2014-06-01 19:42:11 +00:00
2014-02-07 21:44:05 +00:00
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
2015-04-10 16:29:00 +00:00
%if %{with lang}
2014-06-01 19:41:27 +00:00
%files -n %lname-lang -f %{name}5.lang
2015-04-10 16:29:00 +00:00
%endif
2014-06-01 19:41:27 +00:00
2014-02-07 21:44:05 +00:00
%files -n %lname
%defattr (-,root,root)
%doc COPYING* README*
%{_kf5_libdir}/libKF5XmlGui.so.*
2014-03-29 20:17:22 +00:00
%{_kf5_configdir}/ui/
2014-02-07 21:44:05 +00:00
%{_kf5_libexecdir}/ksendbugmail
2014-09-21 19:18:45 +00:00
%dir %{_kf5_sharedir}/kxmlgui5/
2014-02-07 21:44:05 +00:00
%files devel
%defattr (-,root,root)
%{_kf5_libdir}/libKF5XmlGui.so
%{_kf5_libdir}/cmake/KF5XmlGui/
%{_kf5_includedir}/*.h
%dir %{_kf5_includedir}/*/
%{_kf5_includedir}/*/
%{_kf5_mkspecsdir}/qt_KXmlGui.pri
%changelog