2012-07-09 17:18:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package weston
|
|
|
|
#
|
2022-01-19 14:27:04 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-07-09 17:18:36 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-19 06:41:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-07-09 17:18:36 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: weston
|
|
|
|
%define lname libweston0
|
2022-09-22 23:53:45 +02:00
|
|
|
%define major 11
|
2022-12-15 14:53:42 +01:00
|
|
|
%define realver 11.0.1
|
2022-09-22 23:53:45 +02:00
|
|
|
Version: 11
|
2012-07-09 17:18:36 +02:00
|
|
|
Release: 0
|
2014-01-24 13:11:36 +01:00
|
|
|
Summary: Wayland Reference Compositor
|
2022-01-19 14:27:04 +01:00
|
|
|
License: CC-BY-SA-3.0 AND MIT
|
2014-01-24 13:31:27 +01:00
|
|
|
Group: System/X11/Servers
|
2019-08-24 06:11:13 +02:00
|
|
|
URL: https://wayland.freedesktop.org/
|
2012-07-09 17:18:36 +02:00
|
|
|
#Git-Clone: git://anongit.freedesktop.org/wayland/weston
|
2019-08-19 06:41:20 +02:00
|
|
|
#Git-Web: https://cgit.freedesktop.org/wayland/weston/
|
2022-12-15 14:53:42 +01:00
|
|
|
Source: https://gitlab.freedesktop.org/wayland/weston/uploads/f5648c818fba5432edc3ea63c4db4813/weston-11.0.1.tar.xz
|
|
|
|
Source2: https://gitlab.freedesktop.org/wayland/weston/uploads/bb54e28b5ee47aaccb30a8ffbc31f977/weston-11.0.1.tar.xz.sig
|
2022-02-01 23:54:08 +01:00
|
|
|
BuildRequires: Mesa-libGLESv3-devel
|
2014-09-08 15:05:23 +02:00
|
|
|
BuildRequires: autoconf >= 2.64
|
|
|
|
BuildRequires: automake >= 1.11
|
2020-02-03 23:21:43 +01:00
|
|
|
BuildRequires: gcc-c++
|
2020-09-04 17:56:34 +02:00
|
|
|
BuildRequires: glibc-devel >= 2.27
|
2012-09-04 00:30:09 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2014-09-08 15:05:23 +02:00
|
|
|
BuildRequires: libtool >= 2.2
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2019-03-29 13:59:54 +01:00
|
|
|
BuildRequires: meson
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: xkeyboard-config
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: xz
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.10.0
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(cairo-xcb)
|
|
|
|
BuildRequires: pkgconfig(colord) >= 0.1.27
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.6
|
2016-02-18 23:34:42 +01:00
|
|
|
BuildRequires: pkgconfig(egl)
|
2016-06-01 11:22:34 +02:00
|
|
|
BuildRequires: pkgconfig(freerdp2)
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(gbm)
|
|
|
|
BuildRequires: pkgconfig(glesv2)
|
2013-07-15 11:58:15 +02:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
2022-09-23 00:07:06 +02:00
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.108
|
2019-03-29 13:59:54 +01:00
|
|
|
BuildRequires: pkgconfig(libevdev)
|
2015-01-27 22:54:53 +01:00
|
|
|
BuildRequires: pkgconfig(libinput) >= 0.8.0
|
2022-09-22 23:53:45 +02:00
|
|
|
BuildRequires: pkgconfig(libseat)
|
2016-02-18 23:34:42 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd) >= 209
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(libudev) >= 136
|
2019-03-29 13:59:54 +01:00
|
|
|
BuildRequires: pkgconfig(libva)
|
2013-03-24 18:28:42 +01:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.25.2
|
2022-02-01 23:54:08 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.18.0
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-egl)
|
2022-02-01 23:54:08 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.24
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
2022-02-01 23:54:08 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.18.0
|
2018-08-25 19:38:27 +02:00
|
|
|
BuildRequires: pkgconfig(xcb) >= 1.8
|
2018-03-03 01:21:34 +01:00
|
|
|
BuildRequires: pkgconfig(xcb-composite)
|
|
|
|
BuildRequires: pkgconfig(xcb-shm)
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
2018-03-03 01:21:34 +01:00
|
|
|
BuildRequires: pkgconfig(xcb-xkb) >= 1.9
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(xcursor)
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
|
2018-03-03 01:21:34 +01:00
|
|
|
Requires: vpx-tools
|
2013-10-30 20:41:11 +01:00
|
|
|
Requires: xkeyboard-config
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%description
|
2012-09-04 00:30:09 +02:00
|
|
|
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.
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%package -n libweston-%major
|
2016-09-21 10:54:23 +02:00
|
|
|
Summary: Weston rendering backend collection
|
2016-09-21 07:52:14 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%description -n libweston-%major
|
2016-09-21 10:54:23 +02:00
|
|
|
This subpackage contains backend renderer plugins, used by
|
2019-03-29 13:59:54 +01:00
|
|
|
libweston-%major-0.
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%package -n libweston-%major-0
|
2016-09-21 07:52:14 +02:00
|
|
|
Summary: The Weston compositor as a shared library
|
|
|
|
Group: System/Libraries
|
2019-03-29 13:59:54 +01:00
|
|
|
Requires: libweston-%major >= %version
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%description -n libweston-%major-0
|
2016-09-21 10:54:23 +02:00
|
|
|
The libweston library is intended for use by other compositor efforts
|
|
|
|
(projects) that want to more easily utilize Weston's internal
|
|
|
|
functionalities. Weston's own reference compositor also makes use of
|
|
|
|
this.
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2013-03-24 17:34:03 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for Weston plugins
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-03-29 13:59:54 +01:00
|
|
|
Requires: libweston-%major-0 = %version
|
2013-03-24 17:34:03 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop plugins for Weston.
|
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%prep
|
2019-03-29 13:59:54 +01:00
|
|
|
%autosetup -n %name-%realver -p1
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%build
|
2020-02-05 12:36:32 +01:00
|
|
|
echo "Workaround broken weston that fails to cope with -Wl,--no-undefined injected by meson/ninja"
|
|
|
|
export LDFLAGS="%{?build_ldflags} -Wl,-z,undefs"
|
2019-03-29 13:59:54 +01:00
|
|
|
%meson -Ddemo-clients=false -Dremoting=false -Dsimple-clients= \
|
2019-08-19 06:41:20 +02:00
|
|
|
-Dtest-junit-xml=false -Dpipewire=false \
|
2019-03-29 13:59:54 +01:00
|
|
|
--includedir="%_includedir/%name"
|
|
|
|
%meson_build
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%install
|
2019-03-29 13:59:54 +01:00
|
|
|
%meson_install
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2012-12-19 10:14:03 +01:00
|
|
|
%check
|
2014-08-27 15:56:17 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
|
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
|
|
|
mkdir -pm go-rwx "$XDG_RUNTIME_DIR"
|
2019-03-29 15:20:24 +01:00
|
|
|
export BACKEND=headless-backend.so
|
2020-11-24 12:00:34 +01:00
|
|
|
pushd %_vpath_builddir/;
|
2019-03-29 15:20:24 +01:00
|
|
|
if ! meson test; then
|
|
|
|
cat meson-logs/testlog.txt
|
2014-08-27 18:32:46 +02:00
|
|
|
# make check can not pass completely without an actual screen.
|
2014-08-27 15:56:17 +02:00
|
|
|
#exit 1
|
2014-01-24 13:31:27 +01:00
|
|
|
fi
|
2019-03-29 15:20:24 +01:00
|
|
|
popd
|
2014-08-27 15:56:17 +02:00
|
|
|
%endif
|
2012-12-19 10:14:03 +01:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%post -n libweston-%major-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libweston-%major-0 -p /sbin/ldconfig
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%files
|
2018-08-25 19:38:27 +02:00
|
|
|
%license COPYING
|
2014-07-22 17:20:34 +02:00
|
|
|
%_bindir/w*
|
2014-07-22 16:40:36 +02:00
|
|
|
%_libexecdir/%name-*
|
|
|
|
%_libdir/%name/
|
|
|
|
%_datadir/%name/
|
2015-02-02 12:06:06 +01:00
|
|
|
%_datadir/wayland-sessions/
|
2019-08-19 06:41:20 +02:00
|
|
|
%_datadir/libweston-%major/
|
2014-07-22 17:10:41 +02:00
|
|
|
%_mandir/man?/*.*
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%files -n libweston-%major-0
|
|
|
|
%_libdir/libweston-%major.so.0*
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2019-03-29 13:59:54 +01:00
|
|
|
%files -n libweston-%major
|
|
|
|
%_libdir/libweston-%major/
|
2016-09-21 07:52:14 +02:00
|
|
|
|
2013-03-24 17:34:03 +01:00
|
|
|
%files devel
|
2015-01-27 22:54:53 +01:00
|
|
|
%_includedir/%name/
|
2016-09-21 07:52:14 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_libdir/libweston*.so
|
2019-03-29 15:21:31 +01:00
|
|
|
%_datadir/pkgconfig/*.pc
|
2013-03-24 17:34:03 +01:00
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%changelog
|