From 248ea941751a6e0d01a3c43851948f14a2e2214bb8e21de7baf51f8c809433fa Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 12 Sep 2014 08:03:09 +0000 Subject: [PATCH] Accepting request 248253 from KDE:Qt5 Activate libqt5-qtwayland package. This is a part of the 5.4 release, but can be built and used with older Qt releases (such as 5.3.2 which we have in Factory) OBS-URL: https://build.opensuse.org/request/show/248253 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtwayland?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + baselibs.conf | 7 + libqt5-qtwayland.changes | 5 + libqt5-qtwayland.spec | 172 ++++++++++++++++++++ qtwayland-opensource-src-5.4.0-alpha.tar.xz | 3 + 6 files changed, 211 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libqt5-qtwayland.changes create mode 100644 libqt5-qtwayland.spec create mode 100644 qtwayland-opensource-src-5.4.0-alpha.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..4e31758 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,7 @@ +libqt5-qtwayland +libQt5Compositor5 +libQt5WaylandClient5 +libqt5-qtwayland-devel + requires "libqt5-qtwayland- = " + requires "libQt5Compositor5- = " + requires "libQt5WaylandClient5- = " \ No newline at end of file diff --git a/libqt5-qtwayland.changes b/libqt5-qtwayland.changes new file mode 100644 index 0000000..91ad978 --- /dev/null +++ b/libqt5-qtwayland.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Sep 8 20:15:30 UTC 2014 - hrvoje.senjan@gmail.com + +- Update to 5.4.0 alpha: + * Part of the official Qt release diff --git a/libqt5-qtwayland.spec b/libqt5-qtwayland.spec new file mode 100644 index 0000000..111bec1 --- /dev/null +++ b/libqt5-qtwayland.spec @@ -0,0 +1,172 @@ +# +# spec file for package libqt5-qtwayland +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%define qt5_snapshot 0 +%define libname libQt5Compositor5 +%define base_name libqt5 +%define real_version 5.4.0-alpha +%define so_version 5.4.0 +%define tar_version qtwayland-opensource-src-%{real_version} +Name: libqt5-qtwayland +Version: 5.4.0~alpha +Release: 0 +Summary: Qt 5 Wayland Addon +License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0 +Group: Development/Libraries/X11 +Url: http://qt.digia.com +Source: %{tar_version}.tar.xz +Source1: baselibs.conf +BuildRequires: fdupes +BuildRequires: libqt5-qtbase-private-headers-devel >= 5.2.0 +BuildRequires: libqt5-qtdeclarative-private-headers-devel >= 5.2.0 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +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: libQt5Compositor5 = %{version} +Requires: libQt5WaylandClient5 = %{version} +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++ +BuildArch: noarch +Requires: %{name}-devel = %{version} +Requires: libqt5-qtbase-private-headers-devel + +%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. + +%package -n libQt5Compositor5 +Summary: Qt 5 Wayland Addon +Group: Development/Libraries/C and C++ +Conflicts: qtwayland + +%description -n libQt5Compositor5 +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 +Recommends: %{name}-devel + +%description examples +Examples for libqt5-qtwayland module. + +%prep +%setup -q -n qtwayland-opensource-src-%{real_version} + +%post -n libQt5Compositor5 -p /sbin/ldconfig + +%postun -n libQt5Compositor5 -p /sbin/ldconfig + +%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 +%{_libqt5_qmake} CONFIG+=wayland-compositor +%{make_jobs} + +%install +%{qmake5_install} + +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 +%defattr(-,root,root,-) +%doc *.txt LICENSE.* +%{_libqt5_bindir}/qtwaylandscanner +%{_libqt5_plugindir}/ + +%files -n libQt5Compositor5 +%defattr(-,root,root,-) +%doc *.txt LICENSE.* +%{_libqt5_libdir}/libQt5Compositor.so.* + +%files -n libQt5WaylandClient5 +%defattr(-,root,root,-) +%doc *.txt LICENSE.* +%{_libqt5_libdir}/libQt5WaylandClient.so.* + +%files devel +%defattr(-,root,root,-) +%doc *.txt LICENSE.* +%{_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 +%defattr(-,root,root,755) +%doc *.txt LICENSE.* +%{_libqt5_includedir}/Qt*/%{so_version} + +%files examples +%defattr(-,root,root,755) +%doc *.txt LICENSE.* +%{_libqt5_examplesdir}/ + +%changelog diff --git a/qtwayland-opensource-src-5.4.0-alpha.tar.xz b/qtwayland-opensource-src-5.4.0-alpha.tar.xz new file mode 100644 index 0000000..6b2e212 --- /dev/null +++ b/qtwayland-opensource-src-5.4.0-alpha.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93e2c4036b0bd3c87f7905f4d958c37bd9ee17a7a87d5a6b91cf2da847b453c6 +size 244672