picom/picom.spec

99 lines
2.5 KiB
RPMSpec
Raw Normal View History

2020-04-21 21:33:57 +00:00
# Note: compton fork renamed to 'picom' since version 7.5
2019-12-06 18:38:11 +00:00
%global oldname compton-ng
2022-10-30 06:15:48 +00:00
%global tarball_version %%(echo %{version} | tr '~' '-')
2019-12-06 18:38:11 +00:00
Name: picom
2022-12-17 12:00:12 +00:00
Version: 10.2
2022-10-30 05:33:01 +00:00
Release: %autorelease
2022-10-30 06:15:48 +00:00
Summary: Lightweight compositor for X11
2019-12-06 18:38:11 +00:00
License: MPLv2.0 and MIT
URL: https://github.com/yshui/picom
2022-11-14 12:19:05 +00:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2019-12-06 18:38:11 +00:00
2022-11-24 01:02:59 +00:00
# FR: Please port pcre dependency to pcre2. Pcre has been deprecated.
# https://fedoraproject.org/wiki/PcreDeprecation
# https://github.com/yshui/picom/issues/895
Patch0: https://github.com/yshui/picom/pull/937.patch#/c2:-replace-pcre-with-pcre2.patch
2019-12-06 18:38:11 +00:00
BuildRequires: asciidoc
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: libev-devel
BuildRequires: meson
BuildRequires: uthash-devel
2022-01-30 11:33:20 +00:00
2019-12-06 18:38:11 +00:00
BuildRequires: pkgconfig(dbus-1)
2022-10-30 06:15:48 +00:00
BuildRequires: pkgconfig(egl)
2019-12-06 18:38:11 +00:00
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libconfig)
2022-11-24 01:02:59 +00:00
BuildRequires: pkgconfig(libpcre2-8)
2019-12-06 18:38:11 +00:00
BuildRequires: pkgconfig(libxdg-basedir)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb-composite)
BuildRequires: pkgconfig(xcb-damage)
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-xfixes)
BuildRequires: pkgconfig(xcb-xinerama)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xproto)
2020-04-21 21:33:57 +00:00
2019-12-06 18:38:11 +00:00
Requires: hicolor-icon-theme
2020-04-21 21:33:57 +00:00
2019-12-06 18:38:11 +00:00
Conflicts: compton%{?_isa}
Provides: %{oldname}%{?_isa} = %{version}-%{release}
2020-04-21 21:33:57 +00:00
2019-12-06 18:38:11 +00:00
Obsoletes: %{oldname} =< 7.5-1
%description
2022-10-30 06:15:48 +00:00
picom is a compositor for X, and a fork of Compton.
2019-12-06 18:38:11 +00:00
2022-10-30 06:15:48 +00:00
This is a development branch, bugs to be expected
2019-12-06 18:38:11 +00:00
2022-10-30 06:15:48 +00:00
You can leave your feedback or thoughts in the discussion tab.
2019-12-06 18:38:11 +00:00
%prep
2022-11-14 12:19:05 +00:00
%autosetup -p1
2019-12-06 18:38:11 +00:00
%build
2022-01-30 11:33:20 +00:00
%meson \
-Dwith_docs=true \
%{nil}
2019-12-06 18:38:11 +00:00
%meson_build
%install
%meson_install
%check
%meson_test
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%files
%license COPYING LICENSES/MPL-2.0 LICENSES/MIT
2022-10-30 06:15:48 +00:00
%doc README.md CONTRIBUTORS %{name}.sample.conf
2019-12-06 18:38:11 +00:00
%{_bindir}/%{name}*
%{_bindir}/compton*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/scalable/*/*.svg
2022-01-30 11:33:20 +00:00
%{_mandir}/man1/*.1*
2022-10-30 06:15:48 +00:00
%{_sysconfdir}/xdg/autostart/%{name}.desktop
2019-12-06 18:38:11 +00:00
%changelog
2022-10-30 05:33:01 +00:00
%autochangelog