commit c76612cfb433c588f19e8fededcc234b0cef20ff Author: Adrian Schröter Date: Wed Jun 7 08:02:38 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 libmanette revision d2a1e1878fd48d21f190f1e79e5517a4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..e5c4379 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libmanette-0_2-0 \ No newline at end of file diff --git a/libmanette-0.2.6.tar.xz b/libmanette-0.2.6.tar.xz new file mode 100644 index 0000000..5990ebd --- /dev/null +++ b/libmanette-0.2.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63653259a821ec7d90d681e52e757e2219d462828c9d74b056a5f53267636bac +size 43236 diff --git a/libmanette.changes b/libmanette.changes new file mode 100644 index 0000000..07ccff2 --- /dev/null +++ b/libmanette.changes @@ -0,0 +1,137 @@ +------------------------------------------------------------------- +Sun Mar 28 07:50:57 UTC 2021 - Dominique Leuenberger + +- Add baselibs.conf: build libmanette-0_2-0. New dependency to + webkit2gtk3. + +------------------------------------------------------------------- +Sat Nov 28 19:52:53 UTC 2020 - Bjørn Lie + +- Update to version 0.2.6: + + Project: + - Move the project to gitlab.gnome.org/GNOME/libmanette. + - Update the URLs accordingly. + - Give the project a minimal website: + https://gnome.pages.gitlab.gnome.org/libmanette/ + - Update the project's description. + + Documentation: + - Add a documentation. + - Fix many documentation annotations. + - Document more symbols. + + Meson: + - Require Meson 0.53.0. + - Add the demos option. + - Add the build-tests and install-tests option. + - Various code style cleanups and updates. + - Add a build summary. + + ManetteDevice: + - Add a missing precondition check to ensure milliseconds is in + the right range in manette_device_rumble(). + - Throw the full file error code rather than G_FILE_ERROR_FAILED + in manette_device_new(). + - Throw G_FILE_ERROR_FAILED rather than G_FILE_ERROR_NXIO in + manette_device_new() if the device isn't a gamepad. + + ManetteMapping: + - Check mapping strings have at least a GUID field and a name + field. + - Use the debug log level for non-programming mapping parsing + errors. + - Make some parsing error messages more explicit. + + ManetteMappingManager: Use a race-free way to check the mapping + file deletion. + + Code cleanup: + - Make license headers have the LGPL footer, not the GPL one. + - Use #pragma once instead of manual header guards. + - Use g_auto(), g_autoptr() and g_autofree where possible. + - Use g_clear_pointer() and g_clear_object() where possible. + - Use assertions instead of g_return*_if_fail in static + functions. + - Add HACKING.md to document the code, documentation, and + commit message styles. + - Give better names to callback functions. + - Give the namespace_object_ prefix to the finalize functions + to match the code style. + - Clean up and simplify the code in many places. + - Drop platform:Linux from the internal gamepad database. +- Changes from version 0.2.5: + + Fix the build with musl by using input_event_sec and + input_event_usec. +- Run tests during build, add a check section and macro. +- Update URL to new home. + +------------------------------------------------------------------- +Sun Apr 5 17:10:44 UTC 2020 - Bjørn Lie + +- Update to version 0.2.4: + + Build system changes: Add the 'introspection' and 'vapi' + options, allowing to build without producing GObject + Introspection or Vala bindings. + + Support hot-plugging in the fallback backend. + + Update the game controller mapping database. + + Various code cleanups. + +------------------------------------------------------------------- +Thu Sep 12 12:24:48 UTC 2019 - Bjørn Lie + +- Update to version 0.2.3: + + Build system changes: Add 'gudev' option, allowing to + explicitly build without gudev. + +------------------------------------------------------------------- +Mon Mar 11 09:32:30 UTC 2019 - Bjørn Lie + +- Update to version 0.2.2: + + Device: + - Handle absolute axes with min > 0. + - Handle the axes' flat to support axes to d-pad mapping. + + Mapping: + - Support negative analog axis to button mappings. + - Support full-range axis to button mappings. + +------------------------------------------------------------------- +Sun Sep 23 07:42:06 UTC 2018 - antoine.belvire@opensuse.org + +- Update to version 0.2.1: + + Defer the emission of input device events by putting them into + idle event sources. + + Update the game controller database. + +------------------------------------------------------------------- +Tue Mar 6 17:48:22 UTC 2018 - bjorn.lie@gmail.com + +- Update to version 0.2.0: + + Device: Add rumble support. + + Make the devices rumble in manette-test if they support it. + + Mapping: + - Initialize the bindings to 0 before using them, avoiding + improper values in non used fields. + - Ensures the binding value inversion is disabled by default, + avoiding an unexpected state. + - Clear errno before using it to avoid string to uint16 + convertions to fail on valid inputs. + - Silently skip the 'platform' mapping key as it is neither + useful nor erroneous. + + Monitor: + - Fix the 'device-disconnected' signal marshaller. + - Fix the devices hash table hash and comparison functions. + + Build system change: + - Make manette-test properly depend on libmanette. + - Change the package name from libmanette to manette. + - Change the soname from liblibmanette.so to libmanette.so. + - Fix the soname version. + + Fix the license header of manette-version.h.in, which was + accidentaly not matching the one of the library. +- Following upstream changes and fixes, rename liblibmanette-0_2 + subpackage to libmanette-0_2-0, change where applicable, set + package_version define to 0_2-0. +- Tweak spec, use autosetup macro. + +------------------------------------------------------------------- +Wed Feb 28 16:35:32 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + +------------------------------------------------------------------- +Mon Nov 20 08:11:28 UTC 2017 - adrien.plazas@suse.com + +- Initial package, libmanette, version 0.1.2. diff --git a/libmanette.spec b/libmanette.spec new file mode 100644 index 0000000..bb3e9e6 --- /dev/null +++ b/libmanette.spec @@ -0,0 +1,100 @@ +# +# spec file for package libmanette +# +# 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/ +# + + +%define binary_version 0.2 +%define package_version 0_2-0 + +Name: libmanette +Version: 0.2.6 +Release: 0 +Summary: A simple GObject game controller library +License: LGPL-2.1-or-later +Group: System/Libraries +URL: https://gnome.pages.gitlab.gnome.org/libmanette/ +Source: https://download.gnome.org/sources/libmanette/0.2/%{name}-%{version}.tar.xz +Source99: baselibs.conf +BuildRequires: gcc +BuildRequires: gobject-introspection-devel >= 0.6.7 +BuildRequires: meson >= 0.53.0 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(gudev-1.0) >= 1.0 +BuildRequires: pkgconfig(libevdev) >= 1.4.5 +BuildRequires: pkgconfig(vapigen) + +%description +libmanette allows easy access to game controllers. + +%package -n libmanette-%{package_version} +Summary: A simple GObject game controller library +Group: System/Libraries + +%description -n libmanette-%{package_version} +libmanette allows easy access to game controllers. + +%package -n typelib-1_0-Manette-%{package_version} +Summary: GObject introspection bindings for liblibmanette +Group: System/Libraries + +%description -n typelib-1_0-Manette-%{package_version} +libmanette allows easy access to game controllers. +This subpackage contains the gobject bindings for the liblibmanette +shared library. + +%package devel +Summary: Development files for the libmanette library +Group: Development/Languages/C and C++ +Requires: libmanette-%{package_version} = %{version} + +%description devel +libmanette allows easy access to game controllers. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +%check +%meson_test + +%post -n libmanette-%{package_version} -p /sbin/ldconfig +%postun -n libmanette-%{package_version} -p /sbin/ldconfig + +%files -n libmanette-%{package_version} +%license COPYING +%{_libdir}/libmanette-%{binary_version}.so.* + +%files -n typelib-1_0-Manette-%{package_version} +%{_libdir}/girepository-1.0/Manette-%{binary_version}.typelib + +%files devel +%{_bindir}/manette-test +%{_datadir}/gir-1.0/Manette-%{binary_version}.gir +%dir %{_datadir}/vala/ +%dir %{_datadir}/vala/vapi/ +%{_datadir}/vala/vapi/manette-%{binary_version}.deps +%{_datadir}/vala/vapi/manette-%{binary_version}.vapi +%{_includedir}/libmanette/ +%{_libdir}/libmanette-%{binary_version}.so +%{_libdir}/pkgconfig/manette-%{binary_version}.pc + +%changelog