Blame packages/f/feedbackd/feedbackd.spec

599035
#
599035
# spec file for package feedbackd
599035
#
Bernhard M. Wiedemann 7e52cc
# Copyright (c) 2023 SUSE LLC
599035
#
599035
# All modifications and additions to the file contributed by third parties
599035
# remain the property of their copyright owners, unless otherwise agreed
599035
# upon. The license for this file, and modifications and additions to the
599035
# file, is the same license as for the pristine package itself (unless the
599035
# license for the pristine package is not an Open Source License, in which
599035
# case the license is the MIT License). An "Open Source License" is a
599035
# license that conforms to the Open Source Definition (Version 1.9)
599035
# published by the Open Source Initiative.
599035
599035
# Please submit bugfixes or comments via https://bugs.opensuse.org/
599035
#
599035
42a8f0
599035
%define soname libfeedback-0_0-0
599035
599035
Name:           feedbackd
893410
Version:        0.1.0
599035
Release:        0
599035
Summary:        Feedback library for GNOME
599035
License:        GPL-3.0-only AND LGPL-2.1-only
599035
URL:            https://source.puri.sm/Librem5/feedbackd
599035
Source0:        %{name}-%{version}.tar.xz
b06f90
# PATCH-FIX-UPSTREAM 109.patch -- Fix build with glib-2.76.x
b06f90
Patch0:         https://source.puri.sm/Librem5/feedbackd/-/merge_requests/109.patch
599035
599035
BuildRequires:  c_compiler
42a8f0
BuildRequires:  dbus-1
599035
BuildRequires:  meson
599035
BuildRequires:  vala
599035
BuildRequires:  pkgconfig(gio-2.0) >= 2.50.0
599035
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.50.0
599035
BuildRequires:  pkgconfig(glib-2.0) >= 2.50.0
599035
BuildRequires:  pkgconfig(gobject-2.0) >= 2.50.0
599035
BuildRequires:  pkgconfig(gobject-introspection-1.0)
599035
BuildRequires:  pkgconfig(gsound)
599035
BuildRequires:  pkgconfig(gudev-1.0) >= 232
599035
BuildRequires:  pkgconfig(json-glib-1.0)
599035
599035
%description
599035
feedbackd provides a DBus daemon (feedbackd) to act on events to provide
599035
haptic, visual and audio feedback. It offers a library (libfeedback) and
599035
GObject introspection bindings to ease using it from applications.
599035
599035
%package -n typelib-1_0-Lfb-0_0
599035
Summary:        Introspection bindings for %{name}
599035
599035
%description -n typelib-1_0-Lfb-0_0
599035
feedbackd provides a DBus daemon (feedbackd) to act on events to provide
599035
haptic, visual and audio feedback. It offers a library (libfeedback) and
599035
GObject introspection bindings to ease using it from applications.
599035
599035
This package contains the introspection bindings for %{name}.
599035
599035
%package -n %{soname}
599035
Summary:        Shared library for %{name}
599035
599035
%description -n %{soname}
599035
feedbackd provides a DBus daemon (feedbackd) to act on events to provide
599035
haptic, visual and audio feedback. It offers a library (libfeedback) and
599035
GObject introspection bindings to ease using it from applications.
599035
599035
This package contains the shared library for %{name}.
599035
599035
%package devel
599035
Summary:        Development files for %{name}
599035
Requires:       %{name} = %{version}
599035
Requires:       %{soname} = %{version}
42a8f0
Requires:       typelib-1_0-Lfb-0_0 = %{version}
599035
599035
%description devel
599035
The %{name}-devel package contains libraries and header files for
599035
developing applications that use %{name}.
599035
599035
%prep
599035
%autosetup -p1
599035
599035
%build
599035
%meson \
599035
	%{nil}
599035
%meson_build
599035
599035
%install
599035
%meson_install
599035
%{__install} -Dm0644 -T debian/feedbackd.udev %{buildroot}%{_udevrulesdir}/90-feedbackd.rules
599035
599035
%pre
599035
getent group feedbackd >/dev/null || groupadd -r feedbackd
599035
exit 0
599035
599035
%check
599035
%meson_test
599035
599035
%ldconfig_scriptlets -n %{soname}
599035
599035
%files
599035
%{_bindir}/fbcli
Bernhard M. Wiedemann 7e52cc
%{_bindir}/fbd-theme-validate
599035
%{_libexecdir}/feedbackd
599035
%{_libexecdir}/fbd-ledctrl
599035
%{_datadir}/dbus-1/interfaces/org.sigxcpu.Feedback.xml
599035
%{_datadir}/dbus-1/services/org.sigxcpu.Feedback.service
599035
%{_datadir}/feedbackd
599035
%{_datadir}/glib-2.0/schemas/org.sigxcpu.feedbackd.gschema.xml
599035
%{_udevrulesdir}/*
599035
599035
%files -n typelib-1_0-Lfb-0_0
599035
%{_libdir}/girepository-1.0/Lfb-0.0.typelib
599035
599035
%files -n %{soname}
599035
%{_libdir}/libfeedback-0.0.so.0
599035
599035
%files devel
599035
%{_libdir}/libfeedback-0.0.so
599035
%{_includedir}/libfeedback-0.0/
599035
%{_datadir}/vala/
599035
%{_datadir}/gir-1.0/Lfb-0.0.gir
599035
%{_libdir}/pkgconfig/libfeedback-0.0.pc
599035
599035
%changelog