%global git_commit_hash f736e9d7a13517f92afa36e37f27e809d66047d7 Name: nautilus-admin Version: 1.1.9 Release: 5%{?dist} Summary: Extension for Nautilus to do administrative operations License: GPL-3.0 URL: https://github.com/MacTavishAO/nautilus-admin-gtk4 Source0: https://github.com/MacTavishAO/nautilus-admin-gtk4/archive/%{git_commit_hash}.zip BuildRequires: cmake BuildRequires: gettext Requires: python3 Requires: nautilus-python Requires: gnome-text-editor BuildArch: noarch %description Nautilus Admin is a simple Python extension for the Nautilus file manager that adds some administrative actions to the right-click menu: * Open as Administrator: opens a folder in a new Nautilus window running with administrator (root) privileges. * Edit as Administrator: opens a file in a text editor window running with administrator (root) privileges. Please remember to restart Nautilus after installation. You can use `nautilus -q` command. %prep %autosetup -n nautilus-admin-gtk4-%{git_commit_hash} %build %cmake -DGEDIT_PATH=%{_bindir}/gnome-text-editor -DNAUTILUS_PATH=%{_bindir}/nautilus %cmake_build %install %cmake_install %find_lang %{name} %files -f %{name}.lang /%{_datadir}/nautilus-python/extensions/%{name}.py %changelog * Wed Jul 26 2023 Tomasz Gąsior - Use gnome-text-editor instead of gedit. * Wed Jul 26 2023 Tomasz Gąsior - Change upstream from abandoned repository to fork, making this package working with GTK4-based Nautilus. * Sun Jan 10 2021 Tomasz Gąsior - Change upstream from abandoned repository to fork, making this package working with current Python. * Mon Nov 18 2019 Tomasz Gąsior - Initial