2014-09-12 10:03:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqt5-qtwayland
|
|
|
|
#
|
2020-05-27 10:38:55 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-09-12 10:03:09 +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-12-16 10:42:29 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-09-12 10:03:09 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-06-13 16:04:42 +02:00
|
|
|
%define qt5_snapshot 0
|
2016-10-01 23:50:05 +02:00
|
|
|
%define libname libQt5WaylandCompositor5
|
2014-09-12 10:03:09 +02:00
|
|
|
%define base_name libqt5
|
2020-09-11 08:30:05 +02:00
|
|
|
%define real_version 5.15.1
|
|
|
|
%define so_version 5.15.1
|
|
|
|
%define tar_version qtwayland-everywhere-src-5.15.1
|
2014-09-12 10:03:09 +02:00
|
|
|
Name: libqt5-qtwayland
|
2020-09-11 08:30:05 +02:00
|
|
|
Version: 5.15.1
|
2014-09-12 10:03:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Qt 5 Wayland Addon
|
2019-12-16 10:42:29 +01:00
|
|
|
# The wayland compositor files are GPL-3.0-or-later
|
2019-12-22 23:54:14 +01:00
|
|
|
License: GPL-3.0-or-later AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-or-later)
|
2014-09-12 10:03:09 +02:00
|
|
|
Group: Development/Libraries/X11
|
2019-12-16 10:42:29 +01:00
|
|
|
URL: https://www.qt.io
|
2020-05-27 10:38:55 +02:00
|
|
|
Source: https://download.qt.io/official_releases/qt/5.15/%{real_version}/submodules/%{tar_version}.tar.xz
|
2014-09-12 10:03:09 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: fdupes
|
2016-06-25 01:55:11 +02:00
|
|
|
BuildRequires: libqt5-qtbase-private-headers-devel >= %{version}
|
|
|
|
BuildRequires: libqt5-qtdeclarative-private-headers-devel >= %{version}
|
2019-12-16 10:42:29 +01:00
|
|
|
BuildRequires: pkgconfig
|
2014-09-12 10:03:09 +02:00
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(wayland-egl)
|
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xkbcommon) >= 0.2.0
|
|
|
|
Conflicts: qtwayland
|
|
|
|
%if %{qt5_snapshot}
|
|
|
|
#to create the forwarding headers
|
|
|
|
BuildRequires: perl
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qt is a set of libraries for developing applications.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Qt 5 Wayland Addon
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libQt5WaylandClient5 = %{version}
|
2016-10-01 23:50:05 +02:00
|
|
|
Requires: libQt5WaylandCompositor5 = %{version}
|
2014-09-12 10:03:09 +02:00
|
|
|
Conflicts: qtwayland-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development package to build Qt-based compositors.
|
|
|
|
|
|
|
|
%package private-headers-devel
|
|
|
|
Summary: Qt 5 Wayland Addon Non-ABI stable experimental API files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
Requires: libqt5-qtbase-private-headers-devel
|
2019-12-16 10:42:29 +01:00
|
|
|
BuildArch: noarch
|
2014-09-12 10:03:09 +02:00
|
|
|
|
|
|
|
%description private-headers-devel
|
|
|
|
This package provides private headers of libqt5-qtwayland 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.
|
|
|
|
|
2016-10-01 23:50:05 +02:00
|
|
|
%package -n libQt5WaylandCompositor5
|
2014-09-12 10:03:09 +02:00
|
|
|
Summary: Qt 5 Wayland Addon
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Conflicts: qtwayland
|
|
|
|
|
2016-10-01 23:50:05 +02:00
|
|
|
%description -n libQt5WaylandCompositor5
|
2014-09-12 10:03:09 +02:00
|
|
|
Qt is a set of libraries for developing applications.
|
|
|
|
|
|
|
|
%package -n libQt5WaylandClient5
|
|
|
|
Summary: Qt 5 Wayland Addon
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Conflicts: qtwayland
|
|
|
|
|
|
|
|
%description -n libQt5WaylandClient5
|
|
|
|
Qt is a set of libraries for developing applications.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Qt5 wayland examples
|
|
|
|
Group: Development/Libraries/X11
|
2019-12-16 10:42:29 +01:00
|
|
|
License: BSD-3-Clause
|
2014-09-12 10:03:09 +02:00
|
|
|
Recommends: %{name}-devel
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
Examples for libqt5-qtwayland module.
|
|
|
|
|
|
|
|
%prep
|
2019-06-28 16:31:01 +02:00
|
|
|
%autosetup -p1 -n %{tar_version}
|
2014-09-12 10:03:09 +02:00
|
|
|
|
2016-10-01 23:50:05 +02:00
|
|
|
%post -n libQt5WaylandCompositor5 -p /sbin/ldconfig
|
|
|
|
%postun -n libQt5WaylandCompositor5 -p /sbin/ldconfig
|
2014-09-12 10:03:09 +02:00
|
|
|
%post -n libQt5WaylandClient5 -p /sbin/ldconfig
|
|
|
|
%postun -n libQt5WaylandClient5 -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{qt5_snapshot}
|
|
|
|
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
|
|
|
|
mkdir .git
|
|
|
|
%endif
|
2018-06-02 11:51:57 +02:00
|
|
|
%{_libqt5_qmake} \
|
|
|
|
CONFIG+=wayland-compositor
|
|
|
|
|
2019-12-16 10:42:29 +01:00
|
|
|
%make_jobs
|
2014-09-12 10:03:09 +02:00
|
|
|
|
|
|
|
%install
|
2019-12-16 10:42:29 +01:00
|
|
|
%qmake5_install
|
2014-09-12 10:03:09 +02:00
|
|
|
|
|
|
|
find %{buildroot}%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;
|
|
|
|
find %{buildroot}%{_libdir}/pkgconfig -type f -name '*pc' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;
|
|
|
|
# kill .la files
|
|
|
|
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la
|
|
|
|
|
|
|
|
fdupes -s %{buildroot}
|
|
|
|
|
|
|
|
%files
|
2019-12-12 21:39:55 +01:00
|
|
|
%license LICENSE.*
|
2014-09-12 10:03:09 +02:00
|
|
|
%{_libqt5_bindir}/qtwaylandscanner
|
|
|
|
%{_libqt5_plugindir}/
|
2016-10-01 23:50:05 +02:00
|
|
|
%{_libqt5_archdatadir}/qml/QtWayland/
|
2014-09-12 10:03:09 +02:00
|
|
|
|
2016-10-01 23:50:05 +02:00
|
|
|
%files -n libQt5WaylandCompositor5
|
2019-12-16 10:42:29 +01:00
|
|
|
%license LICENSE.*
|
2016-10-01 23:50:05 +02:00
|
|
|
%{_libqt5_libdir}/libQt5WaylandCompositor.so.*
|
2014-09-12 10:03:09 +02:00
|
|
|
|
|
|
|
%files -n libQt5WaylandClient5
|
2019-12-12 21:39:55 +01:00
|
|
|
%license LICENSE.*
|
2014-09-12 10:03:09 +02:00
|
|
|
%{_libqt5_libdir}/libQt5WaylandClient.so.*
|
|
|
|
|
|
|
|
%files devel
|
2019-12-12 21:39:55 +01:00
|
|
|
%license LICENSE.*
|
2014-09-12 10:03:09 +02:00
|
|
|
%{_libqt5_libdir}/*.prl
|
|
|
|
%{_libqt5_libdir}/*.so
|
|
|
|
%{_libqt5_libdir}/pkgconfig/*
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5*/
|
|
|
|
%{_libqt5_archdatadir}/mkspecs/modules/*.pr?
|
|
|
|
%exclude %{_libqt5_includedir}/Qt*/%{so_version}
|
|
|
|
%{_libqt5_includedir}/Qt*
|
|
|
|
|
|
|
|
%files private-headers-devel
|
2019-12-12 21:39:55 +01:00
|
|
|
%license LICENSE.*
|
2014-09-12 10:03:09 +02:00
|
|
|
%{_libqt5_includedir}/Qt*/%{so_version}
|
|
|
|
|
|
|
|
%files examples
|
2019-12-12 21:39:55 +01:00
|
|
|
%license LICENSE.*
|
2014-09-12 10:03:09 +02:00
|
|
|
%{_libqt5_examplesdir}/
|
|
|
|
|
|
|
|
%changelog
|