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