diff --git a/fix_nemo_compare.patch b/fix_nemo_compare.patch new file mode 100644 index 0000000..b507e31 --- /dev/null +++ b/fix_nemo_compare.patch @@ -0,0 +1,22 @@ +From 7e2f348f1c1f3d5c133e0405e007c94e5e12dfc4 Mon Sep 17 00:00:00 2001 +From: leigh123linux +Date: Mon, 28 Nov 2016 11:52:23 +0000 +Subject: [PATCH] nemo-compare: Fix error + + File "/usr/share/nemo-python/extensions/nemo-compare.py", line 166, in get_name_and_desc + return [_("Nemo Compare:::Allows file comparison from the context menu")] +NameError: global name '_' is not defined +--- + nemo-compare/src/nemo-compare.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nemo-compare/src/nemo-compare.py b/nemo-compare/src/nemo-compare.py +index 4ce652e..f52c1ec 100644 +--- a/nemo-compare/src/nemo-compare.py ++++ b/nemo-compare/src/nemo-compare.py +@@ -163,4 +163,4 @@ def get_background_items(self, window, item): + return [] + + def get_name_and_desc(self): +- return [_("Nemo Compare:::Allows file comparison from the context menu")] ++ return [("Nemo Compare:::Allows file comparison from the context menu")] diff --git a/nemo-extensions.spec b/nemo-extensions.spec index 321d899..ed1c12c 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -1,11 +1,12 @@ Name: nemo-extensions Version: 3.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Extensions for Nemo License: GPLv2+ and LGPLv2 URL: http://cinnamon.linuxmint.com Source0: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: fix_nemo_compare.patch BuildRequires: pkgconfig(libnemo-extension) BuildRequires: python-distutils-extra @@ -127,6 +128,7 @@ Context menu comparison extension for Nemo file manager. %prep %setup -q +%patch0 -p1 %if 0%{?fedora} %build @@ -321,6 +323,9 @@ fi %{_datadir}/applications/nemo-compare-preferences.desktop %changelog +* Mon Nov 28 2016 leigh scott - 3.2.0-2 +- fix error on nemo-compare plugin name + * Mon Nov 07 2016 Leigh Scott - 3.2.0-1 - update to 3.2.0 release