From 91c7c7145a1af602b16d585f861960f32adc9650 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 26 Aug 2019 20:10:32 +0200 Subject: [PATCH] - new --- xfce4-panel-profiles.spec | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 xfce4-panel-profiles.spec diff --git a/xfce4-panel-profiles.spec b/xfce4-panel-profiles.spec new file mode 100644 index 0000000..d32047d --- /dev/null +++ b/xfce4-panel-profiles.spec @@ -0,0 +1,62 @@ +Summary: Application to manage Xfce panel layouts +Name: xfce4-panel-profiles +Version: 1.0.9 +Release: 1 +License: GPL v2 +Group: X11/Applications +Source0: http://archive.xfce.org/src/apps/xfce4-panel-profiles/1.0/%{name}-%{version}.tar.bz2 +# Source0-md5: bee3e251e45ade0ea349366461d6e200 +URL: https://git.xfce.org/apps/xfce4-panel-profiles/about/ +BuildRequires: python3 +BuildRequires: python3-modules +BuildRequires: python3-setuptools +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +BuildRequires: xfce4-panel-devel >= 4.14.0 +Requires: python3-pygobject3 +Requires: xfce4-panel >= 4.14.0 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Xfce4 Panel Profiles (xfce4-panel-profiles, formerly known as +xfpanel-switch) is a simple application to manage Xfce panel layouts. + +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. + +%prep +%setup -q + +# fix #!/usr/bin/env python -> #!/usr/bin/python: +%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' xfce4-panel-profiles/*.py + +%build +./configure \ + --prefix=%{_prefix} + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README +%attr(755,root,root) %{_bindir}/xfce4-panel-profiles +%{_desktopdir}/xfce4-panel-profiles.desktop +%{_datadir}/metainfo/org.xfce.PanelProfiles.appdata.xml +%{_datadir}/xfce4-panel-profiles/layouts +%{_datadir}/xfce4-panel-profiles/locale +%{_datadir}/xfce4-panel-profiles/xfce4-panel-profiles/panelconfig.py +%{_datadir}/xfce4-panel-profiles/xfce4-panel-profiles/xfce4-panel-profiles.glade +%{_datadir}/xfce4-panel-profiles/xfce4-panel-profiles/xfce4-panel-profiles.py -- 2.43.0