blob: e9fc364225bfeddd572c67dc6dfe885a585d1776 (
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
|
%define _unitdir_user /usr/lib/systemd/user
Name: weston
%define lname libweston
Version: 1.0.2
Release: 0
Summary: Wayland Compositor Infrastructure
License: MIT
Group: Development/Libraries/C and C++
Url: http://weston.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/wayland/weston
#Git-Web: http://cgit.freedesktop.org/wayland/weston/
Source0: %name-%version.tar.xz
Source1: weston.service
Source2: weston.target
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.64, automake >= 1.11
BuildRequires: gcc-c++
BuildRequires: expat-devel
BuildRequires: libjpeg-devel
BuildRequires: libtool >= 2.2
BuildRequires: libvpx-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
#BuildRequires: rsvg-view
BuildRequires: xz
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
BuildRequires: pkgconfig(cairo-xcb)
BuildRequires: pkgconfig(egl) >= 7.10
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libdrm) >= 2.4.30
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(libsystemd-login)
BuildRequires: pkgconfig(libudev) >= 136
BuildRequires: pkgconfig(mtdev) >= 1.1.0
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xkbcommon) >= 0.0.578
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-xfixes)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(glu) >= 9.0.0
Requires(pre): /usr/sbin/groupadd
%description
Weston is the reference implementation of a Wayland compositor, and a
useful compositor in its own right. Weston has various backends that
lets it run on Linux kernel modesetting and evdev input as well as
under X11. Weston ships with a few example clients, from simple
clients that demonstrate certain aspects of the protocol to more
complete clients and a simplistic toolkit. There is also a quite
capable terminal emulator (weston-terminal) and an toy/example
desktop shell. Finally, weston also provides integration with the
Xorg server and can pull X clients into the Wayland desktop and act
as a X window manager.
%prep
%setup -q
%build
%autogen
%configure --disable-static --disable-setuid-install --enable-simple-clients --enable-clients
make %{?_smp_mflags};
%install
%make_install
install -d %{buildroot}/%{_unitdir_user}/weston.target.wants
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir_user}/weston.service
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir_user}/weston.target
ln -sf ../weston.service %{buildroot}/%{_unitdir_user}/weston.target.wants/
%pre
getent group weston-launch >/dev/null || %{_sbindir}/groupadd -o -r weston-launch
%files
%defattr(-,root,root)
%_bindir/wcap-*
%_bindir/weston
%_bindir/weston-info
%attr(4755,root,root) %{_bindir}/weston-launch
%{_bindir}/weston-terminal
%_libexecdir/weston-*
%_libdir/weston
%_datadir/weston
%{_unitdir_user}/weston.service
%{_unitdir_user}/weston.target
%{_unitdir_user}/weston.target.wants
%{_unitdir_user}/weston.target.wants/weston.service
/usr/share/man/man1/weston.1.gz
%changelog
|