SHA256
1
0
forked from pool/nemo
nemo/nemo.spec

196 lines
5.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nemo
#
Accepting request 1039990 from home:dirkmueller:Factory - update to 5.6.0: * Actions: Escape device paths also (#3057) * Use Github actions instead of CircleCI. * Actions: Escape path spaces when they are unquoted * eel: Merge shell character escape functions * icon view: don't highlight selected icons * nemo-desktop: Rename new-launcher -> 90_new-launcher * nemo-desktop: Add Desktop Settings action * l10n: Update POT and files * search: Perform deep counts on a search directories full file list, instead of the directory itself, when opening properties. * nemo-search-directory-file.c: Add a missing NemoDirectory method. * location bar: Add an option to always switch back to the pathbar (breadcrumbs) widget after entering a location or otherwise using the location entry. * Prevent interactive search from interfering with keystrokes intended for the window handler (for focusing the location entry). * debian/control(nemo-dbg): priority extra->optional * Remove custom btime (creation time) code. * Add support for file creation time via GFileInfo. * Add ability to display date columns in a monospaced font. * nemo-file-operations.c: Fix null pointer error. * nemo-file-operations.c: Handle a couple more potential problems with g_file_get_basename(). * list view: Do show dates in monospace font by default * Change location entry/pathbar behavior. * Fix build on LMDE. * Toolbar: Use actions to control the location/path bar switching. * toolbar: Hide the location entry toggle when not needed, and limit its shortcut to making sure the entry is focused. * pathbar/entry: Fix a couple of issues when changing pathbar/entry preference. * fix spelling error spotted by lintian * App chooser: Quote custom executable file paths (#3041) * Actions: Escape quoted content in paths (#3026) * libnemo-private: add missing gio-unix-2.0 dependency (#3028) OBS-URL: https://build.opensuse.org/request/show/1039990 OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=179
2022-12-05 21:27:53 +01:00
# Copyright (c) 2022 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/
#
%define soname libnemo-extension
%define sover 1
%define typelib typelib-1_0-Nemo-3_0
Name: nemo
Accepting request 1039990 from home:dirkmueller:Factory - update to 5.6.0: * Actions: Escape device paths also (#3057) * Use Github actions instead of CircleCI. * Actions: Escape path spaces when they are unquoted * eel: Merge shell character escape functions * icon view: don't highlight selected icons * nemo-desktop: Rename new-launcher -> 90_new-launcher * nemo-desktop: Add Desktop Settings action * l10n: Update POT and files * search: Perform deep counts on a search directories full file list, instead of the directory itself, when opening properties. * nemo-search-directory-file.c: Add a missing NemoDirectory method. * location bar: Add an option to always switch back to the pathbar (breadcrumbs) widget after entering a location or otherwise using the location entry. * Prevent interactive search from interfering with keystrokes intended for the window handler (for focusing the location entry). * debian/control(nemo-dbg): priority extra->optional * Remove custom btime (creation time) code. * Add support for file creation time via GFileInfo. * Add ability to display date columns in a monospaced font. * nemo-file-operations.c: Fix null pointer error. * nemo-file-operations.c: Handle a couple more potential problems with g_file_get_basename(). * list view: Do show dates in monospace font by default * Change location entry/pathbar behavior. * Fix build on LMDE. * Toolbar: Use actions to control the location/path bar switching. * toolbar: Hide the location entry toggle when not needed, and limit its shortcut to making sure the entry is focused. * pathbar/entry: Fix a couple of issues when changing pathbar/entry preference. * fix spelling error spotted by lintian * App chooser: Quote custom executable file paths (#3041) * Actions: Escape quoted content in paths (#3026) * libnemo-private: add missing gio-unix-2.0 dependency (#3028) OBS-URL: https://build.opensuse.org/request/show/1039990 OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=179
2022-12-05 21:27:53 +01:00
Version: 5.6.0
Release: 0
Summary: File browser for Cinnamon
License: GPL-2.0-or-later
Group: System/GUI/Other
URL: https://github.com/linuxmint/nemo
Source: https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE nemo-gtk-3.20.patch -- Restore GTK+ 3.20 support.
Patch0: nemo-gtk-3.20.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gtk-doc
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: python3-gobject
BuildRequires: shared-mime-info
BuildRequires: tracker-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(cinnamon-desktop)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(exempi-2.0)
BuildRequires: pkgconfig(gail-3.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0
BuildRequires: pkgconfig(gtksourceview-2.0)
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(libexif)
Accepting request 896908 from home:andythe_great:branches:X11:Cinnamon:Factory - Update to version 5.0.0. * Issue 1881. Adds keyboard shortcut for Same Location as other pane. Adds shortcut to shorcut UI. * Issue 1263. Enables F6 to immediately toggle between panes. * nemo-shortcuts.ui: Add a new section for dual-pane and put related shortcuts there. * Added option to toggle sorting favorites before other files * Fixed whitespace * nemo-main-application.c: Remove 30s inactivity timeout. * nemo-menu-provider.c: Don't request menu items for selections if there is no selection - not all extensions guard against this. * Fix segfault when g_file_info_get_symlink_target() returns "". * feat: added the `--existing-window` flag to open URLs in an existing window, cf https://github.com/linuxmint/nemo/issues/2674 * feat: use `gtk_window_present_with_time()` instead of `gtk_window_present()`, otherwise the window manager will ignore this window's focus request and try to just mark it urgent instead (flashing in the window list for example) * Fixes 2696. Detects if Trash is supported. * nemo-places-sidebar.c: Fix bookmark separator positioning to account for conditionally hidden immovable elements. * nemo-desktop-application.c: Remove root check. * nemo-view.c: Hide trash menu item when trash is not supported. * Add option to treat root as normal. * actions: Implement passing the active window xid to exec strings. * nemo-window-menus.c: hide gvfs locations based on their actual availability, not strictly on the process uid. * nemo actions: Implement reverse dependencies. * nemo-view.c: Only update the context menu when it's about to be shown. * docs: added docs for the `--existing-window` flag * Allow images to be viewed in supported image viewers in the same order as they are shown in the current nemo view (directory or search). * Remove g_list_insert_before_link call for compatibility with older glib versions. * Revert "nemo-view.c: Only update the context menu when it's about to be" * nemo-view.c: Delay actions and extension menu providers from updating until the menu is requested. * bookmark-list: Clean up and close memory leak General cleanup. Use NemoBookmarkList instead of casting itself every line. * Prevent the menu bar from disappearing when some of its elements is currently selected. * Remove the menu bar inmediately after selecting an item (if configured to auto-hide). * nemo-directory.c: Fix memory leak. * nemo-directory.c: Fix previous commit which altered potential behavior more than necessary. * Issue 541. Removes spaces from Samba drive paths in location bar. * nemo-list-view.c: Implement 'double-click blank area to go up one (#2646) * Fixes #2244. Adds logic to strip leading whitespace and checks for absolute path when copy/pasting value. * Fixes Issue #2415. Removes nemo self checks (#2439) * nemo-places-sidebar.c: Sort all devices in the sidebar. * nemo-location-entry.c: Don't modify a string we don't own. * Implement Content search. * Add a search helper for Open XML (MS Office). OBS-URL: https://build.opensuse.org/request/show/896908 OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=172
2021-06-02 13:49:16 +02:00
BuildRequires: pkgconfig(libgsf-1)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libselinux)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(polkit-agent-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xapp) >= 1.9.0
Requires: desktop-file-utils >= 0.7
Requires: glib2-tools
Requires: gvfs >= 1.3.2
Requires: python3
Requires: shared-mime-info >= 0.50
Recommends: %{name}-lang
Recommends: gdk-pixbuf-loader-rsvg
Recommends: gvfs-backends
Recommends: python3dist(xlrd)
Suggests: xdg-user-dirs
Suggests: xplayer
Suggests: xreader
Suggests: xviewer
%glib2_gsettings_schema_requires
%description
Nemo is the file manager for the Cinnamon desktop environment.
%package devel
Summary: Development files for Nemo
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: %{soname}%{sover} = %{version}
Requires: %{typelib} = %{version}
%description devel
Nemo is the file manager for the Cinnamon desktop environment.
This package provides the development files for Nemo.
%package -n %{soname}%{sover}
Summary: Nemo extension shared libraries
Group: System/Libraries
%description -n %{soname}%{sover}
Nemo is the file manager for the Cinnamon desktop environment.
This package provides Nemo's shared libraries.
%package -n %{typelib}
Summary: File Browser for Cinnamon -- Introspection Bindings
Group: System/Libraries
%description -n %{typelib}
Nemo is the file manager for the Cinnamon desktop environment.
This package provides the GObject Introspection bindings for Nemo.
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="%{optflags} -fcommon"
export CXXFLAGS="%{optflags} -fcommon"
%if 0%{?suse_version} < 1500
mkdir -p bin
cat > bin/g-ir-scanner << EOF
#!/bin/sh
# This breaks the build. There are also useless entries in shared-library= in
# Nemo-3.0.gir but that doesn't seem to have any actual implications here.
export SUSE_ASNEEDED=0
exec %{_bindir}/g-ir-scanner "\$%{nil}@"
EOF
chmod a+x bin/g-ir-scanner
export PATH="$PWD/bin:$PATH"
%endif
%meson \
--libexecdir=%{_libexecdir}/%{name} \
-Dgtk_doc=true
%meson_build
%install
%meson_install
%suse_update_desktop_file %{name} System FileManager
%suse_update_desktop_file %{name}-autostart
%suse_update_desktop_file %{name}-autorun-software
# We need to own this directory.
mkdir -p %{buildroot}%{_libdir}/nemo/extensions-3.0/
%fdupes %{buildroot}%{_datadir}/
%if 0%{?suse_version} < 1500
%post
%icon_theme_cache_post
%desktop_database_post
%mime_database_post
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%mime_database_postun
%glib2_gsettings_schema_postun
%endif
%post -n %{soname}%{sover} -p /sbin/ldconfig
%postun -n %{soname}%{sover} -p /sbin/ldconfig
%files
%license COPYING*
%doc AUTHORS README.md debian/changelog
%{_bindir}/%{name}*
%{_libexecdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man?/%{name}*%{?ext_man}
%{_datadir}/dbus-1/services/nemo.service
%{_datadir}/dbus-1/services/nemo.FileManager1.service
%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
Accepting request 932350 from home:andythe_great:branches:X11:Cinnamon:Factory - Update to version 5.2.0. * nemo-desktop-overlay.glade: Fix label marked untranslatable. * makepot: Add shortcuts ui file. * nemo-view.c: Follow the same invocation rules for bulk renaming as we do for normal renaming. * Install language definitions to gtksourceview-4. * nemo-file.h: Use the correct icon names for read-only and unreadable emblems. * mount-archive.nemo_action: Use gnome-disk-image-mounter instead of gvfsd-archive. * debian/control: Add gnome-disk-utility to recommends (for image mount action). * Add a manpage for nemo-desktop and clean up nemo's a bit. * nemo-toolbar.c: Use flat button style * extension gir: Export 'libnemo-extension' to the gir * actions: Refactor to remove unnecessary methods. * actions: Add new conversion token for a file's parent uri (with selection_count > 0) and location uri (selection_count == 0). * actions: Add UriScheme specifier in the action definition. * nemo-window-manager-views.c: When removing a folder, don't close the entire window if that folder is open on another tab. * nemo-window.c: Don't ignore tab events when renaming. * nemo-directory-async.c: Don't write the entire buffer into the pixbuf loader all at once. * copy/paste: Make the clipboard contents persist after the process ends. * nemo-search-engine-advanced.c: Ensure a path before using it as a key in the skip table - g_str_hash cannot be NULL. * search: Update tooltip text (#2810) * file operations: Add duplicate button (#2841) * file-operations: Rename button label in previous commit * l10n: Generate files * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/932350 OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=177
2021-11-26 02:33:52 +01:00
%dir %{_datadir}/gtksourceview-*
%dir %{_datadir}/gtksourceview-*/language-specs
%{_datadir}/gtksourceview-*/language-specs/%{name}_*.lang
%{_datadir}/polkit-1/actions/org.nemo.root.policy
%files -n %{typelib}
%{_libdir}/girepository-1.0/Nemo-3.0.typelib
%files -n %{soname}%{sover}
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/extensions-3.0/
%{_libdir}/%{soname}.so.%{sover}*
%files devel
%{_includedir}/%{name}/
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/%{soname}.pc
%{_datadir}/gir-1.0/Nemo-3.0.gir
%{_datadir}/gtk-doc/html/libnemo-extension/
%changelog