diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2013-09-08 16:07:29 +0200 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2014-03-13 21:59:09 +0100 |
commit | 7619381b31911579ec9b8a08a353e6feba210f19 (patch) | |
tree | 29a1ff2ad129ad24397ddae31eb90ddac652e116 | |
parent | c5a2ca0bf5a5bebd9eb193b074e6030cc598c6f8 (diff) | |
download | qtwayland-7619381b31911579ec9b8a08a353e6feba210f19.tar.gz qtwayland-7619381b31911579ec9b8a08a353e6feba210f19.tar.bz2 qtwayland-7619381b31911579ec9b8a08a353e6feba210f19.zip |
Added Tizen spec files
-rw-r--r-- | packaging/qt5-qtwayland.spec | 118 | ||||
-rw-r--r-- | packaging/qtwayland.spec | 137 |
2 files changed, 118 insertions, 137 deletions
diff --git a/packaging/qt5-qtwayland.spec b/packaging/qt5-qtwayland.spec new file mode 100644 index 00000000..4f68dd47 --- /dev/null +++ b/packaging/qt5-qtwayland.spec @@ -0,0 +1,118 @@ +# 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 +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5OpenGL) +BuildRequires: pkgconfig(Qt5PlatformSupport) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: libffi-devel +BuildRequires: fdupes +BuildRequires: pkgconfig(xkbcommon) + +%description +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 for wayland_egl + +%package devel +Summary: Qt Wayland compositor - development files +Group: Base/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +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 development files for wayland_egl + + +#### Build section + +%prep +%setup -q -n %{name}-%{version}/qtwayland + +%build +export QTDIR=/usr/share/qt5 +export QT_WAYLAND_GL_CONFIG=wayland_egl +touch .git +qmake -qt=5 + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +%qmake_install + +%fdupes %{buildroot}%{_includedir} + + +#### Pre/Post section + +%post +/sbin/ldconfig +%postun +/sbin/ldconfig + + +#### File section + +%files +%defattr(-,root,root,-) +#%{_libdir}/libQt5Compositor.so.5* +%{_libdir}/qt5/plugins/platforms/libqwayland-egl.so +#%{_libdir}/qt5/plugins/waylandcompositors/libwayland-egl.so + +%files devel +%defattr(-,root,root,-) +#%{_libdir}/libQt5Compositor.so +#%{_includedir}/qt5/* +#%{_libdir}/libQt5Compositor.la +#%{_libdir}/libQt5Compositor.prl +#%{_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 +%{_libdir}/cmake + +#### No changelog section, separate $pkg.changes contains the history diff --git a/packaging/qtwayland.spec b/packaging/qtwayland.spec deleted file mode 100644 index 1aa690fe..00000000 --- a/packaging/qtwayland.spec +++ /dev/null @@ -1,137 +0,0 @@ -%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 -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 - -%description -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 for wayland_egl - -%package devel -Summary: Qt Wayland compositor - development files -Group: Qt/Qt -Requires: %{name} = %{version}-%{release} - -%description devel -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 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 - -%prep -%setup -q -n %{name}-%{version}/qtwayland - -%build -export QTDIR=/usr/share/qt5 -export QT_WAYLAND_GL_CONFIG=wayland_egl -touch .git -qmake -qt=5 "QT_BUILD_PARTS += examples" "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} - - -#### Pre/Post section - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - - -#### File section - -%files -%defattr(-,root,root,-) -%{_libdir}/libQt5Compositor.so.5 -%{_libdir}/libQt5Compositor.so.5.* - -%if "%{name}" == "qt5-qtwayland-wayland_egl" -%{_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,-) -%{_libdir}/libQt5Compositor.so -%{_includedir}/qt5/* -%{_libdir}/libQt5Compositor.la -%{_libdir}/libQt5Compositor.prl -%{_libdir}/pkgconfig/Qt5Compositor.pc -%{_libdir}/cmake/Qt5Compositor/* -%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor.pri -%{_libdir}/qt5/bin/qtwaylandscanner - -%files examples -%defattr(-,root,root,-) -%{_libdir}/qt5/examples/qtwayland/ - -#### No changelog section, separate $pkg.changes contains the history |