summaryrefslogtreecommitdiff
path: root/packaging/launchpad.spec
blob: 1e2c6112767b5b914de3b33796812e2b65091eda (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Name:       launchpad
Summary:    Launchpad for launching applications
Version:    0.5.6
Release:    1
Group:      Application Framework/Daemons
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Source101:  launchpad-process-pool.service
Source102:  launchpad-process-pool.socket


BuildRequires:  cmake
BuildRequires:  pkgconfig(bundle)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(ecore)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(vconf)
BuildRequires:  pkgconfig(buxton2)
BuildRequires:  pkgconfig(security-manager)
BuildRequires:  pkgconfig(aul)
BuildRequires:  pkgconfig(ttrace)
BuildRequires:  pkgconfig(libtzplatform-config)
BuildRequires:  pkgconfig(libcap)
BuildRequires:  pkgconfig(tanchor)
BuildRequires:  pkgconfig(dbus-1)

Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/systemctl
Requires(postun): /sbin/ldconfig
Requires(postun): /usr/bin/systemctl
Requires(preun): /usr/bin/systemctl

Provides: app-launchpad
Obsoletes: amd-mod-launchpad

%define tizen_feature_priority_change 0
%define tizen_feature_loader_priority 0
%ifarch armv7l i586
%define tizen_arch32 1
%else
%define tizen_arch32 0
%endif

%description
Launchpad for launching applications

%package devel
Summary:    Launchpad for launching applications (devel)
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
Launchpad for launching applications (devel)

%package -n launchpad-loader
Summary:    Launchpad-Loader for launching applications
Group:      Application Framework/Application Launcher

%description -n launchpad-loader
Launchpad-Loader for launching applications

%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
%if 0%{?tizen_feature_priority_change}
_TIZEN_FEATURE_PRIORITY_CHANGE=ON
%endif
%if 0%{?tizen_feature_loader_priority}
_TIZEN_FEATURE_LOADER_PRIORITY=ON
%endif
%if 0%{?tizen_arch32}
_TIZEN_FEATURE_SET_PERSONALITY_32=ON
%endif

MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake -DVERSION=%{version} \
	-DMAJORVER=${MAJORVER} \
	-D_TIZEN_FEATURE_PRIORITY_CHANGE:BOOL=${_TIZEN_FEATURE_PRIORITY_CHANGE} \
	-D_TIZEN_FEATURE_LOADER_PRIORITY:BOOL=${_TIZEN_FEATURE_LOADER_PRIORITY} \
	-D_TIZEN_FEATURE_SET_PERSONALITY_32:BOOL=${_TIZEN_FEATURE_SET_PERSONALITY_32} \
	.
%__make %{?_smp_mflags}

%install
rm -rf %{buildroot}

%make_install
mkdir -p %{buildroot}%{_unitdir_user}/basic.target.wants
mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants
install -m 0644 %SOURCE101 %{buildroot}%{_unitdir_user}/launchpad-process-pool.service
install -m 0644 %SOURCE102 %{buildroot}%{_unitdir_user}/launchpad-process-pool.socket
ln -sf ../launchpad-process-pool.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/launchpad-process-pool.socket
ln -sf ../launchpad-process-pool.service %{buildroot}%{_unitdir_user}/basic.target.wants/launchpad-process-pool.service

%post

%files
%manifest launchpad.manifest
%license LICENSE
%{_prefix}/share/aul/default.debugger
%{_unitdir_user}/launchpad-process-pool.service
%{_unitdir_user}/launchpad-process-pool.socket
%{_unitdir_user}/sockets.target.wants/launchpad-process-pool.socket
%{_unitdir_user}/basic.target.wants/launchpad-process-pool.service
%{_bindir}/launchpad-process-pool
%attr(0644,root,root) %{_libdir}/liblaunchpad.so.*

%files devel
%{_includedir}/launchpad/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files -n launchpad-loader
%manifest %{name}.manifest
%license LICENSE
%{_prefix}/share/aul/default.loader
%{_bindir}/launchpad-loader