93eb77a
# Note: compton fork renamed to 'picom' since version 7.5
c0f2b8d
c0f2b8d
%global oldname compton-ng
96a7b97
%global tarball_version %%(echo %{version} | tr '~' '-')
c0f2b8d
c0f2b8d
Name:           picom
a0af1c9
Version:        10.2
7dc2155
Release:        %autorelease
96a7b97
Summary:        Lightweight compositor for X11
c0f2b8d
c0f2b8d
License:        MPLv2.0 and MIT
c0f2b8d
URL:            https://github.com/yshui/picom
393aa14
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
c0f2b8d
0b3cb5c
# FR: Please port pcre dependency to pcre2. Pcre has been deprecated.
0b3cb5c
# https://fedoraproject.org/wiki/PcreDeprecation
0b3cb5c
# https://github.com/yshui/picom/issues/895
0b3cb5c
Patch0:         https://github.com/yshui/picom/pull/937.patch#/c2:-replace-pcre-with-pcre2.patch
0b3cb5c
c0f2b8d
BuildRequires:  asciidoc
c0f2b8d
BuildRequires:  desktop-file-utils
c0f2b8d
BuildRequires:  gcc
c0f2b8d
BuildRequires:  libev-devel
c0f2b8d
BuildRequires:  meson
c0f2b8d
BuildRequires:  uthash-devel
e634462
c0f2b8d
BuildRequires:  pkgconfig(dbus-1)
96a7b97
BuildRequires:  pkgconfig(egl)
c0f2b8d
BuildRequires:  pkgconfig(gl)
c0f2b8d
BuildRequires:  pkgconfig(libconfig)
0b3cb5c
BuildRequires:  pkgconfig(libpcre2-8)
c0f2b8d
BuildRequires:  pkgconfig(libxdg-basedir)
c0f2b8d
BuildRequires:  pkgconfig(pixman-1)
c0f2b8d
BuildRequires:  pkgconfig(x11)
c0f2b8d
BuildRequires:  pkgconfig(xcb-composite)
c0f2b8d
BuildRequires:  pkgconfig(xcb-damage)
c0f2b8d
BuildRequires:  pkgconfig(xcb-image)
c0f2b8d
BuildRequires:  pkgconfig(xcb-present)
c0f2b8d
BuildRequires:  pkgconfig(xcb-randr)
c0f2b8d
BuildRequires:  pkgconfig(xcb-render)
c0f2b8d
BuildRequires:  pkgconfig(xcb-renderutil)
c0f2b8d
BuildRequires:  pkgconfig(xcb-shape)
c0f2b8d
BuildRequires:  pkgconfig(xcb-xfixes)
c0f2b8d
BuildRequires:  pkgconfig(xcb-xinerama)
c0f2b8d
BuildRequires:  pkgconfig(xcb)
c0f2b8d
BuildRequires:  pkgconfig(xext)
c0f2b8d
BuildRequires:  pkgconfig(xproto)
93eb77a
c0f2b8d
Requires:       hicolor-icon-theme
93eb77a
c0f2b8d
Conflicts:      compton%{?_isa}
c0f2b8d
c0f2b8d
Provides:       %{oldname}%{?_isa} = %{version}-%{release}
93eb77a
c0f2b8d
Obsoletes:      %{oldname} =< 7.5-1
c0f2b8d
c0f2b8d
%description
96a7b97
picom is a compositor for X, and a fork of Compton.
c0f2b8d
96a7b97
This is a development branch, bugs to be expected
c0f2b8d
96a7b97
You can leave your feedback or thoughts in the discussion tab.
c0f2b8d
c0f2b8d
c0f2b8d
%prep
393aa14
%autosetup -p1
c0f2b8d
c0f2b8d
c0f2b8d
%build
e634462
%meson               \
e634462
    -Dwith_docs=true \
e634462
    %{nil}
c0f2b8d
%meson_build
c0f2b8d
c0f2b8d
c0f2b8d
%install
c0f2b8d
%meson_install
c0f2b8d
c0f2b8d
c0f2b8d
%check
c0f2b8d
%meson_test
c0f2b8d
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
c0f2b8d
c0f2b8d
c0f2b8d
%files
c0f2b8d
%license COPYING LICENSES/MPL-2.0 LICENSES/MIT
96a7b97
%doc README.md CONTRIBUTORS %{name}.sample.conf
c0f2b8d
%{_bindir}/%{name}*
c0f2b8d
%{_bindir}/compton*
c0f2b8d
%{_datadir}/applications/*.desktop
c0f2b8d
%{_datadir}/icons/hicolor/*/*/*.png
c0f2b8d
%{_datadir}/icons/hicolor/scalable/*/*.svg
e634462
%{_mandir}/man1/*.1*
96a7b97
%{_sysconfdir}/xdg/autostart/%{name}.desktop
c0f2b8d
c0f2b8d
c0f2b8d
%changelog
7dc2155
%autochangelog