Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:awissu:gazebo
sdformat4
sdformat.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sdformat.spec of Package sdformat4
# # spec file for package sdformat # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define hash 1ac0f8df39f6 %define major 6 %define sover 6 Name: sdformat Version: 6.0.0 Release: 0 Summary: Simulation Description Format (SDF) parser License: Apache-2.0 Group: Productivity/Scientific/Other URL: http://sdformat.org/ Source0: https://bitbucket.org/osrf/sdformat/get/%{name}%{sover}_%{version}.tar.bz2#/osrf-sdformat-%{hash}.tar.bz2 BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: ignition-cmake-modules BuildRequires: pkgconfig BuildRequires: python-psutil BuildRequires: tinyxml-devel BuildRequires: pkgconfig(ignition-math4) BuildRequires: pkgconfig(ignition-tools) BuildRequires: pkgconfig(urdfdom) BuildRequires: rubygem(%{rb_default_ruby_abi}:ronn) %if 0%{?suse_version} < 1320 BuildRequires: boost-devel %else BuildRequires: libboost_filesystem-devel BuildRequires: libboost_iostreams-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_regex-devel BuildRequires: libboost_system-devel %endif %description SDF is an XML format that describes objects and environments for robot simulators, visualization, and control. %package -n libsdformat%{sover} Summary: C++ library for %{name} Group: System/Libraries %description -n libsdformat%{sover} SDF is an XML format that describes objects and environments for robot simulators, visualization, and control. This package contains the shared library. %package sdf Summary: SDF files Group: System/Libraries Requires: libsdformat%{sover} Provides: sdformat-sdf = %{version} Obsoletes: sdformat-sdf > %{version} Obsoletes: sdformat-sdf < %{version} %description sdf Simulation Description Format (SDF) parser. This package contains SDF (Simulation Description Format) XML files needed by the libsdformat. %package ruby Summary: The ruby command line library Group: System/Libraries %description ruby Simulation Description Format (SDF) parser. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: libsdformat%{sover} = %{version} %description devel Simulation Description Format (SDF) parser. This package contains the header files and libraries needed to develop application that use %{name}. %prep %setup -q -n osrf-sdformat-%{hash} # Disable quiet mode sed -i '/[.0-9]\+/s/\ QUIET//' cmake/SearchForStuff.cmake # Fix: SDFormat is not installed properly sed -e '/LIB_INSTALL_DIR/s/@CMAKE_INSTALL_PREFIX@//' \ -i cmake/sdf_config.cmake.in %build export CFLAGS="%{optflags} -pthread" %ifarch %{ix86} export CFLAGS="${CFLAGS} -msse2 -mfpmath=sse" %endif export CXXFLAGS="${CFLAGS}" %cmake \ -DUSE_HOST_CFLAGS=OFF \ -DUSE_HOST_SSE_FLAGS=OFF \ -DUSE_UPSTREAM_CFLAGS=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="${CXXFLAGS}" %make_jobs %install %cmake_install %fdupes %{buildroot}%{_datadir}/%{name} # Install the ruby command line library in ruby-stdlib mkdir -p %{buildroot}%{rb_libdir}/ignition mv %{buildroot}{%{_libexecdir}/ruby/ignition,%{rb_libdir}/ignition}/cmdsdformat%{major}.rb sed -e '/library_path/s|[^: ]*$|%{rb_libdir}/ignition/cmdsdformat{major}|' \ -i $(grep -rl 'library_path' %{buildroot}%{_datadir}/ignition/sdformat%{major}.yaml) %post -n libsdformat%{sover} -p /sbin/ldconfig %postun -n libsdformat%{sover} -p /sbin/ldconfig %files -n libsdformat%{sover} %license COPYING LICENSE %doc AUTHORS Changelog.md %{_libdir}/libsdformat.so.* %files sdf %{_datadir}/sdformat/ %files ruby %dir %{_datadir}/ignition %dir %{rb_libdir}/ignition %{_datadir}/ignition/sdformat%{major}.yaml %attr(0755,root,root) %{rb_libdir}/ignition/cmdsdformat%{major}.rb %files devel %{_includedir}/sdformat*/ %{_libdir}/cmake/sdformat/ %{_libdir}/libsdformat.so %{_libdir}/pkgconfig/sdformat.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor