File folder-cleaner-extension.spec of Package folder-cleaner-extension
#
# spec file for package folder-cleaner-extension
#
# Copyright (c) 2020 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/
#
%define appname com.github.Latesil.folder-cleaner-extension
Name: folder-cleaner-extension
Version: 1.0.5+0
Release: 0
Summary: Folder Cleaner extension for Nautilus file manager
License: GPL-3.0-or-later
Url: https://gitlab.com/Latesil/folder-cleaner-extension
Source: %{name}-%{version}.tar.gz
Patch: meson.patch
BuildRequires: meson
BuildRequires: pkgconfig(nautilus-python)
Recommends: %{name}-lang
BuildArch: noarch
%description
Folder Cleaner extension for Nautilus file manager.
%lang_package
%prep
%autosetup -p1
sed -i -e '1d;2i#!/usr/bin/python3' script/folder-cleaner-extension.py
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{appname}
%files
%license LICENSE
%doc README.md
%{_datadir}/nautilus-python/extensions/folder-cleaner-extension.py
%files lang -f %{appname}.lang
%changelog