summaryrefslogtreecommitdiff
path: root/packaging/appcore-agent.spec
blob: 0d010c5ddc3ee90d8878aa96323c314be7914f68 (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
Name:           appcore-agent
Version:        1.2.2
Release:        1
License:        Apache-2.0
Summary:        Service Application basic
Group:          Application Framework/Service
Source0:        %{name}-%{version}.tar.gz
Source1001:     appcore-agent.manifest
BuildRequires:  cmake
BuildRequires:  pkgconfig(aul)
BuildRequires:  pkgconfig(capi-appfw-app-control)
BuildRequires:  pkgconfig(capi-appfw-app-common)
BuildRequires:  pkgconfig(capi-system-info)
BuildRequires:  pkgconfig(appcore-common)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(ecore-core)
BuildRequires:  pkgconfig(vconf)
BuildRequires:  pkgconfig(vconf-internal-keys)

%description
Service Application basic

%package devel
Summary:        Application Core Agent
Group:          Application Framework/Development
Requires:       %{name} = %{version}-%{release}

%description devel
appcore agent (developement files)

%package -n capi-appfw-service-application-devel
Summary:    service appliation
Group:      Development/Libraries
Requires:    appcore-agent-devel = %{version}-%{release}

%description -n capi-appfw-service-application-devel
Service Application basic (developement files)

%prep
%setup -q
cp %{SOURCE1001} .

%build

MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`

%cmake -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
	.
%__make %{?_smp_mflags}

%install
%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/libappcore-agent.so*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/appcore-agent.pc


%files -n capi-appfw-service-application-devel
%{_includedir}/appcore-agent/service_app.h
%{_includedir}/appcore-agent/service_app_extension.h
%{_libdir}/pkgconfig/capi-appfw-service-application.pc