From 6af0a47ba2332463a32387bf5c41eb8063708a30 Mon Sep 17 00:00:00 2001 From: Rich Mattes Date: Sep 18 2015 00:55:47 +0000 Subject: Initial import of sicktoolbox package --- diff --git a/.gitignore b/.gitignore index e69de29..3b05394 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sicktoolbox-1.0.1.tar.gz diff --git a/sicktoolbox-1.0.1-fixbuild.patch b/sicktoolbox-1.0.1-fixbuild.patch new file mode 100644 index 0000000..c405c18 --- /dev/null +++ b/sicktoolbox-1.0.1-fixbuild.patch @@ -0,0 +1,22 @@ +diff -up ./c++/drivers/base/src/SickBufferMonitor.hh.fixbuild ./c++/drivers/base/src/SickBufferMonitor.hh +--- ./c++/drivers/base/src/SickBufferMonitor.hh.fixbuild 2012-06-05 00:29:35.811240422 -0400 ++++ ./c++/drivers/base/src/SickBufferMonitor.hh 2012-06-05 00:29:47.618715078 -0400 +@@ -19,6 +19,7 @@ + /* Dependencies */ + #include + #include ++#include + #include "SickException.hh" + + /* Associate the namespace */ +diff -up ./c++/drivers/base/src/SickLIDAR.hh.fixbuild ./c++/drivers/base/src/SickLIDAR.hh +--- ./c++/drivers/base/src/SickLIDAR.hh.fixbuild 2012-06-05 00:30:27.465333978 -0400 ++++ ./c++/drivers/base/src/SickLIDAR.hh 2012-06-05 00:30:48.265187681 -0400 +@@ -31,6 +31,7 @@ + #define SICK_LIDAR + + /* Definition dependencies */ ++#include + #include + #include + #include diff --git a/sicktoolbox.spec b/sicktoolbox.spec new file mode 100644 index 0000000..11511ef --- /dev/null +++ b/sicktoolbox.spec @@ -0,0 +1,77 @@ +Name: sicktoolbox +Version: 1.0.1 +Release: 4%{?dist} +Summary: The SICK LIDAR Toolbox + +License: BSD +URL: http://sicktoolbox.sourceforge.net +Source0: http://downloads.sourceforge.net/%{name}/%{version}/%{name}-%{version}.tar.gz +# Add missing unistd.h to source files. +# Filed upstream at https://sourceforge.net/tracker/?func=detail&aid=3577232&group_id=219500&atid=1047068 +Patch0: %{name}-1.0.1-fixbuild.patch + +%description +The Sick LIDAR Toolbox is an open-source software package released under a +BSD Open-Source License that provides stable and easy-to-use C++ drivers +for Sick LMS 2xx and Sick LD laser range finders. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Development headers and libraries for %{name} + +%description devel +Development headers and libraries for %{name} + +%package doc +Requires: %{name} = %{version}-%{release} +Summary: Documentation for %{name} +BuildArch: noarch + +%description doc +Assorted documentation for %{name}. + +%prep +%setup -q +%patch0 -p0 + +%build +%configure --disable-static --program-prefix=sick_ +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -rf %{buildroot}%{_libdir}/*.la + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS COPYING ChangeLog README THANKS NEWS +%{_bindir}/*_config +%{_libdir}/*.so.* + +%files devel +%{_libdir}/*.so +%{_includedir}/sicklms-1.0 +%{_includedir}/sickld-1.0 + +%files doc +%doc manuals/*.pdf + +%changelog +* Fri Sep 18 2015 Rich Mattes - 1.0.1-4 +- Address last comments from package review + +* Sat Sep 05 2015 Rich Mattes - 1.0.1-3 +- Disabled static libraries +- Added "sick_" program prefix for binaries + +* Sun Oct 14 2012 Rich Mattes - 1.0.1-2 +- Split off -doc subpackage with pdf documentation +- Got rid of dependency on chrpath +- Added link to upstream tracker for fixbuild patch + +* Tue Jun 05 2012 Rich Mattes - 1.0.1-1 +- Initial package (rhbz#829097) diff --git a/sources b/sources index e69de29..85678b1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e8953d3861d07e12b2f4628c9318c901 sicktoolbox-1.0.1.tar.gz