summaryrefslogtreecommitdiff
path: root/packaging/weston.spec
blob: d61e1290cdeb255d93a269c646ba5fe49d3312c8 (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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
%global apiver 9
%global meson_prob 0

Name:           weston
Version:        %{apiver}.0.0
Release:        8%{?dist}
Summary:        Reference compositor for Wayland

License:        BSD and CC-BY-SA
URL:            http://wayland.freedesktop.org/
Source0:        http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
Source1:        %name.ini
Source1001: 	%name.manifest

BuildRequires:  gcc
%if %meson_prob
BuildRequires:  g++
%endif
BuildRequires:  glib2-devel
BuildRequires:  libjpeg-turbo-devel
BuildRequires:  pam-devel
# ninja-build is a dependency from meson
BuildRequires:  meson
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(cairo) >= 1.10.0
#BuildRequires:  pkgconfig(cairo-xcb)
#BuildRequires:  pkgconfig(colord) >= 0.1.27
BuildRequires:  pkgconfig(dbus-1) >= 1.6
BuildRequires:  pkgconfig(egl)
#BuildRequires:  pkgconfig(freerdp2)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libdrm) >= 2.4.30
BuildRequires:  pkgconfig(libevdev)
BuildRequires:  pkgconfig(libinput) >= 0.8.0
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libsystemd) >= 209
BuildRequires:  pkgconfig(libudev) >= 136
# libunwind available only on selected arches
%ifarch %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64
BuildRequires:  libunwind-devel
%endif
#BuildRequires:  pkgconfig(libva) >= 0.34.0
#BuildRequires:  pkgconfig(libva-drm) >= 0.34.0
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6
BuildRequires:  pkgconfig(mtdev) >= 1.1.0
#BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(pixman-1) >= 0.25.2
BuildRequires:  pkgconfig(wayland-client) >= 1.12.0
BuildRequires:  pkgconfig(wayland-cursor)
BuildRequires:  pkgconfig(wayland-egl)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.18
BuildRequires:  pkgconfig(wayland-scanner)
BuildRequires:  pkgconfig(wayland-server)
#BuildRequires:  pkgconfig(x11)
#BuildRequires:  pkgconfig(x11-xcb)
#BuildRequires:  pkgconfig(xcb)
#BuildRequires:  pkgconfig(xcb-composite)
#BuildRequires:  pkgconfig(xcb-shm)
#BuildRequires:  pkgconfig(xcb-xfixes)
#BuildRequires:  pkgconfig(xcb-xkb)
#BuildRequires:  pkgconfig(xcursor)
#BuildRequires:  pkgconfig(xkbcommon)
#BuildRequires:  poppler-devel
#BuildRequires:  poppler-glib-devel
#BuildRequires:  gstreamer1-devel
#BuildRequires:  gstreamer1-plugins-base-devel
#BuildRequires:  pipewire-devel

BuildRequires:  pkgconfig(libtbm)
BuildRequires:  pkgconfig(libtdm)
BuildRequires:  pkgconfig(wayland-tbm-server)

Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
Requires:       mesa-dri-drivers

%description
Weston is the reference wayland compositor that can run on KMS, under X11
or under another compositor.

%package        libs
Summary:        Weston compositor libraries

%description    libs
This package contains Weston compositor libraries.

%package        demo
Summary:        Weston demo program files

%description    demo
This package contains Weston demo program files.

%package        devel
Summary:        Common headers for weston
License:        MIT
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}

%description    devel
Common headers for weston

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

%build
# ninja injects -Wl,--no-undefined, which intereferes with LTO, so undo
# the setting.  Thanks to the SuSE folks for the workaround.
export LDFLAGS="%{?build_ldflags} -Wl,-z,undefs"
%if %{meson_prob}
%meson -Dpipewire=false
%else
%meson -Dbackend-drm-screencast-vaapi=false \
       -Dbackend-rdp=false \
       -Dbackend-x11=false \
       -Dxwayland=false \
       -Dcolor-management-colord=false \
       -Dremoting=false \
       -Dpipewire=false \
       -Ddemo-clients=false \
       -Dshell-kiosk=false

%endif
%meson_build
%install
%meson_install
%check
# may be standalone tests can be done
#%%meson_test

%post
/usr/bin/getent group weston-launch >/dev/null || /usr/sbin/groupadd -r weston-launch

%postun
/usr/sbin/groupdel weston-launch || true

%files
%license COPYING
%doc README.md
%{_bindir}/weston
%{_bindir}/weston-debug
%{_bindir}/weston-info
%attr(4755,root,root) %{_bindir}/weston-launch
%{_bindir}/weston-screenshooter
%{_bindir}/weston-terminal
%{_bindir}/wcap-decode
%dir %{_libdir}/weston
#%{_libdir}/weston/cms-colord.so
%{_libdir}/weston/cms-static.so
%{_libdir}/weston/desktop-shell.so
%{_libdir}/weston/fullscreen-shell.so
%{_libdir}/weston/hmi-controller.so
%{_libdir}/weston/ivi-shell.so
%{_libdir}/weston/screen-share.so
%{_libdir}/weston/systemd-notify.so
%{_libdir}/weston/libexec_weston.so*
%{_libexecdir}/weston-*
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
%{_mandir}/man7/*.7*
%dir %{_datadir}/weston
%{_datadir}/weston/*.png
%{_datadir}/weston/wayland.svg
%{_datadir}/wayland-sessions/weston.desktop

%files libs
%license COPYING
%dir %{_libdir}/libweston-%{apiver}
%{_libdir}/libweston-%{apiver}/drm-backend.so
%{_libdir}/libweston-%{apiver}/fbdev-backend.so
%{_libdir}/libweston-%{apiver}/gl-renderer.so
%{_libdir}/libweston-%{apiver}/headless-backend.so
%if !%{meson_prob}
#%{_libdir}/libweston-%{apiver}/pipewire-plugin.so
%endif
#%{_libdir}/libweston-%{apiver}/remoting-plugin.so
#%{_libdir}/libweston-%{apiver}/rdp-backend.so
%{_libdir}/libweston-%{apiver}/wayland-backend.so
#%{_libdir}/libweston-%{apiver}/x11-backend.so
#%{_libdir}/libweston-%{apiver}/xwayland.so
%{_libdir}/libweston-%{apiver}.so.0*
%{_libdir}/libweston-desktop-%{apiver}.so.0*

%files demo
%license COPYING
%{_bindir}/weston-calibrator
#%{_bindir}/weston-clickdot
#%{_bindir}/weston-cliptest
#%{_bindir}/weston-confine
#%{_bindir}/weston-dnd
#%{_bindir}/weston-editor
#%{_bindir}/weston-eventdemo
#%{_bindir}/weston-flower
#%{_bindir}/weston-fullscreen
#%{_bindir}/weston-image
#%{_bindir}/weston-multi-resource
#%{_bindir}/weston-presentation-shm
#%{_bindir}/weston-resizor
#%{_bindir}/weston-scaler
%{_bindir}/weston-simple-damage
#%{_bindir}/weston-content_protection
%{_bindir}/weston-simple-dmabuf-egl
%{_bindir}/weston-simple-dmabuf-v4l
%{_bindir}/weston-simple-egl
%{_bindir}/weston-simple-shm
%{_bindir}/weston-simple-touch
#%{_bindir}/weston-smoke
#%{_bindir}/weston-stacking
#%{_bindir}/weston-subsurfaces
%{_bindir}/weston-touch-calibrator
#%{_bindir}/weston-transformed

%files devel
%{_includedir}/libweston-%{apiver}/
%{_includedir}/weston/
%{_libdir}/pkgconfig/libweston-%{apiver}.pc
%{_libdir}/pkgconfig/libweston-desktop-%{apiver}.pc
%{_libdir}/pkgconfig/weston.pc
%{_libdir}/libweston-%{apiver}.so
%{_libdir}/libweston-desktop-%{apiver}.so
%{_datadir}/pkgconfig/libweston-%{apiver}-protocols.pc
%{_datadir}/libweston-%{apiver}/protocols/

%changelog