blob: 333084766317c0dfada03c83962f26166d483f1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
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
|