packaging: add packaging files and modify not to build tools sandbox/upgrade/efl120_bkup
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 23 Oct 2017 08:14:12 +0000 (17:14 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 24 Oct 2017 05:20:50 +0000 (14:20 +0900)
Change-Id: Ie563ac548985d6e202e2c0b38e07c1bf2636ed2e

.gbs.conf [new file with mode: 0644]
Makefile.am
configure.ac
packaging/libinput.manifest [new file with mode: 0644]
packaging/libinput.spec [new file with mode: 0644]
tools/Makefile.am

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..fa9fdc5
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = ${upstreamversion}
index f897ceece57a0c8f2c1aab45256a9e7e3917d86a..351ae51955d1cccbcd0d681a05fc83c405bf6134 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = src doc test tools udev
+SUBDIRS = src doc test udev
 
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
index eabc9e14233015c9f478a423a8afb3dcb7220d54..952fe3278478db56984a6d0575954caf264193d4 100644 (file)
@@ -260,7 +260,6 @@ AC_CONFIG_FILES([Makefile
                 src/libinput-uninstalled.pc
                 src/libinput-version.h
                 test/Makefile
-                tools/Makefile
                 udev/Makefile
                 udev/80-libinput-device-groups.rules
                 udev/90-libinput-model-quirks.rules])
diff --git a/packaging/libinput.manifest b/packaging/libinput.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libinput.spec b/packaging/libinput.spec
new file mode 100644 (file)
index 0000000..70f2ae6
--- /dev/null
@@ -0,0 +1,83 @@
+%define udev_dir %{_prefix}/lib/udev
+
+Name:           libinput
+Version:        1.8.0
+Release:        0
+License:        MIT
+Summary:        Input devices for display servers and other applications
+Url:            http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz
+Group:          System/Libraries
+Source:         %{name}-%{version}.tar.gz
+Source1001:            %name.manifest
+#X-Vcs-Url:      git://anongit.freedesktop.org/wayland/libinput
+
+BuildRequires:  make
+BuildRequires:  pkgconfig(libevdev)
+BuildRequires:  pkgconfig(libevent)
+BuildRequires:  pkgconfig(libudev)
+BuildRequires:  pkgconfig(mtdev)
+BuildRequires:  pkgconfig(ttrace)
+
+%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
+%description
+
+libinput is a library that handles input devices for display servers and
+other applications that need to directly deal with input devices.
+
+It provides device detection, device handling, input device event
+processing and abstraction so minimize the amount of custom input
+code the user of libinput need to provide the common set of
+functionality that users expect.
+
+
+%package devel
+Summary:    Input devices for display servers and other applications
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+
+libinput is a library that handles input devices for display servers and
+other applications that need to directly deal with input devices.
+
+It provides device detection, device handling, input device event
+processing and abstraction so minimize the amount of custom input
+code the user of libinput need to provide the common set of
+functionality that users expect.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+export LIBINPUT_EXECUTABLE_CFLAGS=" -fPIE "
+export LIBINPUT_EXECUTABLE_LIBS=" -pie "
+
+%autogen --with-udev-dir=%{udev_dir} --disable-documentation --disable-debug-gui --disable-tests --disable-libwacom
+
+%build
+%__make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%license COPYING
+%{_libdir}/*.so.*
+%{udev_dir}/%{name}*
+%{udev_dir}/rules.d/*%{name}*
+%exclude /usr/lib/udev/hwdb.d/*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
index 2c8660bf2cac4ec6a172fc52d21b1c108af5711e..8de3d6c2864e916fca307b40f700345472f01c50 100644 (file)
@@ -1,5 +1,5 @@
 noinst_PROGRAMS = ptraccel-debug
-bin_PROGRAMS = libinput
+bin_PROGRAMS = libinput 
 toolsdir = $(libexecdir)/libinput
 tools_PROGRAMS =
 bin_SCRIPTS = libinput-list-devices.compat libinput-debug-events.compat