File picom-conf.spec of Package picom-conf
#
# spec file for package picom-conf
#
# 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/
#
%define _name picom_conf
Name: picom-conf
Version: @SERVICE@
Release: 0
Summary: GUI configuration tool for Picom X composite manager
License: LGPL-2.1-or-later
Group: System/X11/Utilities
URL: https://github.com/qtilities/picom-conf
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: qtilitools
BuildRequires: pkgconfig(libconfig)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: update-desktop-files
Requires: picom
Recommends: %{name}-lang
%description
picom-conf is a configuration tool for X composite manager picom.
%lang_package
%prep
%autosetup
%build
%cmake \
-DPICOM_ENABLE_AUTOSTART=ON \
-DPROJECT_TRANSLATIONS_UPDATE=ON
%cmake_build
%install
%cmake_install
mv %{buildroot}%{_sysconfdir}/xdg/autostart/picom.desktop \
%{buildroot}%{_sysconfdir}/xdg/autostart/lxqt-picom.desktop
%find_lang %{name} --with-qt
%files
%doc AUTHORS README.md
%{_sysconfdir}/xdg/autostart/lxqt-picom.desktop
%{_bindir}/%{name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/metainfo/%{_name}.appdata.xml
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/picom.conf.example
%exclude %{_datadir}/%{name}/translations
%license COPYING
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/translations
%if 0%{?sle_version}
%{_datadir}/%{name}/translations/%{name}_arn.qm
%{_datadir}/%{name}/translations/%{name}_ast.qm
%{_datadir}/%{name}/translations/%{name}_fil.qm
%endif
%changelog