From b9d4c66ebdd767db07edc3363d3df499857bd28d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 24 May 2015 23:45:25 +0300 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + iio-sensor-proxy.spec | 58 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 iio-sensor-proxy.spec diff --git a/.gitignore b/.gitignore index e69de29..fe82fa6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/iio-sensor-proxy-1.0.tar.xz diff --git a/iio-sensor-proxy.spec b/iio-sensor-proxy.spec new file mode 100644 index 0000000..8512a5a --- /dev/null +++ b/iio-sensor-proxy.spec @@ -0,0 +1,58 @@ +Name: iio-sensor-proxy +Version: 1.0 +Release: 3%{?dist} +Summary: IIO accelerometer sensor to input device proxy + +License: GPLv2+ +URL: https://github.com/hadess/iio-sensor-proxy +Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz + +BuildRequires: pkgconfig(udev) pkgconfig(gio-2.0) pkgconfig(gudev-1.0) +BuildRequires: systemd + +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +%{summary}. + +%prep +%autosetup + +%build +%configure --disable-silent-rules +%make_build + +%install +%make_install + +%post +%systemd_post %{name}.service +%udev_hwdb_update + +%preun +%systemd_preun %{name}.service + +%postun +%systemd_postun_with_restart %{name}.service + +%files +%license COPYING +%doc README +%{_bindir}/monitor-sensor +%{_sbindir}/%{name} +%{_unitdir}/%{name}.service +%{_udevrulesdir}/40-%{name}.rules +%{_sysconfdir}/dbus-1/system.d/net.hadess.SensorProxy.conf + +%changelog +* Sun May 24 2015 Igor Gnatenko - 1.0-3 +- Fix license tag +- Disable silent building + +* Sat May 23 2015 Igor Gnatenko - 1.0-2 +- Use _udevrules dir instead of custom detecting rules dir + +* Sat May 23 2015 Igor Gnatenko - 1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..efadfb0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c63fd69023a52adf369a371d22cc2ece iio-sensor-proxy-1.0.tar.xz