summaryrefslogtreecommitdiff
path: root/packaging/launchpad.spec
blob: 5b4f91eab7efd8dc17309e41ff2a9e4c7f1ab540 (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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
Name:       launchpad
Summary:    Launchpad for launching applications
Version:    0.15.27
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
Source1001: %{name}.manifest
Source1002: lib%{name}.manifest
Source1003: %{name}-loader.manifest
Source1004: app-defined-loader.manifest

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)
BuildRequires:  pkgconfig(iniparser)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libsmack)
BuildRequires:  pkgconfig(pkgmgr-installer)

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

%if "%{?_prelink_enable}" == "y"
%define tizen_feature_prelink 1
%else
%define tizen_feature_prelink 0
%endif

%description
Launchpad for launching applications

%package devel
Summary:    Launchpad for launching applications (devel)
Group:      Development/Libraries
Requires:   liblaunchpad = %{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

%package -n app-defined-loader
Summary:    App-Defined-Loader for launching applications
Group:      Application Framework/Application Launcher

%description -n app-defined-loader
App-Defined-Loader for launching applications

%package -n liblaunchpad
Summary:    Launchpad library
Group:      Development/Libraries

%description -n liblaunchpad
Launchpad library

%package -n liblaunchpad-devel
Summary:    Launchpad library (devel)
Group:      Development/Libraries
Requires:   liblaunchpad = %{version}-%{release}

%description -n liblaunchpad-devel
Launchpad library (devel)

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

%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
%else
_TIZEN_FEATURE_LOADER_ARCH64=ON
%endif
%if 0%{?tizen_feature_prelink}
_TIZEN_FEATURE_PRELINK=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} \
	-D_TIZEN_FEATURE_PRELINK:BOOL=${_TIZEN_FEATURE_PRELINK} \
	-D_TIZEN_FEATURE_LOADER_ARCH64:BOOL=${_TIZEN_FEATURE_LOADER_ARCH64} \
	.
%__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
%{_prefix}/share/aul/launchpad.conf
%{_sysconfdir}/package-manager/parserlib/liblaunchpad-parser.so
%{_datadir}/parser-plugins/*

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

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

%files -n app-defined-loader
%manifest app-defined-loader.manifest
%license LICENSE
%{_prefix}/share/aul/app-defined-loader.conf
%{_bindir}/app-defined-loader

%files -n liblaunchpad
%manifest liblaunchpad.manifest
%license LICENSE
%attr(0644,root,root) %{_libdir}/liblaunchpad.so.*
%attr(0644,root,root) %{_libdir}/liblaunchpad-hydra.so.*

%files -n liblaunchpad-devel
%{_includedir}/launchpad/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/liblaunchpad.pc
%{_libdir}/pkgconfig/liblaunchpad-hydra.pc