diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..610b796 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libei-.*.tar.bz2 diff --git a/libei.spec b/libei.spec new file mode 100644 index 0000000..3fbd0a7 --- /dev/null +++ b/libei.spec @@ -0,0 +1,125 @@ +# Note to packagers: +# libei-the-repo comes with three libraries, all independent of each other and +# processes that use one may not use the other. +# Here there are packaged as libei, libeis and liboeffis plus respective subpackages. + +Name: libei +Version: 0.99.1 +Release: 1%{?dist} +Summary: Library for Emulated Input + +License: MIT +URL: http://gitlab.freedesktop.org/libinput/libei +Source0: https://gitlab.freedesktop.org/libinput/libei/-/archive/%{version}/libei-%{version}.tar.bz2 + +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: libxml2 +BuildRequires: meson +BuildRequires: pkgconf-pkg-config +BuildRequires: python3 +BuildRequires: python3-attrs +BuildRequires: python3-jinja2 +BuildRequires: python3-rpm-macros +BuildRequires: systemd-devel + +# libei packages +%description +libei is a library to Emulate Input. It allows clients to talk to +an EIS implementatation (Emulated Input Server), typically a Wayland compositor +and send input events via that connection. The EIS implementation +replays those events as if they came from physical devices. + +%package devel +Summary: Library for Emulated Input Development Package +Requires: libei%{?_isa} = %{version}-%{release} + +%description devel +Library for Emulated Input Development Package. + +%package utils +Summary: Library for Emulated Input Utilities Package +Requires: libei%{?_isa} = %{version}-%{release} + +%description utils +Utilities to test and/or debug emulated input devices. + +# libeis packages +%package -n libeis +Summary: Library for Emulated Input Servers + +%description -n libeis +libeis is a library to provide logical devices that other applications +can then use to emulate input. This library is typically used by +a Wayland compositor that provides an EIS implementation. + +%package -n libeis-devel +Summary: Library for Emulated Input Serverse Development Package +Requires: libeis%{?_isa} = %{version}-%{release} + +%description -n libeis-devel +Library for Emulated Input Servers Development Package. + +# liboeffis packages +%package -n liboeffis +Summary: Library for XDG RemoteDesktop Portal Setup + +%description -n liboeffis +liboeffis is a helper library to contact the XDG RemoteDesktop portal +and obtain an EIS socket through the portal. + +%package -n liboeffis-devel +Summary: Library for XDG RemoteDesktop Portal Setup Development Package +Requires: liboeffis%{?_isa} = %{version}-%{release} + +%description -n liboeffis-devel +Library for XDG RemoteDesktop Portal Setup Development Package + +%prep +%autosetup -S git +# Replace whatever the source uses with the approved call +%py3_shebang_fix $(git grep -l '#!/usr/bin/.*python3') + +%build +%meson -Dtests=disabled -Ddocumentation='[]' -Dliboeffis=enabled +%meson_build + +%install +%meson_install + +%files +%license COPYING +%{_libdir}/libei.so.1{,.*} + +%files -n libeis +%license COPYING +%{_libdir}/libeis.so.1{,.*} + +%files -n liboeffis +%license COPYING +%{_libdir}/liboeffis.so.1{,.*} + +%files devel +%dir %{_includedir}/libei-1.0/ +%{_includedir}/libei-1.0/libei.h +%{_libdir}/libei.so +%{_libdir}/pkgconfig/libei-1.0.pc + +%files -n libeis-devel +%dir %{_includedir}/libei-1.0/ +%{_includedir}/libei-1.0/libeis.h +%{_libdir}/libeis.so +%{_libdir}/pkgconfig/libeis-1.0.pc + +%files -n liboeffis-devel +%dir %{_includedir}/libei-1.0/ +%{_includedir}/libei-1.0/liboeffis.h +%{_libdir}/liboeffis.so +%{_libdir}/pkgconfig/liboeffis-1.0.pc + +%files utils +%{_bindir}/ei-debug-events + +%changelog +* Wed May 17 2023 Peter Hutterer - 0.99.1-1 +- Initial package (#2207838) diff --git a/sources b/sources new file mode 100644 index 0000000..b7280fb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libei-0.99.1.tar.bz2) = aca62ac92c92e07475fa31f2bc8b5546d9c4b42e85b6539701ad3acdec1c8773b16fa07c87c1c4934220e79588eea353912af7dc136277a1fac3d952e9c83ad7