packaging: Initial packaging on 5.4.1 for Tizen 44/37744/2 submit/contrib_common/20150403.140947
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 19 Mar 2015 09:15:13 +0000 (10:15 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 3 Apr 2015 13:18:16 +0000 (15:18 +0200)
Change-Id: I4ab390147debb32d392b008a94a2f6ca8e3ba677
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
.gbs.conf [new file with mode: 0644]
packaging/qt5-qtwebsockets.manifest [new file with mode: 0644]
packaging/qt5-qtwebsockets.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..807b5e7
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,4 @@
+[general]
+upstream_branch = upstream
+upstream_tag = v${upstreamversion}
+
diff --git a/packaging/qt5-qtwebsockets.manifest b/packaging/qt5-qtwebsockets.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
diff --git a/packaging/qt5-qtwebsockets.spec b/packaging/qt5-qtwebsockets.spec
new file mode 100644 (file)
index 0000000..340e17e
--- /dev/null
@@ -0,0 +1,115 @@
+#
+# Copyright (c) 2015 Philippe Coval <philippe.coval@eurogiciel.fr>
+#
+# 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.
+
+Name:           qt5-qtwebsockets
+Version:        5.4.1
+Release:        0
+License:        LGPL-2.1+ or GPL-3.0
+Summary:        Pure Qt implementation of WebSockets - both client and server
+Url:            http://code.qt.io/cgit/qt/qtwebsockets.git
+Group:          System/Libraries
+# X-Vc-Url:     http://code.qt.io/git/qt/qtwebsockets.git
+Group:          Contrib
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+
+BuildRequires:  make
+BuildRequires:  fdupes
+BuildRequires:  pkgconfig(Qt5Core)
+BuildRequires:  pkgconfig(Qt5Network)
+BuildRequires:  qt5-qmake
+BuildRequires:  qt5-qtdeclarative-qtquick-devel
+%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 module to manage websockets.
+
+%package devel
+Summary:    Pure Qt implementation of WebSockets - development files
+Group:      Development/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 development files for Qt module to manage websockets.
+
+%package -n qt5-qtdeclarative-import-websockets
+Summary:    QtQml  websockets import
+Group:      Base/Libraries
+Requires:   %{name} = %{version}-%{release}
+Requires:   qt5-qtdeclarative
+
+%description -n qt5-qtdeclarative-import-websockets
+%{description}
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+touch .git
+cp %{SOURCE1001} .
+QTDIR=/usr/share/qt5
+export QTDIR
+qmake -qt=5
+
+%__make %{?_smp_mflags}
+
+
+%install
+%qmake_install
+%fdupes %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root)
+%manifest %{name}.manifest
+%{_libdir}/*.so.*
+%{_libdir}/*.la
+%{_libdir}/*.prl
+%{_datadir}/*
+
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+%{_libdir}/cmake/*/*.cmake
+
+
+%files -n qt5-qtdeclarative-import-websockets
+%defattr(-,root,root,-)
+%manifest %{name}.manifest
+%{_libdir}/qt5/qml/*
+