File wayland-protocols.spec of Package wayland-protocols

Name:           wayland-protocols
Version:        1.46
Release:        1
Summary:        Wayland protocol definitions
License:        MIT
URL:            https://wayland.freedesktop.org/
Source0:        wayland-protocols-1.46.tar.gz
Source1:        meson-1.3.1.tar.gz

BuildRequires:  ninja
BuildRequires:  gcc
BuildRequires:  lib64wayland-devel

%description
wayland-protocols contains Wayland protocol definitions that add additional
functionality to the core Wayland protocol. These protocols are used by
compositors and clients to implement advanced features such as input methods,
screen sharing, and more.

%prep
%autosetup -p1
tar -xf %{SOURCE1}

%build
python3 meson-1.3.1/meson.py setup builddir \
  --prefix=%{_prefix} \
  --libdir=%{_libdir}
ninja -C builddir

%install
DESTDIR=%{buildroot} ninja -C builddir install

%files
%license COPYING
%doc README.md
%{_datadir}/pkgconfig/wayland-protocols.pc
%{_datadir}/wayland-protocols
%{_includedir}/wayland-protocols

%changelog
* Tue Nov 25 2025 You <you@example.com> - 1.46-1
- Updated to Wayland Protocols 1.46
- Vendored Meson 1.3.1 for Mageia 9 OBS
- Fixed BuildRequires to explicitly use wayland-devel
- Added installed headers under %{_includedir}/wayland-protocols to %files
openSUSE Build Service is sponsored by