003af0a
%global majorver 1.0
a74e138
%global app_org_name org.xfce.PanelProfiles
003af0a
003af0a
Name:		xfce4-panel-profiles
2069ba4
Version:	1.0.14
922fe55
Release:	%autorelease
003af0a
Summary:	A simple application to manage Xfce panel layouts
003af0a
003af0a
License:	GPLv3
003af0a
URL:		https://git.xfce.org/apps/xfce4-panel-profiles/about/
003af0a
Source0:	https://archive.xfce.org/src/apps/%{name}/%{majorver}/%{name}-%{version}.tar.bz2
003af0a
fee2289
BuildRequires: make
003af0a
BuildRequires:	python3-devel
003af0a
BuildRequires:	gettext
003af0a
BuildRequires:	intltool
003af0a
BuildRequires:	libappstream-glib
003af0a
BuildRequires:	desktop-file-utils
003af0a
003af0a
BuildArch:	noarch
003af0a
003af0a
Requires:	xfce4-panel
cc9fb03
Requires:	python3-psutil
003af0a
003af0a
Provides:	xfpanel-switch = %{version}-%{release}
003af0a
Obsoletes:	xfpanel-switch <= 1.0.7
003af0a
003af0a
%description
003af0a
A simple application to manage Xfce panel layouts
003af0a
003af0a
With the modular Xfce Panel, a multitude of panel layouts can be created. 
003af0a
This tool makes it possible to backup, restore, import, and export these 
003af0a
panel layouts.
003af0a
003af0a
%prep
003af0a
%autosetup
2069ba4
sed -i '4s/$/Configuration;User;/'  org.xfce.PanelProfiles.desktop.in
2069ba4
sed -i '/Keywords/d' org.xfce.PanelProfiles.desktop.in
003af0a
003af0a
%build
003af0a
./configure --prefix=%{_prefix}
003af0a
003af0a
%make_build
003af0a
003af0a
%install
003af0a
%make_install
003af0a
003af0a
003af0a
%find_lang %{name}
003af0a
003af0a
# fix executable permissions on tarballs
003af0a
chmod -x %{buildroot}%{_datadir}/%{name}/layouts/*
003af0a
a74e138
# get rid of INSTALL and extra license file
a74e138
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
a74e138
rm -f %{buildroot}%{_docdir}/%{name}/COPYING
003af0a
003af0a
%check
a74e138
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{app_org_name}.desktop
a74e138
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{app_org_name}.appdata.xml
003af0a
003af0a
%files -f %{name}.lang
003af0a
%license COPYING
a74e138
%doc NEWS AUTHORS README.md
98031c6
%{_mandir}/man1/%{name}*
003af0a
%{_datadir}/%{name}
003af0a
%{_bindir}/%{name}
a74e138
%{_datadir}/applications/%{app_org_name}.desktop
a74e138
%{_datadir}/metainfo/%{app_org_name}.appdata.xml
a74e138
%{_datadir}/icons/hicolor/*/apps/%{app_org_name}.*
003af0a
003af0a
%changelog
922fe55
%autochangelog