Accepting request 932590 from X11:Wayland

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/932590
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wayland?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2021-11-22 22:03:54 +00:00 committed by Git OBS Bridge
commit ca8a1fa0ff
2 changed files with 28 additions and 22 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Nov 12 20:08:09 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
- Switch to meson buildsystem: Add meson BuildRequires and macros.
- Add generic c_compiler and c++_compiler BuildRequires, needed now
with the meson buildsystem.
- Use ldconfig_scriptlets macro for post(un) handling for
Tumbleweed and newer.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 27 18:19:56 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Wed Jan 27 18:19:56 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -37,9 +37,10 @@ Source: http://wayland.freedesktop.org/releases/%name-%version.tar.xz
Source2: http://wayland.freedesktop.org/releases/%name-%version.tar.xz.sig Source2: http://wayland.freedesktop.org/releases/%name-%version.tar.xz.sig
Source3: %name.keyring Source3: %name.keyring
Source4: baselibs.conf Source4: baselibs.conf
#git#BuildRequires: autoconf >= 2.64
#git#BuildRequires: automake >= 1.11 BuildRequires: c_compiler
#git#BuildRequires: libtool >= 2.2 BuildRequires: c++_compiler
BuildRequires: meson
BuildRequires: libxml2-tools BuildRequires: libxml2-tools
BuildRequires: libxslt-tools BuildRequires: libxslt-tools
BuildRequires: pkg-config BuildRequires: pkg-config
@ -53,7 +54,6 @@ BuildRequires: doxygen
BuildRequires: graphviz-gnome BuildRequires: graphviz-gnome
BuildRequires: xmlto BuildRequires: xmlto
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Wayland is a protocol for a compositor to talk to its clients as well Wayland is a protocol for a compositor to talk to its clients as well
@ -144,36 +144,32 @@ BuildArch: noarch
This subpackage contains the documentation to Wayland. This subpackage contains the documentation to Wayland.
%prep %prep
%setup -q %autosetup -p1
sed -i 's/<eglversion>/%eglversion/' "%_sourcedir/baselibs.conf" sed -i 's/<eglversion>/%eglversion/' "%_sourcedir/baselibs.conf"
%build %build
if [ ! -e configure ]; then # includedir intentional, cf. bugzilla.opensuse.org/795968
autoreconf -fi %meson \
fi --includedir="%_includedir/%name" \
%configure --disable-static --includedir="%_includedir/%name" \
%if %with_doc %if %with_doc
--docdir="%_defaultdocdir/%name" --docdir="%_defaultdocdir/%name"
%else %else
--disable-documentation -D documentation=false
%endif %endif
make %{?_smp_mflags} %meson_build
%install %install
%make_install %{?_smp_mflags} %meson_install
find "%buildroot" -type f -name "*.la" -delete -print
%check %check
%if !0%{?qemu_user_space_build} %meson_test
mkdir -p xdg/wayland-tests
chmod a+x xdg xdg/wayland-tests
export XDG_RUNTIME_DIR="$PWD/xdg"
if ! make check V=1; then
cat test-suite.log
exit 1
fi
%endif
%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
%post -n libwayland-client0 -p /sbin/ldconfig %post -n libwayland-client0 -p /sbin/ldconfig
%postun -n libwayland-client0 -p /sbin/ldconfig %postun -n libwayland-client0 -p /sbin/ldconfig
%post -n libwayland-cursor0 -p /sbin/ldconfig %post -n libwayland-cursor0 -p /sbin/ldconfig
@ -182,6 +178,7 @@ fi
%postun -n libwayland-egl1 -p /sbin/ldconfig %postun -n libwayland-egl1 -p /sbin/ldconfig
%post -n libwayland-server0 -p /sbin/ldconfig %post -n libwayland-server0 -p /sbin/ldconfig
%postun -n libwayland-server0 -p /sbin/ldconfig %postun -n libwayland-server0 -p /sbin/ldconfig
%endif
%files -n libwayland-client0 %files -n libwayland-client0
%_libdir/libwayland-client.so.0* %_libdir/libwayland-client.so.0*