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-01-27 19:24:37 +01:00
|
|
|
%define _version 1.19.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
|
2012-10-23 14:23:05 +02:00
|
|
|
#git#BuildRequires: autoconf >= 2.64
|
|
|
|
#git#BuildRequires: automake >= 1.11
|
2014-01-21 13:04:42 +01:00
|
|
|
#git#BuildRequires: libtool >= 2.2
|
2013-12-24 23:04:47 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2014-01-21 13:04:42 +01:00
|
|
|
BuildRequires: libxslt-tools
|
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
|
2015-02-02 11:32:08 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2018-08-15 11:54:53 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
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
|
|
|
|
%setup -q
|
2018-11-21 18:58:49 +01:00
|
|
|
sed -i 's/<eglversion>/%eglversion/' "%_sourcedir/baselibs.conf"
|
2012-02-11 16:55:46 +01:00
|
|
|
|
|
|
|
%build
|
2012-10-22 22:28:04 +02:00
|
|
|
if [ ! -e configure ]; then
|
2017-02-21 23:34:46 +01:00
|
|
|
autoreconf -fi
|
|
|
|
fi
|
2021-10-19 08:52:33 +02:00
|
|
|
# includedir intentional, cf. bugzilla.opensuse.org/795968
|
2015-01-27 22:46:44 +01:00
|
|
|
%configure --disable-static --includedir="%_includedir/%name" \
|
2015-02-04 16:04:55 +01:00
|
|
|
%if %with_doc
|
|
|
|
--docdir="%_defaultdocdir/%name"
|
|
|
|
%else
|
|
|
|
--disable-documentation
|
|
|
|
%endif
|
2021-10-19 08:52:33 +02:00
|
|
|
%make_build
|
2012-02-11 16:55:46 +01:00
|
|
|
|
|
|
|
%install
|
2017-10-13 11:06:29 +02:00
|
|
|
%make_install %{?_smp_mflags}
|
2014-05-21 12:19:43 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2012-02-11 16:55:46 +01:00
|
|
|
|
2012-12-18 13:57:12 +01:00
|
|
|
%check
|
2013-12-24 22:26:30 +01:00
|
|
|
%if !0%{?qemu_user_space_build}
|
2015-02-02 11:32:08 +01:00
|
|
|
mkdir -p xdg/wayland-tests
|
2017-08-09 10:11:38 +02:00
|
|
|
chmod a+x xdg xdg/wayland-tests
|
2013-12-24 22:26:30 +01:00
|
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
2015-02-02 11:32:08 +01:00
|
|
|
if ! make check V=1; then
|
2015-01-27 22:46:44 +01:00
|
|
|
cat test-suite.log
|
|
|
|
exit 1
|
|
|
|
fi
|
2013-10-16 16:01:15 +02:00
|
|
|
%endif
|
2012-12-18 13:57:12 +01:00
|
|
|
|
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
|
|
|
|
|
|
|
|
%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
|