Swiftgram/packaging/rlottie.spec
Hermet Park 1b8ce64af0 fix typo.
Package name must be lottie-player,
Also, we could have an internal name rlottie.

Change-Id: Id8670e85d1905062133b12c871bee37d10e496ec
2019-02-08 11:11:40 +09:00

70 lines
1.3 KiB
RPMSpec

Name: lottie-player
Summary: rlottie Library
Version: 0.0.1
Release: 1
Group: UI Framework/Services
License: LGPL-v2.1
URL: http://www.tizen.org/
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
rlottie library
%package devel
Summary: rlottie library (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
rlottie library (devel)
%prep
%setup -q
%build
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall -O2"
export LDFLAGS+=" "
%ifarch %{arm}
export CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
%endif
%ifarch %{arm}
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
-DARCH="arm"
%else
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR:PATH=%{_libdir}
%endif
make %{?jobs:-j%jobs}
%install
%make_install
%files
%defattr(-,root,root,-)
%{_libdir}/librlottie.so.*
%{_libdir}/librlottie-image-loader.so*
%manifest packaging/rlottie.manifest
%license COPYING licenses/COPYING*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%{_libdir}/librlottie.so
%{_libdir}/librlottie-image-loader.so
%{_libdir}/cmake/rlottie/*.cmake
%{_libdir}/pkgconfig/rlottie.pc