Fix udev rule (RHBZ #1234744)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2015-06-23 11:06:55 +03:00
parent 1abc6bb96d
commit 5fd4ffff36
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From ea1801cea677474f32d6687bb94d8cab0fecc918 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@opensuse.org>
Date: Sun, 24 May 2015 15:26:58 +0200
Subject: [PATCH] rules: Fix ACTION equality check
ACTION=add --> ACTION==add
---
data/40-iio-sensor-proxy.rules | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/40-iio-sensor-proxy.rules b/data/40-iio-sensor-proxy.rules
index fea4cab..4fb2509 100644
--- a/data/40-iio-sensor-proxy.rules
+++ b/data/40-iio-sensor-proxy.rules
@@ -2,5 +2,5 @@
# IIO accelerometer to input proxy
ACTION=="add", SUBSYSTEM=="iio", TAG+="systemd", ENV{SYSTEMD_WANTS}="iio-sensor-proxy.service"
-SUBSYSTEM=="input", ACTION="add", ENV{ID_INPUT_ACCELEROMETER}=="1", ENV{SYSTEMD_WANTS}="iio-sensor-proxy.service"
-SUBSYSTEM=="platform", ACTION="add", ENV{MODALIAS}=="platform:applesmc", ENV{SYSTEMD_WANTS}="iio-sensor-proxy.service"
+SUBSYSTEM=="input", ACTION=="add", ENV{ID_INPUT_ACCELEROMETER}=="1", ENV{SYSTEMD_WANTS}="iio-sensor-proxy.service"
+SUBSYSTEM=="platform", ACTION=="add", ENV{MODALIAS}=="platform:applesmc", ENV{SYSTEMD_WANTS}="iio-sensor-proxy.service"
--
2.4.4

View File

@ -1,12 +1,15 @@
Name: iio-sensor-proxy Name: iio-sensor-proxy
Version: 1.0 Version: 1.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: IIO accelerometer sensor to input device proxy Summary: IIO accelerometer sensor to input device proxy
License: GPLv3+ License: GPLv3+
URL: https://github.com/hadess/iio-sensor-proxy URL: https://github.com/hadess/iio-sensor-proxy
Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
# https://github.com/hadess/iio-sensor-proxy/commit/ea1801cea677474f32d6687bb94d8cab0fecc918
Patch0: 0001-rules-Fix-ACTION-equality-check.patch
BuildRequires: git
BuildRequires: pkgconfig(udev) pkgconfig(gio-2.0) pkgconfig(gudev-1.0) BuildRequires: pkgconfig(udev) pkgconfig(gio-2.0) pkgconfig(gudev-1.0)
BuildRequires: systemd BuildRequires: systemd
@ -18,7 +21,7 @@ Requires(postun): systemd
%{summary}. %{summary}.
%prep %prep
%autosetup %autosetup -S git
%build %build
%configure --disable-silent-rules %configure --disable-silent-rules
@ -47,6 +50,9 @@ Requires(postun): systemd
%{_sysconfdir}/dbus-1/system.d/net.hadess.SensorProxy.conf %{_sysconfdir}/dbus-1/system.d/net.hadess.SensorProxy.conf
%changelog %changelog
* Tue Jun 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.0-6
- Fix udev rule (RHBZ #1234744)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild