]> git.pld-linux.org Git - packages/weston.git/blame - weston.spec
- release 3 (by relup.sh)
[packages/weston.git] / weston.spec
CommitLineData
09c3888d 1# TODO: freerdp >= 1.1.0
3adcb0b8
JB
2#
3# Conditional build:
0cb34c60 4%bcond_without drm # DRM compositor
0cb34c60
JB
5%bcond_without wayland # wayland (nested) compositor
6%bcond_without x11 # X11 compositor
7%bcond_without wlaunch # weston launch
8%bcond_without xwayland # X server launcher
9%bcond_without sclients # simple clients
6c4f66d1 10%bcond_without clients # non-simple + full GL clients
3adcb0b8
JB
11#
12Summary: Weston - Wayland demos
13Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland
14Name: weston
09c3888d 15Version: 1.2.2
391c4496 16Release: 3
3adcb0b8
JB
17License: MIT
18Group: Applications
19Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
09c3888d 20# Source0-md5: c1d6b180fe6a5e8d330eb6a4d177caeb
3adcb0b8
JB
21URL: http://wayland.freedesktop.org/
22BuildRequires: Mesa-libEGL-devel >= 7.10
5f05a417 23# GLESv2
3adcb0b8 24BuildRequires: Mesa-libGLES-devel
0cb34c60 25# for wayland and sclients, but also desktop-shell, which is always enabled
9c19f94f 26BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2
0cb34c60 27BuildRequires: cairo-devel >= 1.10.0
09c3888d
JB
28BuildRequires: colord-devel >= 0.1.27
29BuildRequires: lcms2-devel >= 2
0cb34c60 30BuildRequires: libjpeg-devel
3adcb0b8 31BuildRequires: libpng-devel
0cb34c60 32BuildRequires: libwebp-devel
3adcb0b8
JB
33BuildRequires: pixman-devel
34BuildRequires: pkgconfig
35BuildRequires: tar >= 1:1.22
0cb34c60 36# wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients
09c3888d 37BuildRequires: wayland-devel >= 1.2.0
6c4f66d1 38BuildRequires: xorg-lib-libxkbcommon-devel
3adcb0b8 39BuildRequires: xz
0cb34c60
JB
40%if %{with drm}
41BuildRequires: Mesa-libgbm-devel
9c19f94f 42BuildRequires: libdrm-devel >= 2.4.30
0cb34c60 43BuildRequires: mtdev-devel >= 1.1.0
6c4f66d1 44BuildRequires: udev-devel >= 1:136
0cb34c60 45%endif
0cb34c60
JB
46%if %{with x11}
47BuildRequires: libxcb-devel
48BuildRequires: xorg-lib-libX11-devel
49%endif
50%if %{with wlaunch}
51BuildRequires: libdrm-devel
52BuildRequires: pam-devel
53BuildRequires: systemd-devel
54%endif
55%if %{with xwayland}
56BuildRequires: libxcb-devel
6c4f66d1
JB
57BuildRequires: pkgconfig(cairo-xcb)
58BuildRequires: xorg-lib-libXcursor-devel
0cb34c60 59%endif
3adcb0b8 60%if %{with clients}
5f05a417 61BuildRequires: OpenGL-GLU-devel
6c4f66d1 62BuildRequires: cairo-devel >= 1.11.3
3adcb0b8
JB
63BuildRequires: gdk-pixbuf2-devel >= 2.0
64BuildRequires: glib2-devel >= 2.0
6c4f66d1 65BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
09c3888d 66BuildRequires: pkgconfig(cairo-gl)
3adcb0b8 67BuildRequires: poppler-glib-devel
3adcb0b8 68%endif
9c19f94f 69Requires: Mesa-libwayland-egl >= 9.0-2
3adcb0b8
JB
70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72%description
73Weston contains a few demo application for the Wayland project.
74There's a sample compositor that can run on KMS, under X11 or under
75another Wayland compositor and there's a handful of simple clients
76that demonstrate various aspects of Wayland.
77
78%description -l pl.UTF-8
79Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland.
80Jest przykładowy serwer składający, który można uruchomić pod KMS, pod
81X11 lub pod innym serwerem składającym Wayland; są także proste
82programy klienckie demonstrujące różne aspekty protokołu Wayland.
83
5f05a417
JB
84%package devel
85Summary: Header files for Weston plugin development
86Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona
87Group: Development/Libraries
88Requires: Mesa-libEGL-devel >= 7.10
89# GLESv2
90Requires: Mesa-libGLES-devel
91Requires: pixman-devel
09c3888d 92Requires: wayland-devel >= 1.2.0
5f05a417
JB
93Requires: xorg-lib-libxkbcommon-devel
94
95%description devel
96Header files for Weston plugin development.
97
98%description devel -l pl.UTF-8
99Pliki nagłówkowe do tworzenia wtyczek dla Westona.
100
3adcb0b8
JB
101%prep
102%setup -q
103
104%build
105%configure \
106 %{!?with_clients:--disable-clients} \
0cb34c60
JB
107 %{!?with_drm:--disable-drm-compositor} \
108 %{!?with_sclients:--disable-simple-clients} \
3adcb0b8
JB
109 --disable-setuid-install \
110 --disable-silent-rules \
0cb34c60
JB
111 %{!?with_static_libs:--disable-static} \
112 %{!?with_wlaunch:--disable-weston-launch} \
113 %{!?with_x11:--disable-x11-compositor} \
09c3888d
JB
114 %{!?with_xwayland:--disable-xwayland} \
115 %{?with_clients:--with-cairo=gl}
3adcb0b8
JB
116%{__make}
117
118%install
119rm -rf $RPM_BUILD_ROOT
120
121%{__make} install \
122 DESTDIR=$RPM_BUILD_ROOT
123
124%{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la
125
126%clean
127rm -rf $RPM_BUILD_ROOT
128
129%files
130%defattr(644,root,root,755)
131%doc README
6c4f66d1 132%attr(755,root,root) %{_bindir}/wcap-decode
9c19f94f 133%attr(755,root,root) %{_bindir}/weston-info
3adcb0b8
JB
134# composer
135%attr(755,root,root) %{_bindir}/weston
6c4f66d1
JB
136%if %{with wlaunch}
137%attr(755,root,root) %{_bindir}/weston-launch
138%endif
3adcb0b8
JB
139%if %{with clients}
140%attr(755,root,root) %{_bindir}/weston-terminal
141%attr(755,root,root) %{_libexecdir}/weston-desktop-shell
09c3888d 142%attr(755,root,root) %{_libexecdir}/weston-keyboard
6c4f66d1
JB
143%attr(755,root,root) %{_libexecdir}/weston-screensaver
144%attr(755,root,root) %{_libexecdir}/weston-screenshooter
3adcb0b8
JB
145%attr(755,root,root) %{_libexecdir}/weston-tablet-shell
146%endif
09c3888d 147%attr(755,root,root) %{_libexecdir}/weston-simple-im
3adcb0b8 148%dir %{_libdir}/weston
09c3888d
JB
149%attr(755,root,root) %{_libdir}/weston/cms-colord.so
150%attr(755,root,root) %{_libdir}/weston/cms-static.so
0cb34c60 151%if %{with drm}
3adcb0b8 152%attr(755,root,root) %{_libdir}/weston/drm-backend.so
0cb34c60 153%endif
09c3888d
JB
154%attr(755,root,root) %{_libdir}/weston/fbdev-backend.so
155%attr(755,root,root) %{_libdir}/weston/headless-backend.so
0cb34c60 156%if %{with wayland}
3adcb0b8 157%attr(755,root,root) %{_libdir}/weston/wayland-backend.so
0cb34c60
JB
158%endif
159%if %{with x11}
3adcb0b8 160%attr(755,root,root) %{_libdir}/weston/x11-backend.so
0cb34c60 161%endif
6c4f66d1
JB
162%if %{with xwayland}
163%attr(755,root,root) %{_libdir}/weston/xwayland.so
164%endif
3adcb0b8
JB
165%attr(755,root,root) %{_libdir}/weston/desktop-shell.so
166%attr(755,root,root) %{_libdir}/weston/tablet-shell.so
167%{_datadir}/weston
9c19f94f 168%{_mandir}/man1/weston.1*
8228963f 169%{_mandir}/man5/weston.ini.5*
e9c620bf 170%{_mandir}/man7/weston-drm.7*
3adcb0b8 171
09c3888d 172# noinst by default - --enable-demo-clients and package in %{name}-demos?
3adcb0b8 173# "simple clients"
09c3888d
JB
174#%attr(755,root,root) %{_bindir}/weston-simple-egl
175#%attr(755,root,root) %{_bindir}/weston-simple-shm
176#%attr(755,root,root) %{_bindir}/weston-simple-touch
3adcb0b8 177%if %{with clients}
09c3888d
JB
178#%attr(755,root,root) %{_bindir}/weston-calibrator
179#%attr(755,root,root) %{_bindir}/weston-clickdot
180#%attr(755,root,root) %{_bindir}/weston-editor
181#%attr(755,root,root) %{_bindir}/weston-eventdemo
182#%attr(755,root,root) %{_bindir}/weston-fullscreen
183#%attr(755,root,root) %{_bindir}/weston-cliptest
184#%attr(755,root,root) %{_bindir}/weston-dnd
185#%attr(755,root,root) %{_bindir}/weston-flower
186#%attr(755,root,root) %{_bindir}/weston-image
187#%attr(755,root,root) %{_bindir}/weston-resizor
188#%attr(755,root,root) %{_bindir}/weston-smoke
189#%attr(755,root,root) %{_bindir}/weston-transformed
3adcb0b8 190# "full GL" clients
09c3888d 191#%attr(755,root,root) %{_bindir}/weston-gears
3adcb0b8 192# poppler
09c3888d 193#%attr(755,root,root) %{_bindir}/weston-view
3adcb0b8 194%endif
5f05a417
JB
195
196%files devel
197%defattr(644,root,root,755)
198%{_includedir}/weston
199%{_pkgconfigdir}/weston.pc
This page took 0.072931 seconds and 4 git commands to generate.