2012-02-11 16:55:46 +01:00
#
# spec file for package wayland
#
2016-06-01 09:59:09 +02:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2012-02-11 16:55:46 +01: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-11-20 11:29:40 +01:00
2021-12-09 19:31:38 +01:00
%define _version 1.20.0
2018-11-26 11:16:34 +01:00
%if 0%{?suse_version} >= 1500 && 0%{?suse_version} < 1550
2018-11-21 18:58:49 +01:00
%define eglversion 99~%_version
2018-11-26 11:16:34 +01:00
%else
%define eglversion %_version
%endif
2012-11-20 11:29:40 +01:00
2012-02-11 16:55:46 +01:00
%define lname libwayland0
2014-01-21 13:04:42 +01:00
Name : wayland
2018-11-21 18:58:49 +01:00
Version : %_version
2012-11-20 11:29:40 +01:00
Release : 0
Summary : Wayland Compositor Infrastructure
2015-09-22 17:47:51 +02:00
License : MIT
2012-11-20 11:29:40 +01:00
Group : Development/Libraries/C and C++
2015-02-02 11:32:08 +01:00
Url : http://wayland.freedesktop.org/
2014-09-08 14:15:09 +02:00
2012-02-11 16:55:46 +01:00
#Git-Clone: git://anongit.freedesktop.org/wayland/wayland
#Git-Web: http://cgit.freedesktop.org/wayland/wayland/
2014-01-21 13:04:57 +01:00
Source : http://wayland.freedesktop.org/releases/%name-%version.tar.xz
2015-06-03 17:41:37 +02:00
Source2 : http://wayland.freedesktop.org/releases/%name-%version.tar.xz.sig
2015-06-03 17:49:19 +02:00
Source3 : %name.keyring
Source4 : baselibs.conf
2022-01-11 10:32:06 +01:00
# PATCH-FIX-UPSTREAM wayland-shm-Close-file-descriptors-not-needed.patch bsc#1194190 alynx.zhou@suse.com -- Close file descriptors not needed to prevent Xwayland crash.
Patch1 : wayland-shm-Close-file-descriptors-not-needed.patch
2021-11-12 22:34:44 +01:00
BuildRequires : c_compiler
BuildRequires : c++_compiler
2013-12-24 23:04:47 +01:00
BuildRequires : libxml2-tools
2014-01-21 13:04:42 +01:00
BuildRequires : libxslt-tools
2021-12-09 19:31:38 +01:00
BuildRequires : meson
2015-02-03 18:11:46 +01:00
BuildRequires : pkg-config
2015-02-02 11:32:08 +01:00
BuildRequires : xz
2014-01-21 13:04:42 +01:00
BuildRequires : pkgconfig(expat)
2012-11-20 11:29:40 +01:00
BuildRequires : pkgconfig(libffi)
2016-02-08 13:15:36 +01:00
BuildRequires : pkgconfig(libxml-2.0)
2015-02-04 16:04:55 +01:00
%define with_doc 0
%if 0%with_doc
2015-06-03 17:41:37 +02:00
BuildRequires : doxygen
2015-06-06 21:12:34 +02:00
BuildRequires : graphviz-gnome
2015-06-03 17:41:37 +02:00
BuildRequires : xmlto
2015-02-04 16:04:55 +01:00
%endif
2012-02-11 16:55:46 +01:00
%description
Wayland is a protocol for a compositor to talk to its clients as well
as a C library implementation of that protocol. The compositor can be
a standalone display server running on Linux kernel modesetting and
evdev input devices, an X application, or a wayland client itself.
The clients can be traditional applications, X servers (rootless or
fullscreen) or other display servers.
%package -n libwayland-client0
2012-11-20 11:29:40 +01:00
Summary : Wayland core client library
Group : System/Libraries
2012-02-11 16:55:46 +01:00
%description -n libwayland-client0
Wayland is a protocol for a compositor to talk to its clients as well
as a C library implementation of that protocol. The compositor can be
a standalone display server running on Linux kernel modesetting and
evdev input devices, an X application, or a wayland client itself.
The clients can be traditional applications, X servers (rootless or
fullscreen) or other display servers.
2012-07-09 02:10:15 +02:00
%package -n libwayland-cursor0
2012-11-20 11:29:40 +01:00
Summary : Wayland cursor library
Group : System/Libraries
2012-07-09 02:10:15 +02:00
%description -n libwayland-cursor0
The purpose of this library is to be the equivalent of libXcursor in
the X world. This library is compatible with X cursor themes and
loads them directly into an shm pool making it easy for the clients
to get buffer for each cursor image.
2018-04-09 20:25:23 +02:00
%package -n libwayland-egl1
Summary : Additional egl functions for wayland
Group : System/Libraries
2018-11-21 18:58:49 +01:00
Version : %eglversion
2018-04-09 20:25:23 +02:00
%description -n libwayland-egl1
This package provides additional functions for EGL-using programs
that run within the Wayland framework. This allows for applications
that need not run full-screen and cooperate with a compositor.
2012-02-11 16:55:46 +01:00
%package -n libwayland-server0
2012-11-20 11:29:40 +01:00
Summary : Wayland core server library
Group : System/Libraries
2012-02-11 16:55:46 +01:00
%description -n libwayland-server0
Wayland is a protocol for a compositor to talk to its clients as well
as a C library implementation of that protocol. The compositor can be
a standalone display server running on Linux kernel modesetting and
evdev input devices, an X application, or a wayland client itself.
The clients can be traditional applications, X servers (rootless or
fullscreen) or other display servers.
%package devel
2012-11-20 11:29:40 +01:00
Summary : Development files for the Wayland Compositor Infrastructure
Group : Development/Libraries/C and C++
2018-11-21 18:50:38 +01:00
Requires : libwayland-client0 = %_version
Requires : libwayland-cursor0 = %_version
2018-11-21 18:58:49 +01:00
Requires : libwayland-egl1 = %eglversion
2018-11-21 18:50:38 +01:00
Requires : libwayland-server0 = %_version
2018-11-20 16:46:49 +01:00
%if 0%{?suse_version} >= 1500
2022-01-10 19:18:20 +01:00
%if (0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400)
2018-08-15 11:54:53 +02:00
Provides : libwayland-egl-devel = 18.1.5
Obsoletes : libwayland-egl-devel < 18.1.5
2018-11-20 16:46:49 +01:00
%else
Provides : libwayland-egl-devel = 18.0.2
Obsoletes : libwayland-egl-devel < 18.0.2
%endif
2018-08-15 11:54:53 +02:00
%endif
2012-02-11 16:55:46 +01:00
%description devel
Wayland is a protocol for a compositor to talk to its clients as well
as a C library implementation of that protocol. The compositor can be
a standalone display server running on Linux kernel modesetting and
evdev input devices, an X application, or a wayland client itself.
The clients can be traditional applications, X servers (rootless or
fullscreen) or other display servers.
This package contains all necessary include files and libraries needed
to develop applications that require these.
2015-01-27 22:46:44 +01:00
%package doc
Summary : Wayland development documentation
Group : Documentation/HTML
BuildArch : noarch
%description doc
This subpackage contains the documentation to Wayland.
2012-02-11 16:55:46 +01:00
%prep
2021-11-12 22:34:44 +01:00
%autosetup -p1
2018-11-21 18:58:49 +01:00
sed -i 's/<eglversion>/%eglversion/' " %_sourcedir / b a s e l i b s . c o n f "
2012-02-11 16:55:46 +01:00
%build
2021-10-19 08:52:33 +02:00
# includedir intentional, cf. bugzilla.opensuse.org/795968
2021-11-12 22:34:44 +01:00
%meson \
--includedir=" %_includedir / % n a m e " \
2015-02-04 16:04:55 +01:00
%if %with_doc
--docdir=" %_defaultdocdir / % n a m e "
%else
2021-11-12 22:34:44 +01:00
-D documentation=false
2015-02-04 16:04:55 +01:00
%endif
2021-11-12 22:34:44 +01:00
%meson_build
2012-02-11 16:55:46 +01:00
%install
2021-11-12 22:34:44 +01:00
%meson_install
2012-02-11 16:55:46 +01:00
2012-12-18 13:57:12 +01:00
%check
2021-11-12 22:34:44 +01:00
%meson_test
2012-12-18 13:57:12 +01:00
2021-11-12 22:34:44 +01:00
%if 0%{?suse_version} >= 1550
%ldconfig_scriptlets -n libwayland-client0
%ldconfig_scriptlets -n libwayland-cursor0
%ldconfig_scriptlets -n libwayland-egl1
%ldconfig_scriptlets -n libwayland-server0
%else
2014-05-21 12:19:43 +02:00
%post -n libwayland-client0 -p /sbin/ldconfig
2012-02-11 16:55:46 +01:00
%postun -n libwayland-client0 -p /sbin/ldconfig
2014-05-21 12:19:43 +02:00
%post -n libwayland-cursor0 -p /sbin/ldconfig
2012-07-09 02:10:15 +02:00
%postun -n libwayland-cursor0 -p /sbin/ldconfig
2018-04-09 20:25:23 +02:00
%post -n libwayland-egl1 -p /sbin/ldconfig
%postun -n libwayland-egl1 -p /sbin/ldconfig
2014-05-21 12:19:43 +02:00
%post -n libwayland-server0 -p /sbin/ldconfig
2012-02-11 16:55:46 +01:00
%postun -n libwayland-server0 -p /sbin/ldconfig
2021-11-12 22:34:44 +01:00
%endif
2012-02-11 16:55:46 +01:00
%files -n libwayland-client0
2014-01-21 13:04:57 +01:00
%_libdir /libwayland-client.so.0*
2017-10-13 11:06:29 +02:00
%doc COPYING
2012-02-11 16:55:46 +01:00
2012-07-09 02:10:15 +02:00
%files -n libwayland-cursor0
2014-01-21 13:04:57 +01:00
%_libdir /libwayland-cursor.so.0*
2012-07-09 02:10:15 +02:00
2018-04-09 20:25:23 +02:00
%files -n libwayland-egl1
%_libdir /libwayland-egl.so.1*
2012-02-11 16:55:46 +01:00
%files -n libwayland-server0
2014-01-21 13:04:57 +01:00
%_libdir /libwayland-server.so.0*
2012-02-11 16:55:46 +01:00
%files devel
2014-01-21 13:04:57 +01:00
%_bindir /wayland-scanner
2015-01-27 22:46:44 +01:00
%_includedir /%name/
2014-01-21 13:04:57 +01:00
%_libdir /libwayland-*.so
%_libdir /pkgconfig/wayland-*.pc
%_datadir /aclocal/
%_datadir /wayland/
2015-01-27 22:46:44 +01:00
2015-02-04 16:04:55 +01:00
%if %with_doc
%files doc
%_mandir /man3/wl*.3*
%_docdir /%name/
%endif
2012-02-11 16:55:46 +01:00
%changelog