2014-09-07 14:26:10 +00:00
|
|
|
%global hghash d79259b26096
|
2014-04-15 23:32:40 +00:00
|
|
|
%global apiver 2.0
|
2013-11-22 03:48:49 +00:00
|
|
|
|
|
|
|
Name: sdformat
|
2014-08-20 23:14:37 +00:00
|
|
|
Version: 2.0.1
|
2015-01-29 11:35:59 +00:00
|
|
|
Release: 3%{?dist}
|
2013-11-22 03:48:49 +00:00
|
|
|
Summary: The Simulation Description Format
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://gazebosim.org/sdf.html
|
2014-08-20 23:14:37 +00:00
|
|
|
Source0: https://bitbucket.org/osrf/%{name}/get/%{name}2_%{version}.tar.bz2
|
2013-11-22 03:48:49 +00:00
|
|
|
# Unbundle urdfdom and urdfdom-headers from sdformat, build against system versions.
|
2014-01-26 18:42:52 +00:00
|
|
|
# Work progressing upstream
|
2014-08-23 18:43:48 +00:00
|
|
|
Patch0: sdformat-2.0.1-urdfdom.patch
|
2013-11-22 03:48:49 +00:00
|
|
|
# Automatically discovers and uses system gtest if available.
|
|
|
|
# Not yet submitted upstream
|
|
|
|
Patch1: sdformat-1.4.10-gtest.patch
|
2014-08-23 18:43:48 +00:00
|
|
|
# Changes from the upstream "update_urdf_3.0" branch to parser_urdf.cc
|
|
|
|
Patch2: sdformat-2.0.1-urdf3.patch
|
2013-11-22 03:48:49 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen-latex
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
BuildRequires: texlive-refman
|
|
|
|
BuildRequires: tinyxml-devel
|
|
|
|
BuildRequires: urdfdom-devel
|
|
|
|
|
2014-08-23 18:43:48 +00:00
|
|
|
#Test dependencies
|
|
|
|
BuildRequires: python
|
|
|
|
|
2013-11-22 03:48:49 +00:00
|
|
|
%description
|
|
|
|
The Simulation Description Format (SDF) is an XML file format used to
|
|
|
|
describe all the elements in a software simulation environment. Originally
|
|
|
|
part of the Gazebo 3D robotic simulator, %{name} is a C++ library for reading
|
|
|
|
and writing files in the sdf format.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files and libraries for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
# For libdir/cmake directory
|
|
|
|
Requires: cmake
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The %{name}-doc package contains development documentation for
|
|
|
|
%{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n osrf-%{name}-%{hghash}
|
|
|
|
%patch0 -p0 -b .urdfdom
|
|
|
|
%patch1 -p0 -b .gtest
|
2014-08-23 18:43:48 +00:00
|
|
|
%patch2 -p1 -b .urdf3
|
2013-11-22 03:48:49 +00:00
|
|
|
# Remove bundled urdf components
|
|
|
|
rm -rf src/urdf
|
|
|
|
rm -rf test/gtest
|
|
|
|
|
|
|
|
%build
|
2014-08-23 18:43:48 +00:00
|
|
|
mkdir build
|
|
|
|
pushd build
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_CXX_FLAGS_NONE="%{optflags}" -DLIB_INSTALL_DIR:STRING=%{_lib} -DUSE_EXTERNAL_URDF=ON -DUSE_EXTERNAL_GTEST=ON ..
|
|
|
|
|
2013-11-22 03:48:49 +00:00
|
|
|
popd
|
2014-08-23 18:43:48 +00:00
|
|
|
cat build/sdf/sdf_config.h
|
2013-11-22 03:48:49 +00:00
|
|
|
make -C build %{?_smp_mflags}
|
|
|
|
make -C build doc
|
|
|
|
|
|
|
|
%install
|
|
|
|
make -C build install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
2014-08-23 18:43:48 +00:00
|
|
|
make -C build test || cat build/Testing/Temporary/LastTest.log
|
2013-11-22 03:48:49 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS COPYING LICENSE README
|
|
|
|
%exclude %{_datadir}/%{name}/cmake
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_includedir}/%{name}-%{apiver}
|
|
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc build/doxygen/html
|
|
|
|
|
|
|
|
%changelog
|
2015-01-29 11:35:59 +00:00
|
|
|
* Thu Jan 29 2015 Petr Machata <pmachata@redhat.com> - 2.0.1-3
|
|
|
|
- Rebuild for boost 1.57.0
|
|
|
|
|
2014-09-07 14:26:10 +00:00
|
|
|
* Sun Sep 07 2014 Rich Mattes <richmattes@gmail.com> - 2.0.1-2
|
|
|
|
- Added CMake version script
|
|
|
|
|
2014-08-23 18:43:48 +00:00
|
|
|
* Sat Aug 23 2014 Rich Mattes <richmattes@gmail.com> - 2.0.1-1
|
|
|
|
- Update to release 2.0.1
|
|
|
|
- Apply upstream patch for urdfdom 0.3 support
|
|
|
|
|
2014-08-18 01:51:27 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 06:02:23 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-26 18:37:49 +00:00
|
|
|
* Mon May 26 2014 Rich Mattes <richmattes@gmail.com> - 2.0.0-3
|
|
|
|
- Apply patch for urdf 0.3.0 compatibility
|
|
|
|
|
2014-05-25 16:13:15 +00:00
|
|
|
* Sun May 25 2014 Petr Machata <pmachata@redhat.com> - 2.0.0-3
|
|
|
|
- Rebuild for boost 1.55.0
|
|
|
|
|
2014-05-23 10:09:45 +00:00
|
|
|
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 2.0.0-2
|
|
|
|
- rebuild for boost 1.55.0
|
|
|
|
|
2014-04-15 23:32:40 +00:00
|
|
|
* Tue Apr 15 2014 Rich Mattes <richmattes@gmail.com> - 2.0.0-1
|
|
|
|
- Update to release 2.0
|
|
|
|
|
2014-02-09 19:17:05 +00:00
|
|
|
* Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 1.4.11-3
|
|
|
|
- Rebuild for console-bridge 0.2.5
|
|
|
|
|
2014-01-26 18:42:52 +00:00
|
|
|
* Sun Jan 26 2014 Rich Mattes <richmattes@gmail.com> - 1.4.11-2
|
|
|
|
- Declare LIB_INSTALL_DIR relative to CMAKE_INSTALL_PREFIX (rhbz#1057939)
|
|
|
|
|
2013-11-27 17:29:29 +00:00
|
|
|
* Wed Nov 27 2013 Rich Mattes <richmattes@gmail.com> - 1.4.11-1
|
|
|
|
- Update to release 1.4.11
|
|
|
|
|
2013-11-22 03:48:49 +00:00
|
|
|
* Tue Nov 19 2013 Rich Mattes <richmattes@gmail.com> - 1.4.10-2
|
|
|
|
- Moved documentation into a separate subpackage
|
|
|
|
- Removed bundled gtest
|
|
|
|
|
|
|
|
* Sat Nov 16 2013 Rich Mattes <richmattes@gmail.com> - 1.4.10-1
|
|
|
|
- Update to release 1.4.10
|
|
|
|
- Add BuildRequres for tinyxml
|
|
|
|
|
|
|
|
* Wed Oct 09 2013 Rich Mattes <richmattes@gmail.com> - 1.4.8-2
|
|
|
|
- Unbundle urdfdom and urdfdom-headers
|
|
|
|
|
|
|
|
* Sun Oct 06 2013 Rich Mattes <richmattes@gmail.com> - 1.4.8-1
|
|
|
|
- Update to release 1.4.8
|
|
|
|
|
|
|
|
* Tue Aug 20 2013 Rich Mattes <richmattes@gmail.com> - 1.4.5-2
|
|
|
|
- Updated description field
|
|
|
|
|
|
|
|
* Sat Aug 17 2013 Rich Mattes <richmattes@gmail.com> - 1.4.5-1
|
|
|
|
- Initial package
|