diff options
-rw-r--r-- | packaging/qt5-qtwayland.spec (renamed from packaging/qtwayland.spec) | 105 |
1 files changed, 43 insertions, 62 deletions
diff --git a/packaging/qtwayland.spec b/packaging/qt5-qtwayland.spec index 1aa690fe..221f484e 100644 --- a/packaging/qtwayland.spec +++ b/packaging/qt5-qtwayland.spec @@ -1,35 +1,50 @@ -%define _qtmodule_snapshot_version 0.0-git855.e5601d283c -Name: qt5-qtwayland-wayland_egl -Summary: Qt Wayland compositor, wayland_egl variant -Version: 0.0git855.e5601d283c -Release: 1%{?dist} -Group: Qt/Qt -License: LGPLv2.1 with exception or GPLv3 -URL: http://qt.nokia.com +# The MIT License (MIT) +# +# Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +# This file is based on qtwayland.spec from Mer project +# http://merproject.org + +Name: qt5-qtwayland +Summary: Qt Wayland compositor +Version: 5.2.0 +Release: 0 +Group: Base/Libraries +License: LGPL-2.1+ or GPL-3.0 +URL: http://qt.digia.com Source0: %{name}-%{version}.tar.bz2 -Source100: precheckin.sh BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5PlatformSupport) BuildRequires: pkgconfig(Qt5Qml) -BuildRequires: pkgconfig(Qt5Declarative) BuildRequires: pkgconfig(Qt5Quick) -BuildRequires: pkgconfig(Qt5V8) BuildRequires: pkgconfig(Qt5DBus) - BuildRequires: pkgconfig(wayland-client) -%if "%{name}" == "qt5-qtwayland-wayland_egl" BuildRequires: pkgconfig(wayland-egl) -%endif - -BuildRequires: libxkbcommon-devel BuildRequires: pkgconfig(glib-2.0) BuildRequires: libffi-devel BuildRequires: fdupes - -Requires: xkeyboard-config +BuildRequires: pkgconfig(xkbcommon) %description Qt is a cross-platform application and UI framework. Using Qt, you can @@ -40,7 +55,7 @@ This package contains the Qt wayland compositor for wayland_egl %package devel Summary: Qt Wayland compositor - development files -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} %description devel @@ -50,17 +65,6 @@ mobile and embedded systems without rewriting the source code. . This package contains the Qt wayland compositor development files for wayland_egl -%package examples -Summary: Qt Wayland compositor - examples -Group: Qt/Qt -Requires: %{name} = %{version}-%{release} - -%description examples -Qt is a cross-platform application and UI framework. Using Qt, you can -write web-enabled applications once and deploy them across desktop, -mobile and embedded systems without rewriting the source code. -. -This package contains the Qt wayland compositor examples for wayland_egl #### Build section @@ -71,53 +75,32 @@ This package contains the Qt wayland compositor examples for wayland_egl export QTDIR=/usr/share/qt5 export QT_WAYLAND_GL_CONFIG=wayland_egl touch .git -qmake -qt=5 "QT_BUILD_PARTS += examples" "CONFIG += wayland-compositor" +qmake -qt=5 "CONFIG += wayland-compositor" make %{?_smp_mflags} %install rm -rf %{buildroot} %qmake_install -# Fix wrong path in pkgconfig files -find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \ --exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \; -# Fix wrong path in prl files -find %{buildroot}%{_libdir} -type f -name '*.prl' \ --exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \; - -# We don't need qt5/Qt/ -rm -rf %{buildroot}/%{_includedir}/qt5/Qt - -%fdupes %{buildroot}/%{_includedir} +%fdupes %{buildroot}%{_includedir} #### Pre/Post section -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig +%postun +/sbin/ldconfig #### File section %files %defattr(-,root,root,-) -%{_libdir}/libQt5Compositor.so.5 -%{_libdir}/libQt5Compositor.so.5.* - -%if "%{name}" == "qt5-qtwayland-wayland_egl" +%{_libdir}/libQt5Compositor.so.5* %{_libdir}/qt5/plugins/platforms/libqwayland-egl.so %{_libdir}/qt5/plugins/waylandcompositors/libwayland-egl.so -%endif - -%if "%{name}" == "qt5-qtwayland-xcomposite_egl" -%{_libdir}/qt5/plugins/platforms/libqwayland-xcomposite-egl.so -%{_libdir}/qt5/plugins/waylandcompositors/libxcomposite-egl.so -%endif - -%if "%{name}" == "qt5-qtwayland-nogl" -%{_libdir}/qt5/plugins/platforms/libqwayland-nogl.so -%endif %files devel %defattr(-,root,root,-) @@ -128,10 +111,8 @@ rm -rf %{buildroot}/%{_includedir}/qt5/Qt %{_libdir}/pkgconfig/Qt5Compositor.pc %{_libdir}/cmake/Qt5Compositor/* %{_datadir}/qt5/mkspecs/modules/qt_lib_compositor.pri +%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor_private.pri %{_libdir}/qt5/bin/qtwaylandscanner - -%files examples -%defattr(-,root,root,-) -%{_libdir}/qt5/examples/qtwayland/ +%{_libdir}/cmake #### No changelog section, separate $pkg.changes contains the history |