File feedbackd.spec of Package feedbackd-v0.0.0+git20211018-1.8
#
# spec file for package feedbackd
#
# Copyright (c) 2021 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: feedbackd
Version: v0.0.0+git20211018
Release: 1.8
Summary: Feedback library for GNOME
License: GPL-3.0-only AND LGPL-2.1-only
URL: https://source.puri.sm/Librem5/feedbackd
Source0: %{name}-%{version}.tar.xz
BuildRequires: dbus-1
BuildRequires: gcc
BuildRequires: meson
BuildRequires: systemd-devel
BuildRequires: vala
BuildRequires: pkgconfig(gio-2.0) >= 2.50.0
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.50.0
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.50.0
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gsound)
BuildRequires: pkgconfig(gudev-1.0) >= 232
BuildRequires: pkgconfig(json-glib-1.0)
Requires: sound-theme-freedesktop
%description
feedbackd provides a DBus daemon (feedbackd) to act on events to provide
haptic, visual and audio feedback. It offers a library (libfeedback) and
GObject introspection bindings to ease using it from applications.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%meson
%meson_build
%install
%meson_install
%{__install} -Dm0644 -T debian/feedbackd.udev %{buildroot}%{_udevrulesdir}/90-feedbackd.rules
%pre
getent group feedbackd >/dev/null || groupadd -r feedbackd
exit 0
%check
%meson_test
%ldconfig_scriptlets -n %{name}
%files
%{_bindir}/fbcli
%{_libdir}/girepository-1.0/Lfb-0.0.typelib
%{_libdir}/libfeedback-0.0.so.0
%{_libexecdir}/feedbackd
%{_libexecdir}/fbd-ledctrl
%{_datadir}/dbus-1/interfaces/org.sigxcpu.Feedback.xml
%{_datadir}/dbus-1/services/org.sigxcpu.Feedback.service
%{_datadir}/feedbackd
%{_datadir}/glib-2.0/schemas/org.sigxcpu.feedbackd.gschema.xml
%{_udevrulesdir}/*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libfeedback-0.0.so
%{_includedir}/libfeedback-0.0/
%{_datadir}/vala/
%{_datadir}/gir-1.0/Lfb-0.0.gir
%{_libdir}/pkgconfig/libfeedback-0.0.pc
%changelog
* Fri Oct 22 2021 Martin Hauke <mardnh@gmx.de>
- Updte to version 0.0.0+git20211018
* Tue Apr 20 2021 Adrian Campos Garrido <adriancampos@teachelp.com>
- Change feedbackd to video in udev rules
* Mon Apr 12 2021 Adrian Campos Garrido <adriancampos@teachelp.com>
- Add haptic support in feedback via udev rule
* Sun Apr 11 2021 Andrés B.S. <andresbs@opensuse.org>
- Update to tag 0.0.0+git20210125
* Mon Oct 5 2020 Adrian Campos Garrido <adriancampos@teachelp.com>
- Update feedbackd to add pinephone support
* Mon Sep 14 2020 Adrian Campos Garrido <adriancampos@teachelp.com>
- Fix problem with fbd-ledctrl file
* Fri Jul 24 2020 Adrian Campos Garrido <adriancampos@teachelp.com>
- Update feedbackd
* Fri Jun 19 2020 Adrian Campos Garrido <adriancampos@teachelp.com>
- Initial packaging
* Sun Jan 19 2020 Adrian Campos Garrido <adriancampos@teachelp.com>
- Update package