File xfce4-panel-profiles.spec of Package xfce4-panel-profiles
#
# spec file for package xfce4-panel-profiles
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: xfce4-panel-profiles
Version: @SERVICE@
Release: 0
Summary: A simple application to manage Xfce panel layouts
License: GPL-3.0-or-later
Group: System/X11/Utilities
URL: https://github.com/xfce-mirror/xfce4-panel-profiles
Source: %{name}-%{version}.tar.xz
# Needed for typelib() - Requires.
BuildRequires: gobject-introspection
BuildRequires: intltool
BuildRequires: python3-base
Requires: python3-gobject
Requires: python3-gobject-Gdk
Requires: xfce4-panel
Recommends: %{name}-lang
Recommends: xfce4-panel-plugin-whiskermenu
BuildArch: noarch
%description
With the modular Xfce Panel, a multitude of panel layouts can be created. This
tool makes it possible to backup, restore, import, and export these panel layouts.
%lang_package
%prep
%setup -q
grep -rl '^#!' | xargs sed -i '/^#!/s/env.*py.*/python3/'
sed -i "s|\(\/button-icon \).*$|\1\'xfce4-opensuse-light\'|" `grep -rl '/button-icon' data/layouts/`
sed -i "s|\(\/button-title \).*$|\1\'\ openSUSE\'|" `grep -rl '/button-title' data/layouts/`
%build
./configure --prefix=%{_prefix} --python=python3
make %{?_smp_mflags}
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc
chmod a-x %{buildroot}%{_datadir}/%{name}/layouts/*
chmod a-x %{buildroot}%{_datadir}/%{name}/%{name}/%{name}.glade
chmod a-x %{buildroot}%{_datadir}/metainfo/org.xfce.PanelProfiles.appdata.xml
%find_lang %{name}
%files
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/org.xfce.PanelProfiles.appdata.xml
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%attr(0644,root,root) %{_mandir}/man?/%{name}.?%{?ext_man}
%files lang -f %{name}.lang
%changelog