File rlottie.spec of Package rlottie
#
# spec file for package rlottie
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: rlottie
Version: 0.2
Release: 0
Summary: Platform independent standalone library that plays Lottie Animation
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: MIT AND FTL AND BSD-3-Clause AND MPL-1.1
URL: https://github.com/Samsung/rlottie
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch: fix-limits.patch
BuildRequires: gtest
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: cmake
%description
rlottie is a platform independent standalone c++ library for rendering vector based animations and art in realtime.
Lottie loads and renders animations and vectors exported in the bodymovin JSON format.
Bodymovin JSON can be created and exported from After Effects with bodymovin,
Sketch with Lottie Sketch Export, and from Haiku.
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand.
Since the animation is backed by JSON they are extremely small in size but can be large in complexity!
Here are small samples of the power of Lottie.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
%description devel
%{summary}.
%prep
%autosetup -p1
sed -e "s/, 'optimization=s'//" -i meson.build
%build
%meson \
-Dwerror=false \
-Dtest=true \
-Dthread=true \
-Dexample=false \
-Dcache=false \
-Dlog=false \
-Dcmake=true \
-Dmodule=false
%meson_build
%install
%meson_install
%check
%meson_test
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%doc AUTHORS README.md
%license COPYING licenses/*
%{_libdir}/lib%{name}.so.0*
%files devel
%{_includedir}/%{name}*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/
%changelog