Name: weston Summary: Weston Compositor Version: 1.0.6 Release: 1 Group: System/Libraries License: MIT URL: http://wayland.freedesktop.org Source0: %{name}-%{version}.tar.bz2 Source1: cursors.tar.bz2 Source2: weston.service Source3: 99-vtc1000-quirk.rules Source4: rc.weston Source5: weston.sh Source6: weston.manifest Source7: 99-chelong-quirk.rules BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(mtdev) BuildRequires: pkgconfig(xcursor) BuildRequires: libjpeg-devel Requires: xkeyboard-config %description Weston compositor %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: wayland-devel = %{version} Requires: libGLESv2-devel Requires: libEGL-devel Requires: libxkbcommon-devel Requires: pixman-devel %description devel Development files needed for building Weston modules %package cursors Summary: Adds a simple cursor theme to the default cursor theme Group: System/Libraries Requires: %{name} = %{version}-%{release} %description cursors Adds a simple cursor theme to the default cursor theme %prep %setup -q -n %{name}-%{version} %build %autogen --disable-weston-launch --disable-setuid-install --disable-x11-compositor --disable-xwayland make %{?_smp_mflag} %install rm -rf %{buildroot} %make_install install -m 755 clients/dnd $RPM_BUILD_ROOT%{_bindir}/wayland-dnd install -m 755 clients/eventdemo $RPM_BUILD_ROOT%{_bindir}/wayland-eventdemo install -m 755 clients/flower $RPM_BUILD_ROOT%{_bindir}/wayland-flower install -m 755 clients/image $RPM_BUILD_ROOT%{_bindir}/wayland-image install -m 755 clients/resizor $RPM_BUILD_ROOT%{_bindir}/wayland-resizor install -m 755 clients/simple-egl $RPM_BUILD_ROOT%{_bindir}/wayland-simple-egl install -m 755 clients/simple-shm $RPM_BUILD_ROOT%{_bindir}/wayland-simple-shm install -m 755 clients/simple-touch $RPM_BUILD_ROOT%{_bindir}/wayland-simple-touch install -m 755 clients/smoke $RPM_BUILD_ROOT%{_bindir}/wayland-smoke # Systemd mkdir -p $RPM_BUILD_ROOT/%{_libdir}/systemd/system/graphical.target.wants install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_libdir}/systemd/system/ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/ install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/ install -m 0644 %{SOURCE7} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/ ln -sf ../weston.service $RPM_BUILD_ROOT/%{_libdir}/systemd/system/graphical.target.wants/weston.service # System V mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d install -m 0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/rc.d/init.d/weston ln -sf %{_sysconfdir}/rc.d/init.d/weston %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S20weston # Environment variables necessary to run Weston and Wayland clients. mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/default tar -C $RPM_BUILD_ROOT%{_datadir}/icons/default -xvf %{SOURCE1} # Weston configuration file directory mkdir -p %{buildroot}%{_sysconfdir}/xdg/weston %files %manifest packaging/weston.manifest %defattr(-,root,root,-) %{_bindir}/weston %{_bindir}/weston-terminal %{_bindir}/weston-info %{_bindir}/wayland-* %{_bindir}/wcap-decode %dir %{_libdir}/weston/ %{_libdir}/weston/*.so %{_libexecdir}/weston-desktop-shell %{_libexecdir}/weston-tablet-shell %{_libexecdir}/weston-screenshooter %dir %{_datadir}/weston/ %{_datadir}/weston/*.* %{_datadir}/man/*/* %{_libdir}/systemd/system/weston.service %{_libdir}/systemd/system/graphical.target.wants/weston.service %{_sysconfdir}/udev/rules.d/* %{_sysconfdir}/profile.d/weston.sh %{_sysconfdir}/rc.d/init.d/weston %{_sysconfdir}/rc.d/rc3.d/S20weston %dir %{_sysconfdir}/xdg/weston %files devel %defattr(-,root,root,-) %{_includedir}/weston/*.h %{_libdir}/pkgconfig/*.pc %files cursors %defattr(-,root,root,-) %{_datadir}/icons/default/cursors/*