From 946d32136cae4ae9aae2e8060a920e26a3478ecf96829cd92fb3eb730e4ba0d3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 13 Aug 2020 09:15:35 +0000 Subject: [PATCH] - Initial package (version 0+134/7965e8f) for build.opensuse.org OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libei?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 14 ++++++++ libei-0+git134.tar.xz | 3 ++ libei.changes | 5 +++ libei.spec | 78 +++++++++++++++++++++++++++++++++++++++++++ system-munit.diff | 17 ++++++++++ ver.diff | 37 ++++++++++++++++++++ 8 files changed, 178 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 libei-0+git134.tar.xz create mode 100644 libei.changes create mode 100644 libei.spec create mode 100644 system-munit.diff create mode 100644 ver.diff diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..3233ff2 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + 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 new file mode 100644 index 0000000..7917fb1 --- /dev/null +++ b/libei-0+git134.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21029a60757f387fb26e6915992f07da760f56abc952931972a875c56bcd99ae +size 57964 diff --git a/libei.changes b/libei.changes new file mode 100644 index 0000000..45f5c2e --- /dev/null +++ b/libei.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Aug 13 09:01:21 UTC 2020 - Jan Engelhardt + +- Initial package (version 0+134/7965e8f) for build.opensuse.org +- Add system-munit.diff, ver.diff diff --git a/libei.spec b/libei.spec new file mode 100644 index 0000000..7a0c534 --- /dev/null +++ b/libei.spec @@ -0,0 +1,78 @@ +# +# spec file for package libei +# +# Copyright (c) 2020 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: libei +%define lname libei-suse0 +Version: 0+git134 +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 +Patch1: system-munit.diff +Patch2: ver.diff +BuildRequires: meson +BuildRequires: protobuf-c +BuildRequires: pkgconfig(libprotobuf-c) +BuildRequires: pkgconfig(protobuf-lite) +BuildRequires: pkgconfig(munit) +BuildRequires: ninja + +%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). + +%package -n %lname +Summary: OpenGL and OpenGL ES shader front end implementation +Group: System/Libraries + +%description -n %lname +libei is a library for Emulated Input, targeting the Wayland stack. + +%package devel +Summary: OpenGL and OpenGL ES shader front end and validator +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libei is a library for Emulated Input, targeting the Wayland stack. + +%prep +%autosetup -p1 + +%build +%meson --includedir="%_includedir/%name" + +%install +%meson_install + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/lib*.so.suse0 + +%files devel +%_includedir/%name/ +%_libdir/pkgconfig/*.pc +%_libdir/*.so + +%changelog diff --git a/system-munit.diff b/system-munit.diff new file mode 100644 index 0000000..a79b0c8 --- /dev/null +++ b/system-munit.diff @@ -0,0 +1,17 @@ +From: Jan Engelhardt +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]) + + # tests +-subproject('munit') + + munit = dependency('munit', fallback: ['munit', 'munit_dep']) + diff --git a/ver.diff b/ver.diff new file mode 100644 index 0000000..4372a6e --- /dev/null +++ b/ver.diff @@ -0,0 +1,37 @@ +From: Jan Engelhardt +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', + src_libei, + dependencies: [dep_libutil, dep_protobuf], +- install: true ++ install: true, ++ soversion: 'suse0' + ) + install_headers('src/libei.h') + +@@ -69,7 +70,8 @@ lib_libeis = shared_library('eis', + 'src/libeis-fd.c', + proto_headers, + dependencies: [dep_libutil, dep_protobuf], +- install: true ++ install: true, ++ soversion: 'suse0' + ) + install_headers('src/libeis.h') + +@@ -91,6 +93,7 @@ lib_libreis = shared_library('reis', + dependencies: [dep_libutil, dep_protobuf], + install: true, + include_directories: 'src', ++ soversion: 'suse0' + ) + install_headers('src/libreis.h') +