packaging: add ephysics using bullet
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Mon, 24 Mar 2014 11:12:56 +0000 (12:12 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 4 Mar 2015 09:15:35 +0000 (10:15 +0100)
upstream suggested to have it enabled to enhance edje support

Change-Id: I57f30d92abbc76e9ca2ccbb315fd57ec2351baec
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/efl.spec

index 4546b36..716ef42 100644 (file)
@@ -43,6 +43,7 @@ BuildRequires:  pkgconfig(sm)
 %endif
 
 BuildRequires:  glib2-devel
+BuildRequires:  pkgconfig(bullet)
 BuildRequires:  pkgconfig(openssl)
 BuildRequires:  gnutls-devel
 BuildRequires:  curl-devel
@@ -310,32 +311,31 @@ Requires: eio = %{version}-%{release}
 Development files for eio
 
 ############ Ephysics
-# %package -n ephysics
-# Summary: EFL wrapper for the Bullet Physics library
-#
-# %description -n ephysics
-# EPhysics is a library that makes it easy to use Ecore, Evas and Bullet
-# Physics together. It's a kind of wrapper, a glue, between these libraries.
-# It's not intended to be a physics library (we already have many out there).
-#
-# Enlightenment Input/Output Library
-#
-# %package -n ephysics-examples
-# Summary:  Examples for the ephysics package
-# Group:    Graphics & UI Framework/Testing
-# Requires: ephysics = %{version}-%{release}
-#
-# %description -n ephysics-examples
-# Example files for ephysics
-#
-# %package -n ephysics-devel
-# Summary:  Development components for the ephysics package
-# Group:    Graphics & UI Framework/Development
-# Requires: ephysics = %{version}-%{release}
-#
-# %description -n ephysics-devel
-# Development files for ephysics
-#
+%package -n ephysics
+Summary: EFL wrapper for the Bullet Physics library
+
+%description -n ephysics
+EPhysics is a library that makes it easy to use Ecore, Evas and Bullet
+Physics together. It's a kind of wrapper, a glue, between these libraries.
+It's not intended to be a physics library (we already have many out there).
+
+Enlightenment Input/Output Library
+
+%package -n ephysics-examples
+Summary:  Examples for the ephysics package
+Group:    Graphics & UI Framework/Testing
+Requires: ephysics = %{version}-%{release}
+
+%description -n ephysics-examples
+Example files for ephysics
+
+%package -n ephysics-devel
+Summary:  Development components for the ephysics package
+Group:    Graphics & UI Framework/Development
+Requires: ephysics = %{version}-%{release}
+
+%description -n ephysics-devel
+Development files for ephysics
 
 ############ Edje
 %package -n edje
@@ -491,7 +491,6 @@ CFLAGS+=" -DMESA_EGL_NO_X11_HEADERS "
 %endif
 
 %reconfigure \
-    --disable-physics \
     --enable-tizen \
     --enable-g-main-loop \
     --disable-xim \
@@ -567,6 +566,9 @@ rm -rf %{buildroot}%{_libdir}/ecore/system/upower
 %post -n ethumb -p /sbin/ldconfig
 %postun -n ethumb -p /sbin/ldconfig
 
+%post -n ephysics -p /sbin/ldconfig
+%postun -n ephysics -p /sbin/ldconfig
+
 
 %files data
 %manifest %{name}.manifest
@@ -911,3 +913,14 @@ rm -rf %{buildroot}%{_libdir}/ecore/system/upower
 %{_libdir}/pkgconfig/ethumb*.pc
 %{_libdir}/cmake/Ethumb/*.cmake
 %{_libdir}/cmake/EthumbClient/*.cmake
+
+%files -n ephysics
+%{_libdir}/libephysics.so.*
+
+%files -n ephysics-devel
+%{_libdir}/libephysics.so
+%{_libdir}/pkgconfig/ephysics.pc
+%{_includedir}/ephysics-1/EPhysics.h
+
+%files -n ephysics-examples
+%{_datadir}/ephysics/examples/*