summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-04-29 17:04:53 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-04-29 17:04:53 +0900
commitb33f7f61b88f637050cdb7a46166ed2f631d91ef (patch)
treea8baa4c9376f3554f1761d31c1d47675d923be5f
parent0652b7fee1c050e754b8bfe89024d33c16e25eb6 (diff)
downloadlibXgesture-b33f7f61b88f637050cdb7a46166ed2f631d91ef.tar.gz
libXgesture-b33f7f61b88f637050cdb7a46166ed2f631d91ef.tar.bz2
libXgesture-b33f7f61b88f637050cdb7a46166ed2f631d91ef.zip
upload tizen1.0 source
-rwxr-xr-xinclude/X11/extensions/gesture.h59
-rw-r--r--packaging/libxgesture.spec64
-rwxr-xr-xsrc/gesture.c59
3 files changed, 122 insertions, 60 deletions
diff --git a/include/X11/extensions/gesture.h b/include/X11/extensions/gesture.h
index 982d9d6..5ff7f5b 100755
--- a/include/X11/extensions/gesture.h
+++ b/include/X11/extensions/gesture.h
@@ -1,33 +1,32 @@
-/**************************************************************************
-
-libxgesture
-
-Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-
-Contact: Sung-Jin Park <sj76.park@samsung.com>
- Sangjin LEE <lsj119@samsung.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, sub license, 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 (including the
-next paragraph) 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 NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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.
-
-**************************************************************************/
+/*
+ *
+ * libxgesture
+ *
+ * Contact: Sung-Jin Park <sj76.park@samsung.com>
+ * Sangjin LEE <lsj119@samsung.com>
+ *
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of Red Hat
+ * not be used in advertising or publicity pertaining to distribution
+ * of the software without specific, written prior permission. Red
+ * Hat makes no representations about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied
+ * warranty.
+ *
+ * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+ * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
#ifndef _GESTURE_LIB_H_
#define _GESTURE_LIB_H_
diff --git a/packaging/libxgesture.spec b/packaging/libxgesture.spec
new file mode 100644
index 0000000..86d929f
--- /dev/null
+++ b/packaging/libxgesture.spec
@@ -0,0 +1,64 @@
+#sbs-git:slp/pkgs/xorg/lib/libxgesture libxgesture 0.1.0 589298a12fdb2ac318a89eb12e9afdab9aac402d
+Name: libxgesture
+Summary: X11 Gesture Extension library
+Version: 0.1.0
+Release: 2
+Group: System/Libraries
+License: MIT
+URL: http://www.x.org
+Source0: %{name}-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xext)
+BuildRequires: pkgconfig(xproto)
+BuildRequires: pkgconfig(xextproto)
+BuildRequires: pkgconfig(gestureproto)
+BuildRequires: pkgconfig(xorg-macros)
+
+
+%description
+X.Org X11 libXt library
+
+
+%package devel
+Summary: X11 Gesture Extension library (development headers)
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig(x11), pkgconfig(xext), pkgconfig(gestureproto)
+
+%description devel
+libXgesture provides an X Window System client interface to the X Gesture
+Extension to the X protocol.
+
+
+%prep
+%setup -q
+
+%build
+
+%reconfigure --disable-static
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+
+%files
+%{_libdir}/libXgesture.so.*
+
+%files devel
+%{_includedir}/X11/extensions/*
+%{_libdir}/libXgesture.so
+%{_libdir}/pkgconfig/xgesture.pc
+
diff --git a/src/gesture.c b/src/gesture.c
index 3a9a60e..5a6c793 100755
--- a/src/gesture.c
+++ b/src/gesture.c
@@ -1,33 +1,32 @@
-/**************************************************************************
-
-libxgesture
-
-Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-
-Contact: Sung-Jin Park <sj76.park@samsung.com>
- Sangjin LEE <lsj119@samsung.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, sub license, 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 (including the
-next paragraph) 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 NON-INFRINGEMENT.
-IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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.
-
-**************************************************************************/
+/*
+ *
+ * libxgesture
+ *
+ * Contact: Sung-Jin Park <sj76.park@samsung.com>
+ * Sangjin LEE <lsj119@samsung.com>
+ *
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of Red Hat
+ * not be used in advertising or publicity pertaining to distribution
+ * of the software without specific, written prior permission. Red
+ * Hat makes no representations about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied
+ * warranty.
+ *
+ * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+ * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
#define NEED_EVENTS
#define NEED_REPLIES