summaryrefslogtreecommitdiff
path: root/packaging/geofence-dbus.spec
blob: 2b0179adf24d3e95b545e7aa5fd931ea73f13929 (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
Name: geofence-dbus
Summary: Dbus interface for Geofence service
Version: 0.3.3
Release:    1
Group:      Location/Libraries
License:    Apache-2.0
Source0:    geofence-dbus-%{version}.tar.gz

%if "%{?profile}" == "tv"
ExcludeArch: %{arm} %ix86 x86_64
%endif

Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  cmake
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)

%description
Geofence dbus interface

%package -n libgeofence-dbus
Summary:    Geofence dbus library
Group:      Location/Libraries

%description -n libgeofence-dbus
Geofence client API library

%package -n libgeofence-dbus-devel
Summary:    Telephony client API (devel)
Group:      Development/Libraries
Requires:   libgeofence-dbus = %{version}-%{release}

%description -n libgeofence-dbus-devel
Geofence client API library (devel)


%prep
%setup -q


%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
export CFLAGS+=" -Wno-unused-local-typedefs "
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir}\

make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

%post -n libgeofence-dbus -p /sbin/ldconfig

%postun -n libgeofence-dbus -p /sbin/ldconfig


%files -n libgeofence-dbus
%manifest libgeofence-dbus.manifest
%defattr(-,root,root,-)
#%doc COPYING
%{_libdir}/*.so.*
%{_prefix}/etc/dbus-1/system.d/*

%files -n libgeofence-dbus-devel
%defattr(-,root,root,-)
%{_includedir}/geofence-dbus/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so