File picom.spec of Package picom
#
# spec file for package picom
#
# Copyright (c) 2023 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/
#
Name: picom
Version: @SERVICE@
Release: 0
Summary: Stand-alone compositor for X11
License: MIT AND MPL-2.0
Group: System/X11/Utilities
URL: https://github.com/yshui/picom
Source0: %{name}-%{version}.tar.xz
BuildRequires: asciidoc
BuildRequires: c_compiler
BuildRequires: hicolor-icon-theme
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: uthash-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libconfig) >= 1.4
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libev)
BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: pkgconfig(opengl)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb) >= 1.12.0
BuildRequires: pkgconfig(xcb-composite)
BuildRequires: pkgconfig(xcb-damage)
BuildRequires: pkgconfig(xcb-dpms)
BuildRequires: pkgconfig(xcb-glx)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-present)
BuildRequires: pkgconfig(xcb-randr)
BuildRequires: pkgconfig(xcb-render)
BuildRequires: pkgconfig(xcb-renderutil)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(xcb-sync)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(xcb-xfixes)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrender)
Recommends: picom-conf
Recommends: xprop
Recommends: xwininfo
%description
Picom is a stand-alone compositor for X11. It supports both GLX and
XRender backends and has various options to control shadows, blur
and fade animations.
%prep
%autosetup
%build
%meson \
-Dconfig_file=true \
-Dregex=true \
-Dvsync_drm=true \
-Dopengl=true \
-Ddbus=true \
-Dxrescheck=false \
-Dcompton=false \
-Dwith_docs=true \
-Dmodularize=false \
-Dunittest=true
%meson_build
%install
%meson_install
install -Dm 0644 media/icons/48x48/compton.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -Dm 0644 media/compton.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
rm -rfv %{buildroot}%{_sysconfdir}/
%check
%meson_test
%files
%doc README.md picom.sample.conf
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_mandir}/man?/%{name}*.?%{?ext_man}
%license COPYING LICENSES/MIT LICENSES/MPL-2.0
%changelog