blob: 033e28b49c7f64b26e865b916999c8e0cb72c07c (
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
|
%define _optdir /opt
Name: liblocation-appman
Summary: Location DB controler
Version: 0.1.6
Release: 1
Group: System/Libraries
License: TBD
Source0: %{name}-%{version}.tar.gz
Requires(post): sqlite
BuildRequires: cmake
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: libgcrypt-devel
%description
Description: Location DB controller library
%package devel
Summary: Location DB controller (Development files)
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Description : Location DB controller Development Package
%prep
%setup -q -n %{name}-%{version}
%build
cmake . -DCMAKE_INSTALL_PREFIX=/usr
# Call make instruction with smp support
make %{?jobs:-j%jobs}
%post
/sbin/ldconfig
chown 0:5000 /opt/dbspace/.location-appman.db*
chmod 664 /opt/dbspace/.location-appman.db*
if [ -f /usr/lib/rpm-plugins/msm.so ]
then
chsmack -a 'location_fw::db' /opt/dbspace/.location-appman.db*
fi
%postun -p /sbin/ldconfig
%install
rm -rf %{buildroot}
%make_install
%clean
rm -rf %{buildroot}
%files
%manifest liblocation-appman.manifest
%defattr(-,root,root,-)
%{_libdir}/liblocation-appman.so*
%{_optdir}/dbspace/.location-appman.db*
%files devel
%{_includedir}/location-appman/*.h
%{_libdir}/pkgconfig/*.pc
|