From: Rusty Lynch Date: Tue, 26 Nov 2013 23:26:56 +0000 (-0800) Subject: Add Tizen 3.0 packaging X-Git-Tag: accepted/tizen/20131127.212414^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F12958%2F3;p=profile%2Fivi%2Flayer-management.git Add Tizen 3.0 packaging Change-Id: I54f62cd259d70d781fe61e993969069174f94b7f Signed-off-by: Rusty Lynch --- diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..5bc52e2 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = 1.2.0 +upstream_tag = ${upstreamversion} diff --git a/packaging/layer-management.changes b/packaging/layer-management.changes new file mode 100644 index 0000000..0b7eb27 --- /dev/null +++ b/packaging/layer-management.changes @@ -0,0 +1,3 @@ +* Tue Nov 26 2013 Rusty Lynch ffea108 +- Initial packaging of version 1.2.0 for Tizen 3.0 + diff --git a/packaging/layer-management.spec b/packaging/layer-management.spec new file mode 100644 index 0000000..ce9734e --- /dev/null +++ b/packaging/layer-management.spec @@ -0,0 +1,79 @@ +Name: layer-management +License: Apache-2.0 +Group: Graphics & UI Framework/Libraries +Summary: Automotive Layer Management Infrastructure +Version: 1.2.0 +Release: 1 +Source: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: pkgconfig(dbus-1) +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description +Automotive Layer Management Infrastructure + +%package libs +Summary: Automotive Layer Management Libraries +Group: Graphics & UI Framework/Libraries + +%description libs +Libraries used by clients to connect to the GENIVI automotive layer manager + +%package devel +Summary: Automotive Layer Management Development Package +Group: Graphics & UI Framework/Development +Requires: %{name} = %{version}-%{release} + +%description devel +Files needed for developing against the Automotive Layer Management Infrastructure + +%prep +%setup -q -n %{name}-%{version} + +%build +mkdir build +cd build + +%cmake \ + -DILM_VERSION=%{version} \ + -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 \ + .. +make %{?jobs:-j %jobs} + +%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/ + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%files libs +%defattr(-,root,root,-) +%{_libdir}/layermanager/ipcmodules/* +%{_libdir}/*.so + +%files devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/ilm.pc +%{_includedir}/ilm/*.h +%{_includedir}/layermanager/*.h