2014-02-07 22:42:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package kcmutils
|
|
|
|
#
|
2015-02-08 20:13:49 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 22:42:01 +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/
|
|
|
|
#
|
|
|
|
|
2014-02-08 03:31:53 +01:00
|
|
|
|
2015-04-10 18:29:13 +02:00
|
|
|
%bcond_without lang
|
2014-03-02 00:17:11 +01:00
|
|
|
%define lname libKF5KCMUtils5
|
2015-05-03 21:51:27 +02:00
|
|
|
%define _tar_path 5.10
|
2014-02-07 22:42:01 +01:00
|
|
|
Name: kcmutils
|
2015-05-03 21:51:27 +02:00
|
|
|
Version: 5.10.0
|
2014-02-07 22:42:01 +01:00
|
|
|
Release: 0
|
2014-07-11 11:57:20 +02:00
|
|
|
%define kf5_version %{version}
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
2015-04-10 18:29:13 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRequires: fdupes
|
2015-04-10 18:29:13 +02:00
|
|
|
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kdeclarative-devel >= %{_tar_path}
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRequires: kf5-filesystem
|
2015-04-10 18:29:13 +02:00
|
|
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kitemviews-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kpackage-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kservice-devel >= %{_tar_path}
|
|
|
|
BuildRequires: kxmlgui-devel >= %{_tar_path}
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
2015-04-05 13:50:09 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
|
|
|
Summary: Provides various classes to work with KCModules
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
2015-02-11 20:51:36 +01:00
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2014-06-03 22:11:56 +02:00
|
|
|
Source1: baselibs.conf
|
2015-04-13 03:14:46 +02:00
|
|
|
# PATCH-FIX-OPENSUSE kcmutils-use-susehelp.patch -- Use susehelp wrapper, instead of khelpcenter command (we use khelpcenter5)
|
2015-04-13 03:13:11 +02:00
|
|
|
Patch0: kcmutils-use-susehelp.patch
|
2014-02-07 22:42:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
KCMUtils provides various classes to work with KCModules. KCModules can be
|
|
|
|
created with the KConfigWidgets framework.
|
|
|
|
|
2014-03-02 00:17:11 +01:00
|
|
|
%package -n %lname
|
|
|
|
Summary: Provides various classes to work with KCModules
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Obsoletes: libKF5KCMUtils4
|
2015-04-10 18:29:13 +02:00
|
|
|
%if %{with lang}
|
2014-06-01 21:50:08 +02:00
|
|
|
Recommends: %lname-lang = %{version}
|
2015-04-10 18:29:13 +02:00
|
|
|
%endif
|
2014-03-02 00:17:11 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
KCMUtils provides various classes to work with KCModules. KCModules can be
|
|
|
|
created with the KConfigWidgets framework.
|
|
|
|
|
2014-02-07 22:42:01 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Provides various classes to work with KCModules: Build Environment
|
|
|
|
Group: Development/Libraries/KDE
|
2014-03-02 00:17:11 +01:00
|
|
|
Requires: %lname = %{version}
|
2014-02-07 22:42:01 +01:00
|
|
|
Requires: extra-cmake-modules
|
2015-04-10 18:29:13 +02:00
|
|
|
Requires: kconfigwidgets-devel >= %{_tar_path}
|
|
|
|
Requires: kservice-devel >= %{_tar_path}
|
2014-02-07 22:42:01 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
KCMUtils provides various classes to work with KCModules. KCModules can be
|
|
|
|
created with the KConfigWidgets framework. Development files.
|
|
|
|
|
2014-06-01 21:50:08 +02:00
|
|
|
%lang_package -n %lname
|
2014-02-07 22:42:01 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-04-13 03:13:11 +02:00
|
|
|
%patch0 -p1
|
2014-02-07 22:42:01 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2015-04-10 18:49:11 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-02-07 22:42:01 +01:00
|
|
|
|
2015-04-10 18:29:13 +02:00
|
|
|
%if %{with lang}
|
2015-04-05 13:50:09 +02:00
|
|
|
%find_lang %{name}5
|
2015-04-10 18:29:13 +02:00
|
|
|
%endif
|
2014-06-01 21:50:08 +02:00
|
|
|
|
2014-03-02 00:17:11 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2014-02-07 22:42:01 +01:00
|
|
|
|
2014-03-02 00:17:11 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2014-02-07 22:42:01 +01:00
|
|
|
|
2015-04-10 18:29:13 +02:00
|
|
|
%if %{with lang}
|
2014-06-01 21:50:08 +02:00
|
|
|
%files -n %lname-lang -f %{name}5.lang
|
2015-04-10 18:29:13 +02:00
|
|
|
%endif
|
2014-06-01 21:50:08 +02:00
|
|
|
|
2014-03-02 00:17:11 +01:00
|
|
|
%files -n %lname
|
2014-02-07 22:42:01 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_libdir}/libKF5KCMUtils.so.*
|
|
|
|
%dir %{_kf5_servicetypesdir}
|
|
|
|
%{_kf5_servicetypesdir}/kcmodule.desktop
|
|
|
|
%{_kf5_servicetypesdir}/kcmoduleinit.desktop
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kf5_libdir}/libKF5KCMUtils.so
|
|
|
|
%{_kf5_libdir}/cmake/KF5KCMUtils/
|
|
|
|
%{_kf5_includedir}/*.h
|
|
|
|
%dir %{_kf5_includedir}/*/
|
|
|
|
%{_kf5_includedir}/*/
|
|
|
|
%{_kf5_mkspecsdir}/qt_KCMUtils.pri
|
|
|
|
|
|
|
|
%changelog
|