%global prerel pre1 %global xfceversion 4.20%{?prerel} # Disable X11 for RHEL 10+ %bcond x11 %[%{undefined rhel} || 0%{?rhel} < 10] %global glib2_minver 2.68.0 %global gtk3_minver 3.24.10 %global gdk_pixbuf_minver 2.40.8 %global wl_minver 1.20 %global api_majorver 0 Name: libxfce4windowing Version: 4.19.9 Release: 1%{?dist} Summary: Windowing concept abstraction library for X11 and Wayland License: LGPL-2.1-or-later URL: https://docs.xfce.org/xfce/libxfce4windowing/start #VCS: git:https://gitlab.xfce.org/xfce/%{name}.git Source0: http://archive.xfce.org/xfce/%{xfceversion}/src/%{name}-%{version}.tar.bz2 BuildRequires: bzip2 BuildRequires: gcc BuildRequires: git-core BuildRequires: meson >= 0.56 BuildRequires: tar BuildRequires: xfce4-dev-tools >= 4.19.4 # Generic deps BuildRequires: pkgconfig(glib-2.0) >= %{glib2_minver} BuildRequires: pkgconfig(gobject-2.0) >= %{glib2_minver} BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_minver} BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf_minver} BuildRequires: pkgconfig(gdk-3.0) >= %{gtk3_minver} BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_minver} BuildRequires: pkgconfig(gtk-doc) >= 1.30 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.66.0 # Wayland deps BuildRequires: pkgconfig(gdk-wayland-3.0) >= %{gtk3_minver} BuildRequires: pkgconfig(wayland-scanner) >= %{wl_minver} BuildRequires: pkgconfig(wayland-client) >= %{wl_minver} BuildRequires: pkgconfig(wayland-protocols) >= 1.25 BuildRequires: pkgconfig(wlr-protocols) %if %{with x11} # X11 deps BuildRequires: pkgconfig(libdisplay-info) >= 0.1.1 BuildRequires: pkgconfig(x11) >= 1.6.7 BuildRequires: pkgconfig(gdk-x11-3.0) >= %{gtk3_minver} BuildRequires: pkgconfig(libwnck-3.0) >= 3.14 BuildRequires: pkgconfig(xrandr) >= 1.5.0 %endif %description Libxfce4windowing is an abstraction library that attempts to present windowing concepts (screens, toplevel windows, workspaces, etc.) in a windowing-system-independent manner. Currently, X11 is fully supported, via libwnck. Wayland is partially supported, through various Wayland protocol extensions. However, the full range of operations available on X11 is not available on Wayland, due to missing features in these protocol extensions. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -S git_am %conf %meson %{!?with_x11:-Dx11=false} %build %meson_build %install %meson_install %find_lang %{name} %files -f %{name}.lang %license COPYING %doc NEWS %{_libdir}/%{name}*.so.%{api_majorver}{,.*} %{_libdir}/girepository-1.0/Libxfce4windowing*-%{api_majorver}.0.typelib %files devel # Co-own the directory for now %dir %{_includedir}/xfce4 %{_includedir}/xfce4/%{name}*/ %{_libdir}/%{name}*.so %{_libdir}/pkgconfig/%{name}*.pc %{_datadir}/gir-1.0/Libxfce4windowing*-%{api_majorver}.0.gir %changelog * Sun Nov 10 2024 Neal Gompa - 4.19.9-1 - Update to 4.19.9 * Thu Jul 18 2024 Fedora Release Engineering - 4.19.3^git20240317.0a487d7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Mar 24 2024 Joshua Strobl - 4.19.3^git20240317.0a487d7-1 - Update to 4.19.3 * Thu Jan 25 2024 Fedora Release Engineering - 4.19.2^git20231104.1fbbf17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 4.19.2^git20231104.1fbbf17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Dec 02 2023 Neal Gompa - 4.19.2^git20231104.1fbbf17-1 - Initial package