File conky-manager2.spec of Package conky-manager2
#
# spec file for package conky-manager2
#
# Copyright (c) 2022 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: conky-manager2
Version: 2.7
Release: 0
Summary: Simple tool for managing Conky configs
License: GPL-3.0-only
URL: https://github.com/zcot/conky-manager2
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Patch0: fix-desktop-file.patch
BuildRequires: meson
BuildRequires: vala
BuildRequires: libgee-devel
BuildRequires: libgtk-3-0
BuildRequires: json-glib-devel
BuildRequires: gettext
BuildRequires: p7zip-full
BuildRequires: ImageMagick
BuildRequires: pkgconfig(gdk-x11-3.0)
BuildRequires: fdupes
BuildRequires: update-desktop-files
%if 0%{?sle_version} == 150500 && 0%{?is_opensuse}
BuildRequires: -python310-base
BuildRequires: -python311-base
%endif
Requires: conky
%description
This is a fork of the old original Conky Manager by teejee2008(Tony George).
This latest version supports Ubuntu 16-21 versions as well as Mint 18-20 and any other Ubuntu flavor or derivative.
It also provides support for the newer lua-based conky and configuration files(v1.10)
%prep
%setup -q -n %{name}-%{version}
%patch 0 -p 1
%build
%meson
%meson_build
%install
%meson_install
%fdupes -s %{buildroot}/%{_datadir}
%find_lang %{name}
%suse_update_desktop_file conky-manager2
cat %{buildroot}/%{_datadir}/applications/conky-manager2.desktop
%files
%license COPYING
%doc README.md
%files -f %{name}.lang
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/conky-manager2.appdata.xml
%dir %{_datadir}/applications
%{_datadir}/applications/conky-manager2.desktop
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/images
%{_datadir}/%{name}/images/conky-manager.xcf
%{_datadir}/%{name}/images/conky-manager2.png
%{_datadir}/%{name}/images/conky-manager214x14.png
%{_datadir}/%{name}/images/conky-manager264x64.png
%attr(644,root,root) %{_datadir}/%{name}/images/donate.svg
%{_datadir}/%{name}/images/help-info.svg
%{_datadir}/%{name}/images/image-generate.xcf
%{_datadir}/%{name}/images/image-generate24x24.png
%{_datadir}/%{name}/images/item-gray.png
%{_datadir}/%{name}/images/item-green.png
%{_datadir}/%{name}/images/view-list.svg
%{_datadir}/%{name}/images/view-preview.svg
%dir %{_datadir}/locale
%dir %{_datadir}/locale/cs
%dir %{_datadir}/locale/cs/LC_MESSAGES
%{_datadir}/locale/cs/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/locale/de
%dir %{_datadir}/locale/de/LC_MESSAGES
%{_datadir}/locale/de/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/locale/fr
%dir %{_datadir}/locale/fr/LC_MESSAGES
%{_datadir}/locale/fr/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/locale/hr
%dir %{_datadir}/locale/hr/LC_MESSAGES
%{_datadir}/locale/hr/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/locale/nl
%dir %{_datadir}/locale/nl/LC_MESSAGES
%{_datadir}/locale/nl/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/locale/pt_BR
%dir %{_datadir}/locale/pt_BR/LC_MESSAGES
%{_datadir}/locale/pt_BR/LC_MESSAGES/conky-manager2.mo
%dir %{_datadir}/pixmaps
%{_datadir}/pixmaps/conky-manager2.png
%changelog