%global apiver_major 6 %global apiver %{apiver_major}.3 Name: sdformat Version: 16.0.0 Release: %autorelease Summary: The Simulation Description Format License: Apache-2.0 URL: http://sdformat.org/ Source0: https://github.com/gazebosim/%{name}/archive/sdformat16_%{version}/%{name}-%{version}.tar.gz # Disable doxygen latex documentation #Patch0: %{name}-2.0.1-latex.patch # Make ruby install path configurable # Fix Ruby exists? #Patch2: %{name}-6.3.1-fixruby.patch # Use URDF include directory #Patch3: %{name}-6.3.1-urdfinclude.patch BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: cmake BuildRequires: doxygen BuildRequires: graphviz BuildRequires: gtest-devel BuildRequires: ignition-cmake-devel BuildRequires: ignition-math-devel >= 4 BuildRequires: ruby-devel >= 1.9 BuildRequires: /usr/bin/ruby BuildRequires: rubygem-multi_xml BuildRequires: rubygem-rexml BuildRequires: texlive-refman BuildRequires: tinyxml-devel BuildRequires: urdfdom-devel #Test dependencies BuildRequires: python3 %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 Requires: tinyxml-devel %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 %autosetup -p1 -n %{name}-%{name}6_%{version} # Remove bundled urdf components rm -rf src/urdf sed -i 's/unset/#unset/g' CMakeLists.txt %build # TODO: Please submit an issue to upstream (rhbz#2381441) export CMAKE_POLICY_VERSION_MINIMUM=3.5 %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_INSTALL_DIR:STRING=%{_lib} \ -DRUBY_LIB_INSTALL_DIR:STRING=%{ruby_vendorlibdir} \ -DUSE_EXTERNAL_URDF=ON \ -DSSE3_FOUND=false \ -DSSSE3_FOUND=false \ -DSSE4_1_FOUND=false \ -DSSE4_2_FOUND=false \ %ifnarch x86_64 -DSSE2_FOUND=false \ %endif -DUSE_UPSTREAM_CFLAGS=false \ %cmake_build %cmake_build --target doc %install %cmake_install %check # The INTEGRATION_schema_test uses xmllint to validate flies # against schemas. It requires an internet connection, so it # fails when built on koji export GTEST_COLOR=no %ctest --verbose --exclude-regex INTEGRATION_schema_test %files %license LICENSE COPYING %doc AUTHORS README.md Changelog.md Migration.md %{_datadir}/%{name} %{_datadir}/ignition/sdformat%{apiver_major}.yaml %{ruby_vendorlibdir}/ignition/cmdsdformat%{apiver_major}.rb %{_libdir}/*.so.%{apiver_major} %{_libdir}/*.so.%{version} %files devel %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/%{name}-%{apiver} %{_libdir}/cmake/%{name} %files doc %license LICENSE COPYING %doc %{_vpath_builddir}/doxygen/html %changelog %autochangelog