File arronax.spec of Package arronax
#
# spec file for package arronax
#
# Copyright (c) 2025 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: arronax
Version: 0.8.1
Release: 0
Summary: Create launcher (desktop) files
License: GPL-3.0-or-later
Group: Productivity/Text/Utilities
URL: http://www.florian-diesch.de/software/arronax/
Source0: https://launchpad.net/~diesch/+archive/ubuntu/stable/+sourcefiles/arronax/%{version}/arronax_%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: python3-base
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
###Requires:
BuildArch: noarch
%description
Create and modify application, file and URI starters.
Arronax is a GTK based GUI program to create and modify starters
(*.desktop files) for applications, files, and URIs.
%lang_package
%prep
%setup -q -n master
# remove shebang
sed -e '/^#!\/usr\/bin/d' \
-i arronax/desktopfile.py arronax/dialogs.py \
arronax/mimetypes.py arronax/parsecli.py arronax/xdgpath.py
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file -r %{name} "Utility;TextEditor;GNOME;GTK"
%find_lang %{name}
### temp
rm -rf %{buildroot}%{_datadir}/caja-python %{buildroot}%{_datadir}/nautilus-python \
%{buildroot}%{_datadir}/nemo-python %{buildroot}%{_datadir}/icons/hicolor/28x28 \
%{buildroot}%{_datadir}/locale/ms
##tests
%files
%license COPYING
%doc README.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
### perhaps these should have an apps subfolder too
%{_datadir}/icons/hicolor/*/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{python3_sitelib}/*
### these ones might have to get their own subpackages
#{_datadir}/caja-python/extensions/caja-arronax.py
#{_datadir}/nautilus-python/extensions/nautilus-arronax.py
#{_datadir}/nemo-python/extensions/nemo-arronax.py
%files lang -f %{name}.lang
%changelog