[console-bridge] Initial import

rmattes rmattes at fedoraproject.org
Sat Apr 27 19:19:06 UTC 2013


commit 79e7a298df23bfda1b34d344ccd6350d871ef666
Author: Rich Mattes <richmattes at gmail.com>
Date:   Sat Apr 27 15:18:52 2013 -0400

    Initial import

 .gitignore                        |    1 +
 console-bridge-0.1.4-libdir.patch |   33 +++++++++++++++++
 console-bridge.spec               |   70 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4cdff24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ros-console_bridge-0.1.4-0-g96c8951.tar.gz
diff --git a/console-bridge-0.1.4-libdir.patch b/console-bridge-0.1.4-libdir.patch
new file mode 100644
index 0000000..4451363
--- /dev/null
+++ b/console-bridge-0.1.4-libdir.patch
@@ -0,0 +1,33 @@
+diff -up ./CMakeLists.txt.libdir ./CMakeLists.txt
+--- ./CMakeLists.txt.libdir	2013-03-12 18:43:34.000000000 -0400
++++ ./CMakeLists.txt	2013-04-09 19:08:55.086137126 -0400
+@@ -15,15 +15,19 @@ if(MSVC)
+   add_definitions(-DBOOST_ALL_NO_LIB)
+ endif(MSVC)
+ 
++set(PROJECT_SOVERSION "0" CACHE STRING "Library SOVERSION")
++set(LIB_INSTALL_DIR "lib" CACHE PATH "Library installation directory")
++
+ include_directories(include)
+ include_directories(${Boost_INCLUDE_DIR})
+ link_directories(${Boost_LIBRARY_DIRS})
+ 
+ add_library(${PROJECT_NAME} SHARED src/console.cpp)
+ target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
++set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_SOVERSION})
+ 
+ install(TARGETS ${PROJECT_NAME}
+-  DESTINATION lib/)
++  DESTINATION ${LIB_INSTALL_DIR})
+ 
+ install(DIRECTORY include/
+   DESTINATION include
+@@ -40,7 +44,7 @@ if (NOT MSVC)
+   set(PKG_CB_LIBS "-l${PROJECT_NAME}")
+   set(pkg_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/console_bridge.pc")
+   configure_file("${pkg_conf_file}.in" "${pkg_conf_file}" @ONLY)
+-  install(FILES ${pkg_conf_file} DESTINATION lib/pkgconfig/ COMPONENT pkgconfig)
++  install(FILES ${pkg_conf_file} DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ COMPONENT pkgconfig)
+ endif()
+ 
+ # Install catkin package.xml
diff --git a/console-bridge.spec b/console-bridge.spec
new file mode 100644
index 0000000..a1c063f
--- /dev/null
+++ b/console-bridge.spec
@@ -0,0 +1,70 @@
+%global realname console_bridge
+%global gitrev 96c8951
+Name:		console-bridge
+Version:	0.1.4
+Release:	2%{?dist}
+Summary:	Lightweight set of macros used for reporting information in libraries
+
+Group:		Development/Libraries
+License:	BSD
+URL:		http://ros.org/wiki/console_bridge
+# wget --content-disposition https://github.com/ros/console_bridge/tarball/0.1.4
+Source0:	ros-%{realname}-%{version}-0-g%{gitrev}.tar.gz
+# Makes library installation directory configurable.  Not yet upstream
+Patch0:		%{name}-0.1.4-libdir.patch
+
+BuildRequires:	cmake
+BuildRequires:	boost-devel
+
+%description
+A very lightweight set of macros that can be used for reporting information 
+in libraries. The logged information can be forwarded to other systems.
+
+%package devel
+Summary:	Development files for %{name}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%summary 
+
+%prep
+%setup -q -n ros-%{realname}-%{gitrev}
+%patch0 -p0 -b .libdir
+
+%build
+mkdir build; pushd build
+%cmake ..
+popd
+make -C build %{?_smp_mflags}
+
+
+%install
+make -C build install DESTDIR=%{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/*.so.*
+
+%files devel
+%{_libdir}/*.so
+%{_includedir}/%{realname}
+%{_libdir}/pkgconfig/*.pc
+%{_datadir}/%{realname}
+
+
+%changelog
+* Tue Apr 09 2013 Rich Mattes <richmattes at gmail.com> - 0.1.4-2
+- Add ldconfig calls
+- Add patch to create a soversion, set it to 0
+
+* Tue Mar 12 2013 Rich Mattes <richmattes at gmail.com> - 0.1.4-1
+- Update to release 0.1.4
+
+* Sun Dec 02 2012 Rich Mattes <richmattes at gmail.com> - 0.1.2-2
+- Fixed library path in console_bridge-config.cmake
+
+* Sat Oct 13 2012 Rich Mattes <richmattes at gmail.com> - 0.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..3f56683 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e399c3a72afa7875956a6a404d8095a1  ros-console_bridge-0.1.4-0-g96c8951.tar.gz


More information about the scm-commits mailing list