public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/urdfdom] f45: Iniital import
@ 2026-10-20 21:58 Rich Mattes
  0 siblings, 0 replies; only message in thread
From: Rich Mattes @ 2026-10-20 21:58 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/urdfdom
Branch : f45
Commit : f2559b6e789dbbcd3bd94dd9b90e87e1b0a4eb7b
Author : Rich Mattes <richmattes@gmail.com>
Date   : 2013-08-22T17:53:38-04:00
Stats  : +180/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/urdfdom/c/f2559b6e789dbbcd3bd94dd9b90e87e1b0a4eb7b?branch=f45

Log:
Iniital import

---
diff --git a/.gitignore b/.gitignore
index e69de29..4b23d70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/urdfdom-0.2.8-99671a1.tar.gz

diff --git a/sources b/sources
index e69de29..79fa07d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a4c7b147b3f997328e7abce136b53645  urdfdom-0.2.8-99671a1.tar.gz

diff --git a/urdfdom-0.2.7-libdir.patch b/urdfdom-0.2.7-libdir.patch
new file mode 100644
index 0000000..132207a
--- /dev/null
+++ b/urdfdom-0.2.7-libdir.patch
@@ -0,0 +1,61 @@
+diff -up ./CMakeLists.txt.libdir ./CMakeLists.txt
+--- ./CMakeLists.txt.libdir	2013-03-12 19:36:45.888144600 -0400
++++ ./CMakeLists.txt	2013-03-12 19:37:42.869484588 -0400
+@@ -8,6 +8,7 @@ set (URDF_PATCH_VERSION 7)
+ set (URDF_VERSION ${URDF_MAJOR_VERSION}.${URDF_MINOR_VERSION}.${URDF_PATCH_VERSION})
+ 
+ message (STATUS "${PROJECT_NAME} version ${URDF_VERSION}")
++set (LIB_INSTALL_DIR "lib" CACHE PATH "Library installation directory")
+ 
+ # set the default build type
+ if (NOT CMAKE_BUILD_TYPE)
+@@ -54,7 +55,7 @@ if (NOT MSVC)
+   set(PKG_URDF_LIBS "-lurdfdom_sensor -lurdfdom_model_state -lurdfdom_model -lurdfdom_world")
+   set(pkg_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/cmake/pkgconfig/urdfdom.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()
+ 
+ 
+diff -up ./cmake/pkgconfig/urdfdom.pc.in.libdir ./cmake/pkgconfig/urdfdom.pc.in
+--- ./cmake/pkgconfig/urdfdom.pc.in.libdir	2013-03-12 19:37:58.246115029 -0400
++++ ./cmake/pkgconfig/urdfdom.pc.in	2013-03-12 19:38:13.047721462 -0400
+@@ -1,7 +1,7 @@
+ # This file was generated by CMake for @PROJECT_NAME@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}
+-libdir=${prefix}/lib
++libdir=@LIB_INSTALL_DIR@
+ includedir=${prefix}/include
+ 
+ Name: @PKG_NAME@
+diff -up ./cmake/urdfdom-config.cmake.in.libdir ./cmake/urdfdom-config.cmake.in
+--- ./cmake/urdfdom-config.cmake.in.libdir	2013-03-12 19:38:25.316223848 -0400
++++ ./cmake/urdfdom-config.cmake.in	2013-03-12 19:38:39.296796038 -0400
+@@ -8,7 +8,7 @@ set(@PKG_NAME@_INCLUDE_DIRS @CMAKE_INSTA
+ foreach(lib @PKG_LIBRARIES@)
+   set(onelib "${lib}-NOTFOUND")
+   find_library(onelib ${lib}
+-    PATHS @CMAKE_INSTALL_PREFIX@/lib
++    PATHS @LIB_INSTALL_DIR@
+     NO_DEFAULT_PATH
+     )
+   if(NOT onelib)
+diff -up ./urdf_parser/CMakeLists.txt.libdir ./urdf_parser/CMakeLists.txt
+--- ./urdf_parser/CMakeLists.txt.libdir	2013-03-12 19:38:47.675138788 -0400
++++ ./urdf_parser/CMakeLists.txt	2013-03-12 19:39:46.328535230 -0400
+@@ -24,9 +24,9 @@ add_executable(urdf_mem_test test/memtes
+ target_link_libraries(urdf_mem_test urdfdom_model)
+ 
+ 
+-INSTALL(TARGETS urdfdom_model DESTINATION lib/)
+-INSTALL(TARGETS urdfdom_world DESTINATION lib/)
++INSTALL(TARGETS urdfdom_model DESTINATION ${LIB_INSTALL_DIR})
++INSTALL(TARGETS urdfdom_world DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL(TARGETS check_urdf urdf_to_graphiz urdf_mem_test DESTINATION share/${PROJECT_NAME})
+-INSTALL(TARGETS urdfdom_sensor DESTINATION lib/)
+-INSTALL(TARGETS urdfdom_model_state DESTINATION lib/)
++INSTALL(TARGETS urdfdom_sensor DESTINATION ${LIB_INSTALL_DIR})
++INSTALL(TARGETS urdfdom_model_state DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL(DIRECTORY include/urdf_parser DESTINATION include)

diff --git a/urdfdom-0.2.8-soname.patch b/urdfdom-0.2.8-soname.patch
new file mode 100644
index 0000000..4197c9d
--- /dev/null
+++ b/urdfdom-0.2.8-soname.patch
@@ -0,0 +1,36 @@
+From 6295b5bdfcbca13a8842d1912f9c5dbe4b1769e5 Mon Sep 17 00:00:00 2001
+From: thomas moulard <thomas.moulard@gmail.com>
+Date: Thu, 4 Jul 2013 00:05:24 +0900
+Subject: [PATCH] Add SOVERSION
+
+---
+ urdf_parser/CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/urdf_parser/CMakeLists.txt b/urdf_parser/CMakeLists.txt
+index 605d64c..cd23331 100644
+--- a/urdf_parser/CMakeLists.txt
++++ b/urdf_parser/CMakeLists.txt
+@@ -2,15 +2,19 @@ include_directories(include)
+ 
+ add_library(urdfdom_world SHARED src/pose.cpp src/model.cpp src/link.cpp src/joint.cpp src/world.cpp)
+ target_link_libraries(urdfdom_world ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
++set_target_properties(urdfdom_world PROPERTIES SOVERSION 0.2)
+ 
+ add_library(urdfdom_model SHARED src/pose.cpp src/model.cpp src/link.cpp src/joint.cpp)
+ target_link_libraries(urdfdom_model ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
++set_target_properties(urdfdom_model PROPERTIES SOVERSION 0.2)
+ 
+ add_library(urdfdom_sensor SHARED src/urdf_sensor.cpp)
+ target_link_libraries(urdfdom_sensor urdfdom_model ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
++set_target_properties(urdfdom_sensor PROPERTIES SOVERSION 0.2)
+ 
+ add_library(urdfdom_model_state SHARED src/urdf_model_state.cpp src/twist.cpp)
+ target_link_libraries(urdfdom_model_state ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
++set_target_properties(urdfdom_model_state PROPERTIES SOVERSION 0.2)
+ 
+ # --------------------------------
+ 
+-- 
+1.8.1.6
+

diff --git a/urdfdom.spec b/urdfdom.spec
new file mode 100644
index 0000000..330604c
--- /dev/null
+++ b/urdfdom.spec
@@ -0,0 +1,81 @@
+%global commit 99671a12b4c6794341bc6f71ce0cf08448cace68
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:		urdfdom
+Version:	0.2.8
+Release:	2%{?dist}
+Summary:	U-Robot Description Format Document Object Model
+
+Group:		Development/Libraries
+License:	BSD
+URL:		http://ros.org/wiki/urdf
+Source0:	https://github.com/ros/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+# Allow for installing libraries into /usr/lib64 on 64 bit systems
+Patch0:		%{name}-0.2.7-libdir.patch
+# Add SONAME to all libraries
+# Taken from https://github.com/ros/urdfdom/commit/6295b5bdfcbca13a8842d1912f9c5dbe4b1769e5.patch
+Patch1:		%{name}-0.2.8-soname.patch
+BuildRequires:	boost-devel
+BuildRequires:	cmake
+BuildRequires:	urdfdom-headers-devel
+BuildRequires:	console-bridge-devel
+BuildRequires:	tinyxml-devel
+
+%description
+The URDF (U-Robot Description Format) library
+provides core data structures and a simple XML parser
+for populating the class data structures from an URDF file
+
+%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 -qn %{name}-%{commit}
+%patch0 -p0 -b .libdir
+%patch1 -p1
+
+%build
+%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+mkdir -p %{buildroot}%{_bindir}
+mv %{buildroot}%{_datadir}/%{name}/{urdf_mem_test,check_urdf,urdf_to_graphiz} %{buildroot}%{_bindir}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc LICENSE
+%{_bindir}/*
+%{_libdir}/*.so.*
+%{_datadir}/%{name}
+
+%files devel
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_includedir}/urdf_parser
+
+%changelog
+* Wed Aug 21 2013 Rich Mattes <richmattes@gmail.com> - 0.2.8-2
+- Backport upstream SONAME patch
+- Add ldconfig post and postun
+
+* Mon Aug 19 2013 Rich Mattes <richmattes@gmail.com> - 0.2.8-1
+- Update to release 0.2.8
+- Change upstream to github
+
+* Tue Mar 12 2013 Rich Mattes <richmattes@gmail.com> - 0.2.7-1
+- Update to release 0.2.7
+
+* Tue Oct 16 2012 Rich Mattes <richmattes@gmail.com> - 0.2.3-1
+- Initial package

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 21:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 21:58 [rpms/urdfdom] f45: Iniital import Rich Mattes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox