summaryrefslogtreecommitdiff
path: root/packaging/app-svc.spec
blob: b283ba62f85311307ef9569e47408334a3eebb11 (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
%bcond_with x
%bcond_with wayland

Name:       app-svc
Summary:    Application Service
Version:    0.1.57
Release:    0
Group:      Application Framework/Service
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Source1001: app-svc.manifest
Source1002: app-svc-tests.manifest

Requires(post):     /sbin/ldconfig
Requires(postun):   /sbin/ldconfig

BuildRequires: cmake

BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(ecore)
%if %{with x}
BuildRequires:      pkgconfig(ecore-x)
%endif

%description
Application Service

%package devel
Summary:    App svc
Group:      Development/Application Framework
Requires:   %{name} = %{version}-%{release}
%description devel
%devel_desc

%package tests
Summary:    tests for App svc
Requires:   %{name} = %{version}

%description tests
tests for App svc

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

%build
%cmake . \
%if %{with wayland} && !%{with x}
-Dwith_wayland=TRUE
%else
-Dwith_x=TRUE
%endif

%__make %{?jobs:-j%jobs}

%install
%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
%license LICENSE
%{_libdir}/libappsvc.so.0
%{_libdir}/libappsvc.so.0.1.0

%files devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/pkgconfig/appsvc.pc
%{_libdir}/libappsvc.so
%{_includedir}/appsvc/*.h

%files tests
%manifest %{name}-tests.manifest
%{_bindir}/appsvc_test