File fcl.spec of Package fcl

#
# spec file for package fcl
#
# Copyright (c) 2016 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 sover   7
Name:           fcl
Version:        0.5.0
Release:        0
Summary:        Flexible Collision Library
License:        BSD-3-Clause
Group:          Productivity/Scientific/Other
Url:            http://gamma.cs.unc.edu/FCL/
Source0:        https://github.com/flexible-collision-library/fcl/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(ccd)
BuildRequires:  pkgconfig(flann)
BuildRequires:  pkgconfig(tinyxml2)
BuildRequires:  boost-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
FCL is a library for performing three types of proximity queries on a pair 
of geometric models composed of triangles.

%package -n     lib%{name}%{sover}
Summary:        C++ library for %{name}
Group:          System/Libraries

%description -n lib%{name}%{sover}
FCL is a library for performing three types of proximity queries on a pair 
of geometric models composed of triangles.

This package contains the shared library.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       lib%{name}%{sover} = %{version}

%description    devel
Flexible Collision Library.

This package contains the header files and libraries needed to develop
application that use %{name}.

%prep
%setup -q

%build
%cmake \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo

%make_jobs

%install
%cmake_install

%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig

%files -n lib%{name}%{sover}
%defattr(-,root,root)
%doc LICENSE README* CHANGELOG*
%{_libdir}/lib%{name}.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/

%changelog
openSUSE Build Service is sponsored by