2013-10-01 08:14:19 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqt5-qtsensors
|
|
|
|
#
|
2021-01-22 16:04:59 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-10-01 08:14:19 +02: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.
|
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-01 08:14:19 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-22 16:04:59 +01:00
|
|
|
# Internal QML imports of examples
|
|
|
|
%global __requires_exclude qmlimport\\((Explorer|Grue).*
|
|
|
|
|
2021-06-24 14:00:35 +02:00
|
|
|
%define qt5_snapshot 1
|
2013-10-01 08:14:19 +02:00
|
|
|
%define libname libQt5Sensors5
|
2019-06-28 16:29:33 +02:00
|
|
|
%define base_name libqt5
|
2024-05-29 14:05:46 +02:00
|
|
|
%define real_version 5.15.14
|
|
|
|
%define so_version 5.15.14
|
2021-06-24 14:00:35 +02:00
|
|
|
%define tar_version qtsensors-everywhere-src-%{version}
|
2013-10-01 08:14:19 +02:00
|
|
|
Name: libqt5-qtsensors
|
2024-05-29 14:05:46 +02:00
|
|
|
Version: 5.15.14+kde0
|
2013-10-01 08:14:19 +02:00
|
|
|
Release: 0
|
2017-09-12 19:52:29 +02:00
|
|
|
Summary: Qt 5 Sensors library
|
2019-12-17 09:53:16 +01:00
|
|
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
2013-10-01 08:14:19 +02:00
|
|
|
Group: Development/Libraries/X11
|
2019-12-17 09:53:16 +01:00
|
|
|
URL: https://www.qt.io
|
2021-06-24 14:00:35 +02:00
|
|
|
Source: %{tar_version}.tar.xz
|
2014-06-04 18:38:36 +02:00
|
|
|
Source1: baselibs.conf
|
2014-02-18 16:18:17 +01:00
|
|
|
BuildRequires: fdupes
|
2021-06-24 14:00:35 +02:00
|
|
|
BuildRequires: libQt5Core-private-headers-devel >= %{real_version}
|
2019-06-28 16:29:33 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2021-06-24 14:00:35 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= %{real_version}
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= %{real_version}
|
|
|
|
BuildRequires: pkgconfig(Qt5Qml) >= %{real_version}
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick) >= %{real_version}
|
2019-06-28 16:29:33 +02:00
|
|
|
%if %{qt5_snapshot}
|
2014-02-18 16:18:17 +01:00
|
|
|
#to create the forwarding headers
|
|
|
|
BuildRequires: perl
|
|
|
|
%endif
|
2013-10-01 08:14:19 +02:00
|
|
|
|
|
|
|
%description
|
2017-09-12 19:52:29 +02:00
|
|
|
The Qt Sensors API provides access to sensor hardware via QML and C++
|
|
|
|
interfaces. The Qt Sensors API also provides a motion gesture
|
|
|
|
recognition API for devices.
|
2013-10-01 08:14:19 +02:00
|
|
|
|
|
|
|
%prep
|
2021-06-24 14:00:35 +02:00
|
|
|
%autosetup -p1 -n %{tar_version}
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%package -n %{libname}
|
2017-09-12 19:52:29 +02:00
|
|
|
Summary: Qt 5 Sensors library
|
2021-01-22 16:04:59 +01:00
|
|
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
2017-09-12 19:52:29 +02:00
|
|
|
Group: System/Libraries
|
2019-06-28 16:29:33 +02:00
|
|
|
%requires_ge libQt5Core5
|
2021-07-08 13:13:14 +02:00
|
|
|
# Make sure that on "non-container" systems the daemon for the iio-sensor-proxy
|
|
|
|
# plugin is installed.
|
|
|
|
Requires: (iio-sensor-proxy if systemd)
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%description -n %{libname}
|
2017-09-12 19:52:29 +02:00
|
|
|
The Qt Sensors API provides access to sensor hardware via QML and C++
|
|
|
|
interfaces. The Qt Sensors API also provides a motion gesture
|
|
|
|
recognition API for devices.
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%package -n %{libname}-imports
|
2017-09-12 19:52:29 +02:00
|
|
|
Summary: QML imports for the Qt 5 Sensors library
|
2021-01-22 16:04:59 +01:00
|
|
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
2017-09-12 19:52:29 +02:00
|
|
|
Group: System/Libraries
|
2019-06-28 16:29:33 +02:00
|
|
|
%requires_ge libQtQuick5
|
2019-12-17 09:53:16 +01:00
|
|
|
Supplements: (%{libname} and libQtQuick5)
|
2015-03-01 15:28:04 +01:00
|
|
|
# imports splited with 5.4.1
|
2019-06-28 16:29:33 +02:00
|
|
|
Conflicts: %{libname} < 5.4.1
|
2015-03-01 15:28:04 +01:00
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%description -n %{libname}-imports
|
2015-03-01 15:28:04 +01:00
|
|
|
Qt is a set of libraries for developing applications.
|
|
|
|
|
|
|
|
This package contains base tools, like string, xml, and network
|
|
|
|
handling.
|
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%package devel
|
2017-09-12 19:52:29 +02:00
|
|
|
Summary: Development files for the Qt 5 Sensors library
|
2021-01-22 16:04:59 +01:00
|
|
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
2013-10-01 08:14:19 +02:00
|
|
|
Group: Development/Libraries/X11
|
2019-06-28 16:29:33 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2013-12-19 12:44:04 +01:00
|
|
|
Provides: libQt5Sensors-devel = %{version}
|
2014-02-18 16:18:17 +01:00
|
|
|
Obsoletes: libQt5Sensors-devel < %{version}
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%description devel
|
2017-09-12 19:52:29 +02:00
|
|
|
The Qt Sensors API provides access to sensor hardware via QML and C++
|
|
|
|
interfaces.
|
|
|
|
|
|
|
|
This subpackage contains the header files for developing
|
|
|
|
applications that want to make use of libQt5Sensors5.
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%package private-headers-devel
|
2017-09-12 19:52:29 +02:00
|
|
|
Summary: Non-ABI stable experimental API for the Qt5 Sensors library
|
2021-01-22 16:04:59 +01:00
|
|
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
|
2013-10-01 08:14:19 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-12-19 12:44:04 +01:00
|
|
|
Requires: %{name}-devel = %{version}
|
2021-06-24 14:00:35 +02:00
|
|
|
Requires: libQt5Core-private-headers-devel >= %{real_version}
|
2013-12-19 12:44:04 +01:00
|
|
|
Provides: libQt5Sensors-private-headers-devel = %{version}
|
2014-02-18 16:18:17 +01:00
|
|
|
Obsoletes: libQt5Sensors-private-headers-devel < %{version}
|
2019-06-28 16:29:33 +02:00
|
|
|
BuildArch: noarch
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%description private-headers-devel
|
2013-10-01 08:14:19 +02:00
|
|
|
This package provides private headers of libqt5-qtsensors that are normally
|
|
|
|
not used by application development and that do not have any ABI or
|
|
|
|
API guarantees. The packages that build against these have to require
|
|
|
|
the exact Qt version.
|
|
|
|
|
2014-03-22 09:08:24 +01:00
|
|
|
%package examples
|
|
|
|
Summary: Qt5 sensors examples
|
2019-06-28 16:29:33 +02:00
|
|
|
License: BSD-3-Clause
|
2017-09-12 19:52:29 +02:00
|
|
|
Group: Documentation/Other
|
2014-03-22 09:08:24 +01:00
|
|
|
Recommends: %{name}-devel
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
Examples for libqt5-qtsensors module.
|
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2013-10-01 08:14:19 +02:00
|
|
|
|
|
|
|
%build
|
2019-06-28 16:29:33 +02:00
|
|
|
%if %{qt5_snapshot}
|
2014-02-18 16:18:17 +01:00
|
|
|
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
|
|
|
|
mkdir .git
|
|
|
|
%endif
|
2013-11-04 09:17:05 +01:00
|
|
|
%qmake5
|
|
|
|
%make_jobs
|
2013-10-01 08:14:19 +02:00
|
|
|
|
|
|
|
%install
|
2013-11-04 09:17:05 +01:00
|
|
|
%qmake5_install
|
2013-10-01 08:14:19 +02:00
|
|
|
|
2014-02-18 16:18:17 +01:00
|
|
|
# kill .la files
|
|
|
|
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la
|
|
|
|
|
2014-09-08 21:28:28 +02:00
|
|
|
%fdupes -s %{buildroot}%{_libqt5_examplesdir}
|
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%files -n %{libname}
|
2013-10-01 08:14:19 +02:00
|
|
|
%defattr(-,root,root,755)
|
2019-06-28 16:29:33 +02:00
|
|
|
%license LICENSE.*
|
2013-10-01 08:14:19 +02:00
|
|
|
%{_libqt5_libdir}/libQt5Sensors.so.*
|
|
|
|
%{_libqt5_plugindir}/sensors
|
|
|
|
%{_libqt5_plugindir}/sensorgestures
|
|
|
|
|
2019-06-28 16:29:33 +02:00
|
|
|
%files -n %{libname}-imports
|
2015-03-01 15:28:04 +01:00
|
|
|
%defattr(-,root,root,755)
|
2019-06-28 16:29:33 +02:00
|
|
|
%license LICENSE.*
|
2015-03-01 15:28:04 +01:00
|
|
|
%{_libqt5_archdatadir}/qml/QtSensors/
|
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%files private-headers-devel
|
2013-10-01 08:14:19 +02:00
|
|
|
%defattr(-,root,root,755)
|
2019-06-28 16:29:33 +02:00
|
|
|
%license LICENSE.*
|
2013-10-01 08:14:19 +02:00
|
|
|
%{_libqt5_includedir}/QtSensors/%{so_version}
|
|
|
|
|
2013-12-19 12:44:04 +01:00
|
|
|
%files devel
|
2013-10-01 08:14:19 +02:00
|
|
|
%defattr(-,root,root,755)
|
2019-06-28 16:29:33 +02:00
|
|
|
%license LICENSE.*
|
2013-10-01 08:14:19 +02:00
|
|
|
%exclude %{_libqt5_includedir}/QtSensors/%{so_version}
|
|
|
|
%{_libqt5_includedir}/QtSensors
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5Sensors
|
|
|
|
%{_libqt5_libdir}/libQt5Sensors.prl
|
|
|
|
%{_libqt5_libdir}/libQt5Sensors.so
|
|
|
|
%{_libqt5_libdir}/pkgconfig/Qt5Sensors.pc
|
2013-12-02 09:50:35 +01:00
|
|
|
%{_libqt5_libdir}/qt5/mkspecs/modules/qt_lib_*.pri
|
2013-11-04 09:17:05 +01:00
|
|
|
|
2014-03-22 09:08:24 +01:00
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%{_libqt5_examplesdir}/
|
|
|
|
|
2013-11-04 09:17:05 +01:00
|
|
|
%changelog
|