X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fliblivebox-viewer.spec;h=913c78885f2dbdccb4e4dc9688500863c7f6be93;hb=05d36f9f96a4e22969b54b4b3641e4ad8dd56c5e;hp=2e5f95b9542bb5f8f5d05a298179af182abbfd91;hpb=e1b16fd0bc3f0f31f305f5381a674bc820164054;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index 2e5f95b..913c788 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -1,44 +1,69 @@ +%bcond_with wayland + Name: liblivebox-viewer -Summary: Library for developing the application. -Version: 0.14.3 +Summary: Library for developing the application +Version: 0.30.0 Release: 1 Group: HomeTF/Livebox -License: Flora License +License: Flora Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest BuildRequires: cmake, gettext-tools, coreutils BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(com-core) -BuildRequires: pkgconfig(x11) -BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(livebox-service) +BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(vconf) +Requires: libtzplatform-config + +%if %{with wayland} +%else +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +%endif %description API for creating a new instance of the livebox and managing its life-cycle. %package devel -Summary: Header and package configuration files for the livebox viewer development. +Summary: Livebox viewer development library (dev) Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel -Livebox viewer development library (dev) +Header and package configuration files for the livebox viewer development library (dev) %prep %setup -q +cp %{SOURCE1001} . %build +%if 0%{?sec_build_binary_debug_enable} +export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" +export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" +export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" +%endif + %if 0%{?tizen_build_binary_release_type_eng} export CFLAGS="${CFLAGS} -DTIZEN_ENGINEER_MODE" export CXXFLAGS="${CXXFLAGS} -DTIZEN_ENGINEER_MODE" export FFLAGS="${FFLAGS} -DTIZEN_ENGINEER_MODE" %endif -%cmake . + +%if %{with wayland} +export WAYLAND_SUPPORT=On +export X11_SUPPORT=Off +%else +export WAYLAND_SUPPORT=Off +export X11_SUPPORT=On +%endif + +%cmake . -DWAYLAND_SUPPORT=${WAYLAND_SUPPORT} -DX11_SUPPORT=${X11_SUPPORT} make %{?jobs:-j%jobs} %install @@ -46,15 +71,17 @@ rm -rf %{buildroot} %make_install mkdir -p %{buildroot}/%{_datarootdir}/license -%post +%post -n liblivebox-viewer -p /usr/sbin/ldconfig +%postun -n liblivebox-viewer -p /usr/sbin/ldconfig %files -n liblivebox-viewer -%manifest liblivebox-viewer.manifest +%manifest %{name}.manifest %defattr(-,root,root,-) %{_libdir}/*.so* %{_datarootdir}/license/* %files devel +%manifest %{name}.manifest %defattr(-,root,root,-) %{_includedir}/livebox-viewer/livebox.h %{_libdir}/pkgconfig/*.pc