File urdfdom_headers.spec of Package urdfdom_headers

#
# spec file for package urdfdom_headers
#
# Copyright (c) 2019 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/
#


Name:           urdfdom_headers
Version:        1.0.4
Release:        0
Summary:        The URDF (U-Robot Description Format) headers
License:        BSD-3-Clause
Group:          Development/Libraries
Url:            http://ros.org/wiki/urdf 
Source0:        https://github.com/ros/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
#Patch0:         urdfdom_headers-1.0.4.diff

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  pkg-config
BuildArch: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
%{summary}

%package devel
Summary: The URDF (U-Robot Description Format) headers
Requires: pkgconfig
BuildArch: noarch
Provides: %{name}-static = %{version}-%{release}
Provides: urdfdom-headers-devel = %{version}-%{release}
Provides: urdfdom-headers-static = %{version}-%{release}

%description devel
The URDF (U-Robot Description Format) headers provides core data structure
headers for URDF.

For now, the details of the URDF specifications reside on
http://ros.org/wiki/urdf

%prep
%setup -qn %{name}-%{version}

%build
%cmake
%cmake_build

%install
%cmake_install
mkdir -pv %{buildroot}/%{_datadir}
mv %{buildroot}/%{_libdir}/%{name} %{buildroot}/%{_datadir}/%{name}
mv %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/%{_datadir}/pkgconfig


%files devel
%license LICENSE
%doc README.md
%{_includedir}/%{name}
%{_datadir}/pkgconfig/*.pc
%{_datadir}/%{name}

%changelog

openSUSE Build Service is sponsored by