2014-02-07 22:42:21 +01:00
|
|
|
#
|
|
|
|
# spec file for package kdeclarative
|
|
|
|
#
|
2018-01-17 16:06:46 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 22:42:21 +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:18 +02:00
|
|
|
%bcond_without lang
|
2014-03-01 19:33:45 +01:00
|
|
|
%define lname libKF5Declarative5
|
2018-01-17 16:06:46 +01:00
|
|
|
%define _tar_path 5.42
|
2017-09-13 14:19:42 +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:21 +01:00
|
|
|
Name: kdeclarative
|
2018-01-17 16:06:46 +01:00
|
|
|
Version: 5.42.0
|
2014-02-07 22:42:21 +01:00
|
|
|
Release: 0
|
2014-07-11 11:57:32 +02:00
|
|
|
%define kf5_version %{version}
|
2017-06-17 12:21:42 +02:00
|
|
|
Summary: Integration of QML and KDE workspaces
|
2017-09-18 15:44:39 +02:00
|
|
|
# Note for legal: GPL-2.0+ files relicensed upstream with permission from the authors
|
|
|
|
# See commits g7482bef08, g62b8e46 and gaf91457 in the upstream KDE repository.
|
|
|
|
# They will be part of the next release (5.39)
|
2017-06-17 12:21:42 +02:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: baselibs.conf
|
2017-01-09 00:39:41 +01:00
|
|
|
BuildRequires: cmake >= 3.0
|
2017-09-13 14:19:42 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
2014-02-07 22:42:21 +01:00
|
|
|
BuildRequires: fdupes
|
2017-09-13 14:19:42 +02:00
|
|
|
BuildRequires: kconfig-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kcoreaddons-devel >= %{_kf5_bugfix_version}
|
2014-02-07 22:42:21 +01:00
|
|
|
BuildRequires: kf5-filesystem
|
2017-09-13 14:19:42 +02:00
|
|
|
BuildRequires: kglobalaccel-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kguiaddons-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: ki18n-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kiconthemes-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kio-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kpackage-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kwidgetsaddons-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kwindowsystem-devel >= %{_kf5_bugfix_version}
|
2015-02-08 20:10:59 +01:00
|
|
|
BuildRequires: libepoxy-devel
|
2017-02-09 10:25:48 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Gui) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Qml) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Quick) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.6.0
|
2014-02-07 22:42:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-02-11 00:18:52 +01:00
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
2014-02-07 22:42:21 +01:00
|
|
|
|
|
|
|
%package -n %lname
|
2014-02-11 00:18:52 +01:00
|
|
|
Summary: Integration of QML and KDE workspaces
|
2016-02-26 19:57:25 +01:00
|
|
|
# QQmlPropertyMap leaks private but exported QObjectPrivate symbol
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-46433 and https://bugs.launchpad.net/bugs/1426335
|
2017-03-19 15:03:40 +01:00
|
|
|
Group: System/GUI/KDE
|
2016-02-26 19:57:25 +01:00
|
|
|
%requires_eq libQt5Core5
|
2015-04-10 18:28:18 +02:00
|
|
|
%if %{with lang}
|
2014-06-01 20:48:56 +02:00
|
|
|
Recommends: %lname-lang = %{version}
|
2015-04-10 18:28:18 +02:00
|
|
|
%endif
|
2014-02-07 22:42:21 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
2014-02-11 00:18:52 +01:00
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
2014-02-07 22:42:21 +01:00
|
|
|
|
2014-11-03 00:21:16 +01:00
|
|
|
%package -n libKF5QuickAddons5
|
|
|
|
Summary: Integration of QML and KDE workspaces
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
|
|
|
|
%description -n libKF5QuickAddons5
|
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
|
|
|
|
2015-12-11 00:04:09 +01:00
|
|
|
%package -n libKF5CalendarEvents5
|
|
|
|
Summary: Integration of QML and KDE workspaces
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
|
|
|
|
%description -n libKF5CalendarEvents5
|
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
|
|
|
|
2014-11-03 00:21:16 +01:00
|
|
|
%package components
|
|
|
|
Summary: KDeclarative QML components
|
|
|
|
Group: System/GUI/KDE
|
2018-01-17 16:06:46 +01:00
|
|
|
Requires: kirigami2 >= %{_kf5_bugfix_version}
|
2014-11-03 00:21:16 +01:00
|
|
|
|
|
|
|
%description components
|
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
|
|
|
|
2015-03-07 19:02:08 +01:00
|
|
|
%package tools
|
|
|
|
Summary: KDeclarative tools
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
|
|
|
|
2014-02-07 22:42:21 +01:00
|
|
|
%package devel
|
2014-02-11 00:18:52 +01:00
|
|
|
Summary: Integration of QML and KDE workspaces: Build Environment
|
2014-02-07 22:42:21 +01:00
|
|
|
Group: Development/Libraries/KDE
|
2014-02-08 03:32:12 +01:00
|
|
|
Requires: %lname = %{version}
|
2014-11-03 00:21:16 +01:00
|
|
|
Requires: %{name}-components = %{version}
|
2014-02-07 22:42:21 +01:00
|
|
|
Requires: extra-cmake-modules
|
2017-09-13 14:19:42 +02:00
|
|
|
Requires: kconfig-devel >= %{_kf5_bugfix_version}
|
|
|
|
Requires: kcoreaddons-devel >= %{_kf5_bugfix_version}
|
|
|
|
Requires: kpackage-devel >= %{_kf5_bugfix_version}
|
2015-12-11 00:04:09 +01:00
|
|
|
Requires: libKF5CalendarEvents5 = %{version}
|
2014-11-03 00:21:16 +01:00
|
|
|
Requires: libKF5QuickAddons5 = %{version}
|
2017-02-09 10:25:48 +01:00
|
|
|
Requires: cmake(Qt5Qml) >= 5.6.0
|
2014-02-07 22:42:21 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-02-11 00:18:52 +01:00
|
|
|
KDeclarative provides integration of QML and KDE workspaces.
|
|
|
|
Development files.
|
2014-02-07 22:42:21 +01:00
|
|
|
|
2014-06-01 20:48:56 +02:00
|
|
|
%lang_package -n %lname
|
2014-02-07 22:42:21 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2015-04-10 18:48:22 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-02-07 22:42:21 +01:00
|
|
|
|
2015-04-10 18:28:18 +02:00
|
|
|
%if %{with lang}
|
2015-04-05 17:32:07 +02:00
|
|
|
%find_lang %{name}5
|
2015-04-10 18:28:18 +02:00
|
|
|
%endif
|
2014-06-01 20:48:56 +02:00
|
|
|
|
2014-02-07 22:42:21 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2014-11-03 00:21:16 +01:00
|
|
|
%post -n libKF5QuickAddons5 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libKF5QuickAddons5 -p /sbin/ldconfig
|
|
|
|
|
2015-12-11 00:04:09 +01:00
|
|
|
%post -n libKF5CalendarEvents5 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libKF5CalendarEvents5 -p /sbin/ldconfig
|
|
|
|
|
2015-04-10 18:28:18 +02:00
|
|
|
%if %{with lang}
|
2014-06-01 20:48:56 +02:00
|
|
|
%files -n %lname-lang -f %{name}5.lang
|
2015-04-10 18:28:18 +02:00
|
|
|
%endif
|
2014-06-01 20:48:56 +02:00
|
|
|
|
2014-02-07 22:42:21 +01:00
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_libdir}/libKF5Declarative.so.*
|
2014-11-03 00:21:16 +01:00
|
|
|
|
|
|
|
%files -n libKF5QuickAddons5
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_libdir}/libKF5QuickAddons.so.*
|
|
|
|
|
2015-12-11 00:04:09 +01:00
|
|
|
%files -n libKF5CalendarEvents5
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_libdir}/libKF5CalendarEvents.so.*
|
|
|
|
|
2014-11-03 00:21:16 +01:00
|
|
|
%files components
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
2014-03-29 18:16:04 +01:00
|
|
|
%{_kf5_libdir}/qt5/qml/
|
2014-02-07 22:42:21 +01:00
|
|
|
|
2015-03-07 19:02:08 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING* README*
|
|
|
|
%{_kf5_bindir}/kpackagelauncherqml
|
|
|
|
|
2014-02-07 22:42:21 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kf5_libdir}/libKF5Declarative.so
|
2014-11-03 00:21:16 +01:00
|
|
|
%{_kf5_libdir}/libKF5QuickAddons.so
|
2015-12-11 00:04:09 +01:00
|
|
|
%{_kf5_libdir}/libKF5CalendarEvents.so
|
2014-02-07 22:42:21 +01:00
|
|
|
%{_kf5_libdir}/cmake/KF5Declarative/
|
|
|
|
%{_kf5_includedir}/*.h
|
|
|
|
%dir %{_kf5_includedir}/*/
|
|
|
|
%{_kf5_includedir}/*/
|
|
|
|
%{_kf5_mkspecsdir}/qt_KDeclarative.pri
|
2014-11-03 00:21:16 +01:00
|
|
|
%{_kf5_mkspecsdir}/qt_QuickAddons.pri
|
2014-02-07 22:42:21 +01:00
|
|
|
|
|
|
|
%changelog
|