2023-01-31 16:10:13 +08:00
|
|
|
%global gmobile_commit 1039e7808195d4de367ce2718481641ca8af2427
|
|
|
|
|
|
2022-04-15 14:20:06 +08:00
|
|
|
Name: feedbackd
|
2023-01-31 16:10:13 +08:00
|
|
|
Version: 0.0.2
|
2022-04-15 14:20:06 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Feedback library for GNOME
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: https://source.puri.sm/Librem5/feedbackd
|
|
|
|
|
Source0: https://source.puri.sm/Librem5/feedbackd/-/archive/v%{version}/%{name}-v%{version}.tar.gz
|
2023-01-31 16:10:13 +08:00
|
|
|
Source1: https://gitlab.gnome.org/guidog/gmobile/-/archive/%{gmobile_commit}/gmobile-%{gmobile_commit}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: 0000-add-dbus-source-deps.patch
|
2022-04-15 14:20:06 +08:00
|
|
|
|
|
|
|
|
BuildRequires: gcc meson systemd-devel vala dbus-daemon
|
|
|
|
|
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(gsound)
|
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0) >= 232
|
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
|
|
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%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 -n libfeedbackd
|
|
|
|
|
Summary: Library for %{name}
|
|
|
|
|
|
|
|
|
|
%description -n libfeedbackd
|
|
|
|
|
The lib%{name} package contains libraries for %{name}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-01-31 16:10:13 +08:00
|
|
|
%setup -a1 -q -n %{name}-v%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
rmdir subprojects/gmobile
|
|
|
|
|
mv gmobile-%{gmobile_commit} subprojects/gmobile
|
2022-04-15 14:20:06 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
install -D -m 644 debian/feedbackd.udev %{buildroot}%{_udevrulesdir}/90-feedbackd.rules
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/fbcli
|
2023-01-31 16:10:13 +08:00
|
|
|
%{_bindir}/fbd-theme-validate
|
2022-04-15 14:20:06 +08:00
|
|
|
%{_libexecdir}/feedbackd
|
|
|
|
|
%{_libexecdir}/fbd-ledctrl
|
|
|
|
|
%{_udevrulesdir}/90-feedbackd.rules
|
|
|
|
|
%{_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
|
|
|
|
|
|
|
|
|
|
%files -n libfeedbackd
|
|
|
|
|
%{_libdir}/libfeedback-0.0.so.0
|
|
|
|
|
%{_libdir}/girepository-1.0/Lfb-0.0.typelib
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/libfeedback-0.0.so
|
|
|
|
|
%{_includedir}/libfeedback-0.0/
|
|
|
|
|
%{_datadir}/vala/vapi/libfeedback-0.0.*
|
|
|
|
|
%{_datadir}/gir-1.0/Lfb-0.0.gir
|
|
|
|
|
%{_libdir}/pkgconfig/libfeedback-0.0.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-01-31 16:10:13 +08:00
|
|
|
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.0.2-1
|
|
|
|
|
- Update to 0.0.2
|
|
|
|
|
|
2022-04-15 14:20:06 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.0.0+git20220208-1
|
|
|
|
|
- Initial packaging
|