2014-01-29 13:05:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package libinput
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define lname libinput0
|
|
|
|
Name: libinput
|
2014-02-27 19:36:07 +01:00
|
|
|
Version: 0.1.0
|
2014-01-29 13:05:34 +01:00
|
|
|
Release: 0
|
2014-02-27 19:36:07 +01:00
|
|
|
Summary: Input device and event processing library
|
2014-01-29 13:05:34 +01:00
|
|
|
License: HPND
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-05-02 00:26:03 +02:00
|
|
|
Url: http://wayland.freedesktop.org/
|
2014-02-27 19:36:07 +01:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
#Git-Clone: git://anongit.freedesktop.org/wayland/libinput
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/wayland/libinput/
|
2014-05-02 00:26:47 +02:00
|
|
|
Source: http://www.freedesktop.org/software/libinput/%name-%version.tar.xz
|
|
|
|
Source2: baselibs.conf
|
2014-02-27 19:36:07 +01:00
|
|
|
#git#BuildRequires: autoconf >= 2.64
|
|
|
|
#git#BuildRequires: automake >= 1.11
|
|
|
|
#git#BuildRequires: libtool >= 2.2
|
2014-01-29 13:05:34 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2014-05-02 00:26:03 +02:00
|
|
|
BuildRequires: pkgconfig(check) >= 0.9.9
|
|
|
|
BuildRequires: pkgconfig(libevdev) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%description
|
2014-02-27 19:36:07 +01:00
|
|
|
libinput is a library that handles input devices for display servers and
|
|
|
|
other applications that need to directly deal with input devices.
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%package -n %lname
|
2014-02-27 19:36:07 +01:00
|
|
|
Summary: Input device and event processing library
|
2014-01-29 13:05:34 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2014-02-27 19:36:07 +01:00
|
|
|
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.
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the Wayland Input Device Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
2014-02-27 19:36:07 +01:00
|
|
|
libinput is a library that handles input devices for display servers and
|
|
|
|
other applications that need to directly deal with input devices.
|
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require libinput.
|
|
|
|
|
|
|
|
%prep
|
2014-02-27 19:36:07 +01:00
|
|
|
%setup -q
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
autoreconf -fi;
|
|
|
|
fi;
|
|
|
|
%configure --disable-static --includedir="%_includedir/pkg/%name"
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%buildroot install %{?_smp_mflags}
|
|
|
|
find %buildroot -type f -name "*.la" -delete -print
|
|
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if !0%{?qemu_user_space_build}
|
|
|
|
mkdir xdg
|
|
|
|
chmod 700 xdg
|
|
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
|
|
|
#make check %{?_smp_mflags} V=1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libinput.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/pkg/
|
|
|
|
%_libdir/pkgconfig/libinput.pc
|
|
|
|
%_libdir/libinput.so
|
|
|
|
|
|
|
|
%changelog
|