2014-02-07 22:42:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package kdbusaddons
|
|
|
|
#
|
2018-01-17 16:06:46 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 22:42:17 +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:28:00 +02:00
|
|
|
%bcond_without lang
|
2014-03-01 19:33:14 +01:00
|
|
|
%define lname libKF5DBusAddons5
|
2018-06-14 00:11:06 +02:00
|
|
|
%define _tar_path 5.47
|
2017-09-13 14:18:02 +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:17 +01:00
|
|
|
Name: kdbusaddons
|
2018-06-14 00:11:06 +02:00
|
|
|
Version: 5.47.0
|
2014-02-07 22:42:17 +01:00
|
|
|
Release: 0
|
2017-01-09 00:39:27 +01:00
|
|
|
BuildRequires: cmake >= 3.0
|
2017-09-13 14:18:02 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
2014-02-07 22:42:17 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kf5-filesystem
|
2015-04-10 18:28:00 +02:00
|
|
|
%if %{with lang}
|
2017-02-09 10:25:39 +01:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.6.0
|
2015-04-10 18:28:00 +02:00
|
|
|
%endif
|
2017-02-09 10:25:39 +01:00
|
|
|
BuildRequires: cmake(Qt5DBus) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5X11Extras) >= 5.6.0
|
2014-02-07 22:42:17 +01:00
|
|
|
Summary: Convenience classes for QtDBus
|
2018-03-14 14:00:26 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2014-02-07 22:42:17 +01:00
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
2017-04-27 22:24:37 +02:00
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2014-06-03 22:37:25 +02:00
|
|
|
Source1: baselibs.conf
|
2014-02-07 22:42:17 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
|
|
|
|
create KDED modules.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Convenience classes for QtDBus
|
|
|
|
Group: System/GUI/KDE
|
2014-05-05 04:57:36 +02:00
|
|
|
Recommends: %lname-lang = %{version}
|
2014-08-14 23:01:29 +02:00
|
|
|
Recommends: %{name}-tools = %{version}
|
2014-08-07 22:42:29 +02:00
|
|
|
%requires_ge libQt5DBus5
|
2014-02-07 22:42:17 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
|
|
|
|
create KDED modules.
|
|
|
|
|
2014-08-14 23:01:29 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Convenience classes for QtDBus: CLI tools
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
|
|
|
|
create KDED modules. Aditional CLI tools.
|
|
|
|
|
2014-02-07 22:42:17 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Convenience classes for QtDBus: Build Environment
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: %lname = %{version}
|
2014-02-08 03:32:07 +01:00
|
|
|
Requires: extra-cmake-modules
|
2017-02-09 10:25:39 +01:00
|
|
|
Requires: cmake(Qt5DBus) >= 5.6.0
|
2014-02-07 22:42:17 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
|
|
|
|
create KDED modules. Development files.
|
|
|
|
|
2014-05-05 04:25:18 +02:00
|
|
|
%lang_package -n %lname
|
2014-02-07 22:42:17 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-08-07 22:42:29 +02:00
|
|
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert
|
2014-02-07 22:42:17 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2015-04-10 18:48:07 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-05-05 04:25:18 +02:00
|
|
|
|
2015-04-10 18:28:00 +02:00
|
|
|
%if %{with lang}
|
2015-04-05 13:45:51 +02:00
|
|
|
%find_lang %{name}5 --with-qt --without-mo
|
2015-04-10 18:28:00 +02:00
|
|
|
%endif
|
2014-02-07 22:42:17 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2015-04-10 18:28:00 +02:00
|
|
|
%if %{with lang}
|
2014-05-05 04:25:18 +02:00
|
|
|
%files -n %lname-lang -f %{name}5.lang
|
2015-04-10 18:28:00 +02:00
|
|
|
%endif
|
2014-05-05 04:25:18 +02:00
|
|
|
|
2014-02-07 22:42:17 +01:00
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_libdir}/libKF5DBusAddons.so.*
|
2017-12-22 17:25:17 +01:00
|
|
|
%{_kf5_debugdir}/*.categories
|
2014-02-07 22:42:17 +01:00
|
|
|
|
2014-08-14 23:01:29 +02:00
|
|
|
%files tools
|
2014-02-07 22:42:17 +01:00
|
|
|
%defattr(-,root,root)
|
2014-03-01 19:33:14 +01:00
|
|
|
%{_kf5_bindir}/kquitapp5
|
2014-08-14 23:01:29 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-02-07 22:42:17 +01:00
|
|
|
%{_kf5_libdir}/libKF5DBusAddons.so
|
|
|
|
%{_kf5_libdir}/cmake/KF5DBusAddons/
|
2014-08-07 22:59:32 +02:00
|
|
|
%{_kf5_includedir}/
|
2014-02-07 22:42:17 +01:00
|
|
|
%{_kf5_mkspecsdir}/qt_KDBusAddons.pri
|
|
|
|
|
|
|
|
%changelog
|