thofmann pushed to libkindrv (f22). "Initial package import (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 16 08:46:47 UTC 2015


>From 4297a837ff96db63e0031427f1c1a2bd0cd2f05f Mon Sep 17 00:00:00 2001
From: Till Hofmann <hofmann at kbsg.rwth-aachen.de>
Date: Thu, 16 Apr 2015 10:34:38 +0200
Subject: Initial package import

review: BZ #1210004

diff --git a/.gitignore b/.gitignore
index e69de29..dbbd402 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libkindrv-f56752e.tar.gz
diff --git a/libkindrv.printf.patch b/libkindrv.printf.patch
new file mode 100644
index 0000000..aead88e
--- /dev/null
+++ b/libkindrv.printf.patch
@@ -0,0 +1,16 @@
+diff --git a/src/kindrv.cpp b/src/kindrv.cpp
+index 598ca51..9bb4744 100644
+--- a/src/kindrv.cpp
++++ b/src/kindrv.cpp
+@@ -290,9 +290,9 @@ list_devices()
+   ssize_t cnt;
+   cnt = libusb_get_device_list(__ctx, &__devices);
+   if( cnt<0 ) {
+-    fprintf( stderr, "Get_device_list error: %li \n", cnt);
++    fprintf( stderr, "Get_device_list error: %zi \n", cnt);
+   } else {
+-    printf("%li USB devices detected \n", cnt);
++    printf("%zi USB devices detected \n", cnt);
+ 
+     list_devices(__devices);
+ 
diff --git a/libkindrv.spec b/libkindrv.spec
new file mode 100644
index 0000000..26dabdf
--- /dev/null
+++ b/libkindrv.spec
@@ -0,0 +1,79 @@
+Name:       libkindrv
+Version:    0.1.2
+Release:    1%{?dist}
+Summary:    Driver for controlling robotic arms by Kinova
+
+License:    LGPLv3+
+URL:        http://fawkesrobotics.org/projects/libkindrv/
+
+
+%global commit f56752e15db2fa58e5748ce2f82e4a424d6c0337
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+Source0:    http://git.fawkesrobotics.org/libkindrv.git/snapshot/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
+# merged in upstream master, will be removed once a new version has been tagged
+Patch0: libkindrv.printf.patch
+
+BuildRequires:  cmake doxygen libusb-devel boost-devel boost-system
+
+%description
+This driver allows to navigate robotic arms by Kinova.
+It supports different modes for arm navigation and finger control.
+
+%package    devel
+Summary:    Development files for %{name}
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+%description  devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n %{name}-%{shortcommit}
+%patch0 -p1
+
+
+%build
+mkdir build
+pushd build
+# we build the doc separately because we only want it in libkindrv-devel
+# and 'make install' would install it in the wrong directory
+%cmake \
+  -DBUILD_DOC=OFF \
+  .. 
+
+make %{?_smp_mflags}
+
+make %{?_smp_mflags} apidoc
+
+
+%install
+pushd build
+make install DESTDIR=%{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%license LICENSE.GPL LICENSE.LGPL
+%{_libdir}/libkindrv.so.*
+%config(noreplace) %{_sysconfdir}/udev/rules.d/*
+
+
+%files devel
+%doc build/doc/html
+%{_includedir}/*
+%{_libdir}/libkindrv.so
+%{_libdir}/pkgconfig/libkindrv.pc
+
+
+%changelog
+* Mon Apr 06 2015 Till Hofmann <hofmann at kbsg.rwth-aachen.de> - 0.1.2-1
+- Update to 0.1.2
+* Wed Jul 02 2014 Till Hofmann <hofmann at kbsg.rwth-aachen.de> - 0.1.0-1.20140702
+- Update to 0.1.0
+* Tue Jun 03 2014 Till Hofmann <hofmann at kbsg.rwth-aachen.de> - 0.1.0-1.20140617
+- Initial package
diff --git a/sources b/sources
index e69de29..5b5aa5c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eea7d5a535a08b25e89ea5312e3ad5c6  libkindrv-f56752e.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/libkindrv.git/commit/?h=f22&id=4297a837ff96db63e0031427f1c1a2bd0cd2f05f


More information about the scm-commits mailing list