diff --git a/_service b/_service
deleted file mode 100644
index 3233ff2..0000000
--- a/_service
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- git
- https://gitlab.freedesktop.org/whot/libei/
- master
- 5e649f682ab3f404919717b8757c9c8ebcfde52f
- 0+git@TAG_OFFSET@
-
-
- *.tar
- xz
-
-
-
diff --git a/libei-0+git134.tar.xz b/libei-0+git134.tar.xz
deleted file mode 100644
index 7917fb1..0000000
--- a/libei-0+git134.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:21029a60757f387fb26e6915992f07da760f56abc952931972a875c56bcd99ae
-size 57964
diff --git a/libei-0.2.tar.gz b/libei-0.2.tar.gz
new file mode 100644
index 0000000..766f2d1
--- /dev/null
+++ b/libei-0.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:439be13fb1dbe8e811934e901088d6d7bc65b5118f4109c4d06d6025f19c0f14
+size 127872
diff --git a/libei.changes b/libei.changes
index 64fce5c..8a2eda5 100644
--- a/libei.changes
+++ b/libei.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Mar 2 08:00:57 UTC 2022 - Jan Engelhardt
+
+- Update to release 0.2
+ * Development snapshot, no curated changelog available.
+
-------------------------------------------------------------------
Wed Aug 26 00:06:10 UTC 2020 - Jan Engelhardt
diff --git a/libei.spec b/libei.spec
index 297b8f3..1a6abfb 100644
--- a/libei.spec
+++ b/libei.spec
@@ -1,7 +1,7 @@
#
# spec file for package libei
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,38 +17,49 @@
Name: libei
-%define lname libei-suse0
-Version: 0+git134
+%define lname libei-suse1
+Version: 0.2
Release: 0
Summary: Library for emulated input in Wayland
License: MIT
Group: Development/Libraries/C and C++
URL: https://gitlab.freedesktop.org/whot/libei/
-Source: %name-%version.tar.xz
+Source: https://gitlab.freedesktop.org/libinput/libei/-/archive/%version/%name-%version.tar.gz
Patch1: system-munit.diff
Patch2: ver.diff
BuildRequires: meson
BuildRequires: ninja
BuildRequires: protobuf-c
+BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(libprotobuf-c)
+BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(munit)
BuildRequires: pkgconfig(protobuf-lite)
+BuildRequires: pkgconfig(xkbcommon)
%description
-libei is a library for Emulated Input, targeting the Wayland stack.
-It provides separation, distinction and control, which, for
-comparison, are not available with XTEST (X11's emulated input).
+libei is a library to send Emulated Input (EI) to a matching Emulated
+Input Server (EIS) which can receive those events with libeis.
+
+It targets Wayland and provides separation, distinction and control,
+which, for comparison, are not available with XTEST (X11's emulated
+input).
%package -n %lname
-Summary: OpenGL and OpenGL ES shader front end implementation
+Summary: Library for emulated input in Wayland
Group: System/Libraries
%description -n %lname
-libei is a library for Emulated Input, targeting the Wayland stack.
+libei is a library to send Emulated Input (EI) to a matching Emulated
+Input Server (EIS) which can receive those events with libeis.
+
+It targets Wayland and provides separation, distinction and control,
+which, for comparison, are not available with XTEST (X11's emulated
+input).
%package devel
-Summary: OpenGL and OpenGL ES shader front end and validator
+Summary: Header files for libei, a library for emulated input under Wayland
Group: Development/Libraries/C and C++
Requires: %lname = %version
@@ -69,7 +80,7 @@ libei is a library for Emulated Input, targeting the Wayland stack.
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
-%_libdir/lib*.so.suse0
+%_libdir/lib*.so.suse1
%files devel
%_includedir/%name/
diff --git a/system-munit.diff b/system-munit.diff
index a79b0c8..a7bfd8e 100644
--- a/system-munit.diff
+++ b/system-munit.diff
@@ -3,15 +3,20 @@ Date: 2020-08-13 11:01:08.470708019 +0200
Do not fail the build if munit available (only) via /usr.
-diff --git a/meson.build b/meson.build
-index 11cc511..427fb43 100644
---- a/meson.build
-+++ b/meson.build
-@@ -114,7 +114,6 @@ executable('ei-socket-client',
- dependencies: [dep_libei])
+---
+ meson.build | 2 --
+ 1 file changed, 2 deletions(-)
+
+Index: libei-0.2/meson.build
+===================================================================
+--- libei-0.2.orig/meson.build
++++ libei-0.2/meson.build
+@@ -228,8 +228,6 @@ endif
# tests
--subproject('munit')
-
- munit = dependency('munit', fallback: ['munit', 'munit_dep'])
+ if get_option('tests')
+- subproject('munit')
+-
+ munit = dependency('munit', fallback: ['munit', 'munit_dep'])
+ lib_unittest = static_library('unittest',
diff --git a/ver.diff b/ver.diff
index 4372a6e..d56998e 100644
--- a/ver.diff
+++ b/ver.diff
@@ -3,35 +3,39 @@ Date: 2020-08-13 11:07:06.143460258 +0200
unversioned libraries suck.
-diff --git a/meson.build b/meson.build
-index 11cc511..41d140f 100644
---- a/meson.build
-+++ b/meson.build
-@@ -45,7 +45,8 @@ src_libei = [
- lib_libei = shared_library('ei',
+---
+ meson.build | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+Index: libei-0.2/meson.build
+===================================================================
+--- libei-0.2.orig/meson.build
++++ libei-0.2/meson.build
+@@ -110,7 +110,8 @@ lib_libei = shared_library('ei',
src_libei,
- dependencies: [dep_libutil, dep_protobuf],
+ dependencies: deps_libei,
+ gnu_symbol_visibility: 'hidden',
- install: true
+ install: true,
-+ soversion: 'suse0'
++ soversion: 'suse1'
)
install_headers('src/libei.h')
-@@ -69,7 +70,8 @@ lib_libeis = shared_library('eis',
- 'src/libeis-fd.c',
- proto_headers,
+@@ -149,7 +150,8 @@ lib_libeis = shared_library('eis',
+ src_libeis,
dependencies: [dep_libutil, dep_protobuf],
+ gnu_symbol_visibility: 'hidden',
- install: true
+ install: true,
-+ soversion: 'suse0'
++ soversion: 'suse1'
)
install_headers('src/libeis.h')
-@@ -91,6 +93,7 @@ lib_libreis = shared_library('reis',
- dependencies: [dep_libutil, dep_protobuf],
+@@ -172,6 +174,7 @@ lib_libreis = shared_library('reis',
+ gnu_symbol_visibility: 'hidden',
install: true,
include_directories: 'src',
-+ soversion: 'suse0'
++ soversion: 'suse1'
)
install_headers('src/libreis.h')