[packages/iio-sensor-proxy] - new

baggins baggins at pld-linux.org
Sun May 24 15:45:48 CEST 2015


commit 5b2608fbb4839000ac64ee103fc4e6813848c95f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 24 15:45:33 2015 +0200

    - new

 iio-sensor-proxy.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
 static-inline.patch   | 38 ++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)
---
diff --git a/iio-sensor-proxy.spec b/iio-sensor-proxy.spec
new file mode 100644
index 0000000..ee834a9
--- /dev/null
+++ b/iio-sensor-proxy.spec
@@ -0,0 +1,65 @@
+Summary:	IIO accelerometer sensor to input device proxy
+Name:		iio-sensor-proxy
+Version:	1.0
+Release:	1
+License:	GPL v2
+Group:		Applications
+Source0:	https://github.com/hadess/iio-sensor-proxy/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	047659bebd9c071862b0b1fd0be093b5
+Patch0:		static-inline.patch
+URL:		https://github.com/hadess/iio-sensor-proxy
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	glib2-devel
+BuildRequires:	gtk-doc
+BuildRequires:	pkg-config
+BuildRequires:	rpmbuild(macros) >= 1.647
+BuildRequires:	udev-glib-devel
+Requires(post,preun,postun):	systemd-units >= 38
+Requires:	systemd-units >= 0.38
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+IIO accelerometer sensor to input device proxy.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gtkdocize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+	--with-udevrulesdir=/lib/udev/rules.d \
+	--with-systemdsystemunitdir=/lib/systemd/system
+
+%{__make} V=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%systemd_post iio-sensor-proxy.service
+
+%preun
+%systemd_preun iio-sensor-proxy.service
+
+%postun
+%systemd_reload
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README.md
+/etc/dbus-1/system.d/net.hadess.SensorProxy.conf
+%{systemdunitdir}/iio-sensor-proxy.service
+/lib/udev/rules.d/40-iio-sensor-proxy.rules
+%attr(755,root,root) %{_bindir}/monitor-sensor
+%attr(755,root,root) %{_sbindir}/iio-sensor-proxy
diff --git a/static-inline.patch b/static-inline.patch
new file mode 100644
index 0000000..620f9fa
--- /dev/null
+++ b/static-inline.patch
@@ -0,0 +1,38 @@
+--- iio-sensor-proxy-1.0/src/drivers.h~	2015-05-22 16:16:20.000000000 +0200
++++ iio-sensor-proxy-1.0/src/drivers.h	2015-05-24 15:35:07.618426157 +0200
+@@ -58,7 +58,7 @@
+ 	void     (*close)       (void);
+ };
+ 
+-inline gboolean
++static inline gboolean
+ driver_discover (SensorDriver *driver,
+ 		 GUdevDevice  *device)
+ {
+@@ -69,7 +69,7 @@
+ 	return driver->discover (device);
+ }
+ 
+-inline gboolean
++static inline gboolean
+ driver_open (SensorDriver       *driver,
+ 	     GUdevDevice        *device,
+ 	     ReadingsUpdateFunc  callback_func,
+@@ -83,7 +83,7 @@
+ 	return driver->open (device, callback_func, user_data);
+ }
+ 
+-inline void
++static inline void
+ driver_set_polling (SensorDriver *driver,
+ 		    gboolean      state)
+ {
+@@ -95,7 +95,7 @@
+ 	driver->set_polling (state);
+ }
+ 
+-inline void
++static inline void
+ driver_close (SensorDriver *driver)
+ {
+ 	g_return_if_fail (driver);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iio-sensor-proxy.git/commitdiff/5b2608fbb4839000ac64ee103fc4e6813848c95f



More information about the pld-cvs-commit mailing list