Name: oauth2 Summary: Tizen oauth 2.0 Framework Version: 0.0.3 Release: 1 Group: Social & Content/API License: Apache-2.0 Source0: oauth2-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(security-privilege-checker) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(efl-extension) %if "%{?tizen_version}" == "3.0" BuildRequires: pkgconfig(chromium-efl) %else BuildRequires: pkgconfig(ewebkit2) %endif BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(elementary) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description Tizen oauth 2.0 Framework %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development files for %{name} %prep %setup -q %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 export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden" %if "%{?tizen_version}" == "3.0" _CHROMIUM_EFL="YES" %else _CHROMIUM_EFL="NO" %endif %if "%{?tizen_profile_name}" == "wearable" cmake . \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIBDIR=%{_libdir} \ -DINCLUDEDIR=%{_includedir} \ -DEXCLUDE_EWK_ERR="YES" \ -DUSE_CHROMIUM_EFL:BOOL=${_CHROMIUM_EFL} %else cmake . \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIBDIR=%{_libdir} \ -DINCLUDEDIR=%{_includedir} \ -DUSE_CHROMIUM_EFL:BOOL=${_CHROMIUM_EFL} %endif make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} %make_install mkdir -p %{buildroot}%{_libdir} rm -rf %{buildroot}%{_libdir}/oauth2 %postun -p /sbin/ldconfig %files %manifest oauth2.manifest %defattr(-,root,root,-) /usr/share/license/%{name} %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_libdir}/*.so %{_includedir}/*.h %{_libdir}/pkgconfig/oauth2.pc