diff --git a/Don-t-scale-text-size-when-zooming.patch b/Don-t-scale-text-size-when-zooming.patch new file mode 100644 index 0000000000000000000000000000000000000000..9c7650acf2ce4c2f25d749caa5d933eb31a8c73a --- /dev/null +++ b/Don-t-scale-text-size-when-zooming.patch @@ -0,0 +1,74 @@ +From 9665ce9ff5ae5feca6f33fb43af4628f6e37b2a9 Mon Sep 17 00:00:00 2001 +From: leigh123linux +Date: Sun, 4 Jun 2017 12:14:10 +0100 +Subject: [PATCH] Don't scale text size when zooming + +--- + src/nemo-list-view.c | 40 ---------------------------------------- + 1 file changed, 40 deletions(-) + +diff --git a/src/nemo-list-view.c b/src/nemo-list-view.c +index 1bb4b5bca..ca2b228cb 100644 +--- a/src/nemo-list-view.c ++++ b/src/nemo-list-view.c +@@ -144,8 +144,6 @@ static GList *nemo_list_view_get_selection_for_file_transfer (NemoView *view); + static void nemo_list_view_set_zoom_level (NemoListView *view, + NemoZoomLevel new_level, + gboolean always_set_level); +-static void nemo_list_view_scale_font_size (NemoListView *view, +- NemoZoomLevel new_level); + static void nemo_list_view_scroll_to_file (NemoListView *view, + NemoFile *file); + static void nemo_list_view_rename_callback (NemoFile *file, + g_signal_handlers_unblock_by_func (NEMO_LIST_VIEW (view)->details->tree_view, + columns_reordered_callback, + NEMO_LIST_VIEW (view)); +-} +- +-static void +-nemo_list_view_scale_font_size (NemoListView *view, +- NemoZoomLevel new_level) +-{ +- GList *l; +- static gboolean first_time = TRUE; +- static double pango_scale[7]; +- int medium; +- int i; +- +- g_return_if_fail (new_level >= NEMO_ZOOM_LEVEL_SMALLEST && +- new_level <= NEMO_ZOOM_LEVEL_LARGEST); +- +- if (first_time) { +- first_time = FALSE; +- medium = NEMO_ZOOM_LEVEL_SMALLER; +- pango_scale[medium] = PANGO_SCALE_MEDIUM; +- for (i = medium; i > NEMO_ZOOM_LEVEL_SMALLEST; i--) { +- pango_scale[i - 1] = (1 / 1.2) * pango_scale[i]; +- } +- for (i = medium; i < NEMO_ZOOM_LEVEL_LARGEST; i++) { +- pango_scale[i + 1] = 1.2 * pango_scale[i]; +- } +- } +- +- g_object_set (G_OBJECT (view->details->file_name_cell), +- "scale", pango_scale[new_level], +- NULL); +- for (l = view->details->cells; l != NULL; l = l->next) { +- g_object_set (G_OBJECT (l->data), +- "scale", pango_scale[new_level], +- NULL); +- } + } + + static void + +@@ -3231,9 +3194,6 @@ nemo_list_view_set_zoom_level (NemoListView *view, + "surface", column, + NULL); + +- /* Scale text. */ +- nemo_list_view_scale_font_size (view, new_level); +- + /* Make all rows the same size. */ + icon_size = nemo_get_list_icon_size_for_zoom_level (new_level); + gtk_cell_renderer_set_fixed_size (GTK_CELL_RENDERER (view->details->pixbuf_cell), diff --git a/nemo-5.2.3.tar.gz b/nemo-5.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6c40d5d6cbcf380b7d356587287fefef3e4a593f Binary files /dev/null and b/nemo-5.2.3.tar.gz differ diff --git a/nemo.gschema.override b/nemo.gschema.override new file mode 100644 index 0000000000000000000000000000000000000000..1edfbc6abb52b375e501a554b18db731f5858f57 --- /dev/null +++ b/nemo.gschema.override @@ -0,0 +1,10 @@ +[org.nemo.desktop] +computer-icon-visible=true +font='Noto Sans 9' +home-icon-visible=true +trash-icon-visible=true + +[org.nemo.preferences] +context-menus-show-all-actions=true +show-location-entry=true +show-reload-icon-toolbar=true diff --git a/nemo.spec b/nemo.spec new file mode 100644 index 0000000000000000000000000000000000000000..bd019cb672ac54b60b8d6c4f096ed3b711260df1 --- /dev/null +++ b/nemo.spec @@ -0,0 +1,152 @@ +Name: nemo +Summary: File manager for Cinnamon +Version: 5.2.3 +Release: 1 +License: GPLv2+ and LGPLv2+ +URL: https://github.com/linuxmint/%{name} +Source0: https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +Source1: nemo.gschema.override +Patch0: remove_desktop_search.patch +Patch1: Don-t-scale-text-size-when-zooming.patch + +ExcludeArch: %{ix86} + +BuildRequires: meson +BuildRequires: intltool +BuildRequires: python3-gobject-base +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(cinnamon-desktop) >= 5.2.0 +BuildRequires: pkgconfig(sm) +BuildRequires: pkgconfig(libexif) +BuildRequires: pkgconfig(libgsf-1) +BuildRequires: pkgconfig(exempi-2.0) +BuildRequires: pkgconfig(libselinux) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(xapp) >= 2.2.0 +BuildRequires: iptables-libs + +Requires: openEuler-menus +Requires: gvfs%{?_isa} +Requires: gvfs-goa +Requires: xapps%{?_isa} >= 2.2.0 +# required for for gtk-stock fallback +Requires: adwaita-icon-theme +Requires: cinnamon-translations >= 5.0.0 +Recommends: nemo-search-helpers + +# the main binary links against libnemo-extension.so +# don't depend on soname, rather on exact version +Requires: nemo-extensions%{?_isa} = %{version}-%{release} + +%description +Nemo is the file manager and graphical shell for the Cinnamon desktop +that makes it easy to manage your files and the rest of your system. +It allows to browse directories on local and remote filesystems, preview +files and launch applications associated with them. +It is also responsible for handling the icons on the Cinnamon desktop. + +%package extensions +Summary: Nemo extensions library +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description extensions +This package provides the libraries used by nemo extensions. + +%package search-helpers +Summary: Nemo search helpers +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python-exif +Requires: ghostscript +#Requires: odt2txt +Requires: poppler-utils +Requires: python3-xlrd + +%description search-helpers +This package provides the search helpers used by nemo. + +%package devel +Summary: Support for developing nemo extensions +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides libraries and header files needed +for developing nemo extensions. + +%prep +%autosetup -p1 +sed -i '/odt2txt/d' debian/control + +%build +%meson \ + -D deprecated_warnings=false \ + -D gtk_doc=false \ + -D selinux=true +%meson_build + +%install +%meson_install + +install -D -m 0644 %{SOURCE1} %{buildroot}/%{_datadir}/glib-2.0/schemas/nemo-fedora.gschema.override + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + --add-only-show-in X-Cinnamon \ + %{buildroot}%{_datadir}/applications/* + +# create extensions directoy +mkdir -p %{buildroot}%{_libdir}/nemo/extensions-3.0/ + +rm %{buildroot}%{_datadir}/nemo/search-helpers/id3.nemo_search_helper +rm %{buildroot}%{_datadir}/nemo/search-helpers/pdf2txt.nemo_search_helper +rm %{buildroot}%{_datadir}/nemo/search-helpers/libreoffice.nemo_search_helper + +%ldconfig_scriptlets extensions + +%files +%doc AUTHORS NEWS +%license COPYING COPYING-DOCS +%{_bindir}/nemo +%{_bindir}/nemo-autorun-software +%{_bindir}/nemo-connect-server +%{_bindir}/nemo-desktop +%{_bindir}/nemo-open-with +%{_libexecdir}/nemo-* +%{_datadir}/nemo/actions/ +%{_datadir}/nemo/icons/ +%{_datadir}/nemo/script-info.md +%{_datadir}/applications/* +%{_datadir}/mime/packages/nemo.xml +%{_datadir}/icons/hicolor/*/*/*.png +%{_datadir}/icons/hicolor/scalable/*/*.svg +%{_datadir}/dbus-1/services/nemo* +%{_datadir}/glib-2.0/schemas/* +%{_datadir}/polkit-1/actions/org.nemo.root.policy +%{_datadir}/gtksourceview-*/language-specs/nemo_*.lang +%{_mandir}/man1/nemo* + +%files extensions +%license COPYING.EXTENSIONS COPYING.LIB +%{_libdir}/libnemo-extension.so.* +%{_libdir}/nemo/ +%{_libdir}/girepository-1.0/Nemo-3.0.typelib + +%files search-helpers +%{_bindir}/nemo-mso-to-txt +%{_bindir}/nemo-ppt-to-txt +%{_bindir}/nemo-xls-to-txt +%{_datadir}/nemo/search-helpers/ + +%files devel +%{_includedir}/nemo/ +%{_libdir}/pkgconfig/* +%{_libdir}/*.so +%{_datadir}/gir-1.0/*.gir + +%changelog +* Fri May 6 2022 lin zhang - 5.2.3-1 +- Initial Packaging diff --git a/nemo.yaml b/nemo.yaml new file mode 100644 index 0000000000000000000000000000000000000000..db66981c1bf6dd1e6e4f8cf39311825f48b1b470 --- /dev/null +++ b/nemo.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: nemo +tag_prefix: ^ +separator: . diff --git a/remove_desktop_search.patch b/remove_desktop_search.patch new file mode 100644 index 0000000000000000000000000000000000000000..3306779844e5805d49685be707d006f78e249741 --- /dev/null +++ b/remove_desktop_search.patch @@ -0,0 +1,12 @@ +--- a/libnemo-private/nemo-icon-container.c ++++ b/libnemo-private/nemo-icon-container.c +@@ -4256,7 +4256,7 @@ + /* We pass the event to the search_entry. If its text changes, then we + * start the typeahead find capabilities. + * Copied from NemoIconContainer */ +- if (!handled && ++ if (!handled && !nemo_icon_container_get_is_desktop (container) && + event->keyval != GDK_KEY_asciitilde && + event->keyval != GDK_KEY_KP_Divide && + event->keyval != GDK_KEY_slash /* don't steal slash key events, used for "go to" */ && +