File tweeny.spec of Package tweeny

#
# spec file for package tweeny
#
# 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/
#


Name:           tweeny
Version:        2
Release:        0
Summary:        Modern C++ tweening library
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://github.com/mobius3/%{name}
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  ninja

%description
Header-only %{summary}.

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

%description devel
Header-only %{summary}.

%prep
%autosetup -n %{name}-%{version}
sed -i 's@lib/@%{_libdir}/@g' cmake/SetupExports.cmake

%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DTWEENY_BUILD_EXAMPLES=OFF \
-DTWEENY_BUILD_DOCUMENTATION=OFF \
    ..
%ninja_build

%install
cd build
%ninja_install

%files devel
%doc README.md CHANGELOG.md
%license LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/Tweeny

%changelog
openSUSE Build Service is sponsored by