diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00bfc77 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rlottie-0a43020.tar.gz diff --git a/rlottie.spec b/rlottie.spec new file mode 100644 index 0000000..7d3128a --- /dev/null +++ b/rlottie.spec @@ -0,0 +1,74 @@ +%global commit0 0a430201270dbe141f0c67b92348ee9c796e194e +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) +%global date 20190707 + +Name: rlottie +Version: 0 +Release: 1.%{date}git%{shortcommit0}%{?dist} + +# Main source: LGPLv2+ +# rapidjson (base) - MIT +# rapidjson (msinttypes) - BSD +# freetype rasterizer - FTL +# vector (vinterpolator) - MPLv1.1 +License: LGPLv2+ and MIT and FTL and BSD and MPLv1.1 +Summary: Platform independent standalone library that plays Lottie Animation + +URL: https://github.com/Samsung/%{name} +Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz + +BuildRequires: gtest-devel +BuildRequires: gcc-c++ +BuildRequires: meson +BuildRequires: gcc + +%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. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description devel +%{summary}. + +%prep +%autosetup -n %{name}-%{commit0} +sed -e "s/, 'werror=true'//" -e "s/, 'optimization=s'//" -i meson.build + +%build +%meson \ + -Dtest=true \ + -Dexample=false \ + -Dmodule=false +%meson_build + +%install +%meson_install + +%check +%meson_test + +%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 + +%changelog +* Mon Jul 08 2019 Vitaly Zaitsev - 0-1.20190707git0a43020 +- Initial SPEC release. diff --git a/sources b/sources new file mode 100644 index 0000000..8e31ac7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rlottie-0a43020.tar.gz) = 89bd9806861fcf9bf93e4421b3d859cc7569030910abd979a35f2f3d289a8e0d7d83762e5add3f5ec435e2fdf2131d3323e56fa90a230e06ae5273a375eda87f