Version: 1.2.0
Release: 1
Source: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dbus-1)
+BuildRequires: pkgconfig(libffi)
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(wayland-egl)
+BuildRequires: pkgconfig(wayland-server)
+BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
+BuildRequires: pkgconfig(mtdev) >= 1.1.0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%prep
%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
%build
mkdir build
-DWITH_EGL_EXAMPLE=OFF \
-DWITH_CLIENTEXAMPLES=OFF \
-DWITH_X11_GLES=OFF \
- -DWITH_WAYLAND_DRM=OFF \
- -DWITH_SERVICE_BIN=OFF \
- -DWITH_CONTROL_BIN=OFF \
- -DWITH_GENERIC_COMMUNICATOR=OFF \
+ -DWITH_WAYLAND_DRM=ON \
+ -DWITH_SERVICE_BIN=ON \
+ -DWITH_CONTROL_BIN=ON \
+ -DWITH_GENERIC_COMMUNICATOR=ON \
..
-make %{?jobs:-j %jobs}
+make %{?_smp_mflags}
%install
rm -rf "$RPM_BUILD_ROOT"
cd build
%make_install
-# At this time we are not installing the layer manager service
-# with the expectation that the libraries will connect to the
-# layer manager plugin running in weston
-rm -fR $RPM_BUILD_ROOT/etc/dbus-1/
-
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/
mv $RPM_BUILD_ROOT/usr/local/lib/pkgconfig/ilm.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/
%clean
rm -rf "$RPM_BUILD_ROOT"
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+/etc/dbus-1/session.d/LayerManagerService.conf
+/etc/dbus-1/system.d/LayerManagerService.conf
+%{_bindir}/LayerManagerService
+%{_bindir}/LayerManagerControl
+%{_libdir}/layermanager/renderer/*
+
%files libs
%defattr(-,root,root,-)
-%{_libdir}/layermanager/ipcmodules/*
%{_libdir}/*.so
+%{_libdir}/layermanager/ipcmodules/*
+%{_libdir}/layermanager/communicator/*
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/ilm.pc
%{_includedir}/ilm/*.h
%{_includedir}/layermanager/*.h
+%{_includedir}/layermanager/graphic/*/*.h