File wayfire.spec of Package wayfire
#
# spec file for package wayfire
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define sover 0
%define _lto_cflags -ffat-lto-objects
Name: wayfire
Version: 0.8.1
Release: 0
Summary: A 3D Wayland compositor
License: MIT
URL: https://github.com/WayfireWM/wayfire
Source0: https://github.com/WayfireWM/wayfire/releases/download/v%{version}/%{name}-%{version}.tar.xz
Group: System/GUI/Other
BuildRequires: cmake
BuildRequires: meson
BuildRequires: gcc-c++
BuildRequires: Mesa-libGLESv3-devel
BuildRequires: pkgconfig(nlohmann_json)
BuildRequires: pkgconfig(doctest)
BuildRequires: pkgconfig(wlroots)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-protocols) >= 1.12
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glm)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(wf-config)
%description
Wayfire is a 3D Wayland compositor, inspired by Compiz and based on wlroots.
It aims to create a customizable, extendable and lightweight environment without
sacrificing its appearance.
%package -n libwf-utils%{sover}
Summary: The wayfire library
Group: System/Libraries
Requires: %{name} = %{version}
%description -n libwf-utils%{sover}
This package contains the introspection bindings for the wayfire library.
%package devel
Summary: Development tools for wayfire
Group: Development/Languages/C and C++
Requires: libwf-utils%{sover} = %{version}
%description devel
The wayfire-devel package contains the header files for wayfire.
%prep
%autosetup -p1
sed -i "s|wayland-server.h|wayland/wayland-server.h|" src/api/wayfire/util.hpp
%build
%meson
%meson_build
%install
%meson_install
%post -n libwf-utils%{sover} -p /sbin/ldconfig
%postun -n libwf-utils%{sover} -p /sbin/ldconfig
%files
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libdir}/libwayfire-blur-base.so
%{_datadir}/%{name}
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/wayfire.desktop
%{_mandir}/man1/%{name}.1%{ext_man}
%files -n libwf-utils%{sover}
%{_libdir}/libwf-utils.so.*
%files devel
%{_libdir}/libwftouch.a
%{_libdir}/libwf-utils.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}