File vala-panel-plugin-sntray.spec of Package vala-panel-plugin-sntray
#
# spec file for package vala-panel-plugin-sntray
#
# Copyright (c) 2020 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 _rev e62d63eb828508fc12110c9a31132d56
%define _name xfce4-sntray-plugin
Name: vala-panel-plugin-sntray
Version: 0.4.12
Release: 0
Summary: StatusNotifierItem (appindicator) plugin for vala-panel
License: LGPL-3.0-or-later
URL: https://gitlab.com/vala-panel-project/xfce4-sntray-plugin
Source: https://gitlab.com/vala-panel-project/xfce4-sntray-plugin/uploads/%{_rev}/%{_name}-%{version}.tar.xz
BuildRequires: cmake >= 3.6
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: pkgconfig
BuildRequires: vala >= 0.36
BuildRequires: vala-cmake-modules
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libpeas-1.0) >= 1.14.0
BuildRequires: pkgconfig(vala-panel) >= 0.4.89
Recommends: %{name}-lang
%if 0%{?is_opensuse}
BuildRequires: pkgconfig(libxfce4panel-2.0)
BuildRequires: pkgconfig(libxfconf-0)
%endif
%description
StatusNotifierItem is the new D-Bus standard for system tray.
%package lang
Summary: Languages for package vala-panel-plugin-sntray
Suggests: %{name} = %{version}
Supplements: (bundle-lang-other and %{name})
Provides: %{name}-lang-all = %{version}
BuildArch: noarch
%if 0%{?is_opensuse}
Suggests: xfce4-panel-plugin-sntray = %{version}
Supplements: (bundle-lang-other and xfce4-panel-plugin-sntray)
Provides: xfce4-panel-plugin-sntray-lang = %{version}
Provides: xfce4-panel-plugin-sntray-lang-all = %{version}
%endif
%description lang
Provides translations to the packages vala-panel-plugin-sntray and
xfce4-panel-plugin-sntray.
%if 0%{?is_opensuse}
%package -n xfce4-panel-plugin-sntray
Summary: StatusNotifierItem (appindicator) plugin for xfce4-panel
Requires: xfce4-panel
Recommends: xfce4-panel-plugin-sntray-lang
%description -n xfce4-panel-plugin-sntray
StatusNotifierItem is the new D-Bus standard for system tray.
%endif
%prep
%setup -q -n %{_name}-%{version}
%build
%cmake \
-DCMAKE_SHARED_LINKER_FLAGS="" \
-DGSETTINGS_COMPILE=OFF
%cmake_build
%install
%cmake_install
%find_lang %{_name}
%fdupes %{buildroot}%{_datadir}/
%files
%license LICENSE
%doc README.md
%dir %{_libdir}/vala-panel/
%dir %{_libdir}/vala-panel/applets/
%{_libdir}/vala-panel/applets/libsntray.so
%{_datadir}/vala-panel/applets/org.valapanel.sntray.plugin
%{_datadir}/glib-2.0/schemas/org.valapanel.toplevel.sntray.gschema.xml
%files lang -f %{_name}.lang
%if 0%{?is_opensuse}
%files -n xfce4-panel-plugin-sntray
%license LICENSE
%doc README.md
%dir %{_libdir}/xfce4/
%dir %{_libdir}/xfce4/panel/
%dir %{_libdir}/xfce4/panel/plugins/
%{_libdir}/xfce4/panel/plugins/libsntray-xfce.so
%dir %{_datadir}/xfce4/
%dir %{_datadir}/xfce4/panel/
%dir %{_datadir}/xfce4/panel/plugins/
%{_datadir}/xfce4/panel/plugins/sntray.desktop
%endif
%changelog