Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
testing:hw
:
oneplus
:
bacon
>
mce-plugin-libhybris
> _service:tar_git:mce-plugin-libhybris.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:mce-plugin-libhybris.spec of Package mce-plugin-libhybris
Name: mce-plugin-libhybris Summary: Libhybris plugin for Mode Control Entity Version: 1.14.2 Release: 1 Group: System/System Control License: LGPLv2.1 URL: https://github.com/nemomobile/mce-plugin-libhybris Source0: %{name}-%{version}.tar.bz2 Requires: mce >= 1.12.10 Requires: systemd Requires(pre): systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd BuildRequires: pkgconfig(glib-2.0) >= 2.18.0 BuildRequires: pkgconfig(libhardware) BuildRequires: pkgconfig(android-headers) BuildRequires: systemd %description This package contains a mce plugin that allows mce to use Android libhardware via libhybris to control for example display brightness and enable/disable input from proximity and light sensors. %prep %setup -q -n %{name}-%{version} %build make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} _LIBDIR=%{_libdir} # rpm automajick needs +x bits on all elf files after install chmod 755 %{buildroot}%{_libdir}/mce/modules/hybris.so %pre if [ "$1" = "2" ]; then # upgrade systemctl stop mce.service || : fi %post # upgrade or install systemctl restart mce.service || : %preun if [ "$1" = "0" ]; then # uninstall systemctl stop mce.service || : fi %postun if [ "$1" = "0" ]; then # uninstall systemctl start mce.service || : fi %files %defattr(-,root,root,-) %doc COPYING # do not include the bogus +x bit for packaged DSOs %attr(644,-,-) %{_libdir}/mce/modules/hybris.so