X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fliblivebox-viewer.spec;h=bdff64f137b23fd80ab6537bf14c94dced314f2d;hb=377fe7dfdc182299183fc08bbd31a2c14f5d7a42;hp=52bc65bacc7d3f48d3f8e6ad9d75233acfeb4ca7;hpb=427d76e19c69ad95b2d60801cad55bfd5d702b22;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index 52bc65b..bdff64f 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -1,11 +1,12 @@ Name: liblivebox-viewer -Summary: Library for the development of a livebox viewer -Version: 0.8.6 +Summary: Library for developing the application +Version: 0.20.4 Release: 1 -Group: main/app -License: Flora License +Group: HomeTF/Livebox +License: Flora Source0: %{name}-%{version}.tar.gz -BuildRequires: cmake, gettext-tools +Source1001: %{name}.manifest +BuildRequires: cmake, gettext-tools, coreutils BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(glib-2.0) @@ -16,12 +17,13 @@ BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(livebox-service) +BuildRequires: pkgconfig(vconf) %description -Livebox viewer development library +API for creating a new instance of the livebox and managing its life-cycle. %package devel -Summary: Files for livebox viewer development. +Summary: Header and package configuration files for the livebox viewer development Group: Development/Libraries Requires: %{name} = %{version}-%{release} @@ -30,26 +32,40 @@ Livebox viewer development library (dev) %prep %setup -q +cp %{SOURCE1001} . %build -cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%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 . make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}/usr/share/license +mkdir -p %{buildroot}/%{_datarootdir}/license %post %files -n liblivebox-viewer -%manifest liblivebox-viewer.manifest +%manifest %{name}.manifest %defattr(-,root,root,-) -/usr/lib/*.so* -/usr/share/license/* +%{_libdir}/*.so* +%{_datarootdir}/license/* %files devel +%manifest %{name}.manifest %defattr(-,root,root,-) -/usr/include/livebox-viewer/livebox.h -/usr/share/doc/livebox-viewer/livebox-viewer_PG.h -/usr/lib/pkgconfig/*.pc +%{_includedir}/livebox-viewer/livebox.h +%{_libdir}/pkgconfig/*.pc + +# End of a file