mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
Merge "spec: Add spec for rpm packaging" into tizen
This commit is contained in:
commit
23ca4b4656
2 changed files with 69 additions and 0 deletions
5
packaging/thorvg.manifest
Normal file
5
packaging/thorvg.manifest
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<manifest>
|
||||||
|
<request>
|
||||||
|
<domain name="_"/>
|
||||||
|
</request>
|
||||||
|
</manifest>
|
64
packaging/thorvg.spec
Normal file
64
packaging/thorvg.spec
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
Name: thorvg
|
||||||
|
Summary: Thor Vector Graphics Library
|
||||||
|
Version: 0.0.1
|
||||||
|
Release: 1
|
||||||
|
Group: Graphics System/Rendering Engine
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/samsung/thorvg
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(glesv2)
|
||||||
|
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: ninja
|
||||||
|
Requires(post): /sbin/ldconfig
|
||||||
|
Requires(postun): /sbin/ldconfig
|
||||||
|
|
||||||
|
%description
|
||||||
|
Thor Vector Graphics Library
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Thor Vector Graphics Library (devel)
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Thor Vector Graphics Library (devel)
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
export DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
meson setup \
|
||||||
|
--prefix /usr \
|
||||||
|
--libdir %{_libdir} \
|
||||||
|
builddir 2>&1
|
||||||
|
ninja \
|
||||||
|
-C builddir \
|
||||||
|
-j %(echo "`/usr/bin/getconf _NPROCESSORS_ONLN`")
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
export DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
ninja -C builddir install
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libthorvg.so.*
|
||||||
|
%manifest packaging/thorvg.manifest
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/libthorvg.so
|
||||||
|
|
||||||
|
%{_libdir}/pkgconfig/thorvg.pc
|
Loading…
Add table
Reference in a new issue