From: Sung-Jin Park Date: Mon, 23 Oct 2017 08:14:12 +0000 (+0900) Subject: packaging: add packaging files and modify not to build tools X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a677afbf6af48a8b329b4f6162750ac84cbb992;p=platform%2Fupstream%2Flibinput.git packaging: add packaging files and modify not to build tools Change-Id: Ie563ac548985d6e202e2c0b38e07c1bf2636ed2e --- diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 00000000..fa9fdc59 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = ${upstreamversion} diff --git a/Makefile.am b/Makefile.am index f897ceec..351ae519 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src doc test tools udev +SUBDIRS = src doc test udev ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} diff --git a/configure.ac b/configure.ac index eabc9e14..952fe327 100644 --- a/configure.ac +++ b/configure.ac @@ -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 index 00000000..017d22d3 --- /dev/null +++ b/packaging/libinput.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libinput.spec b/packaging/libinput.spec new file mode 100644 index 00000000..70f2ae6c --- /dev/null +++ b/packaging/libinput.spec @@ -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/* diff --git a/tools/Makefile.am b/tools/Makefile.am index 2c8660bf..8de3d6c2 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -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