2012-11-06 01:32:28 +01:00
|
|
|
#
|
2013-10-21 19:50:14 +02:00
|
|
|
# spec file for package nemo
|
2012-11-06 01:32:28 +01:00
|
|
|
#
|
2019-07-21 15:15:03 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-11-06 01:32:28 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-19 23:28:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-21 19:50:14 +02:00
|
|
|
#
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%define soname libnemo-extension
|
|
|
|
%define sover 1
|
|
|
|
%define typelib typelib-1_0-Nemo-3_0
|
2014-11-06 14:42:22 +01:00
|
|
|
Name: nemo
|
2019-07-28 06:53:51 +02:00
|
|
|
Version: 4.2.2
|
2012-11-06 01:32:28 +01:00
|
|
|
Release: 0
|
2013-10-21 19:50:14 +02:00
|
|
|
Summary: File browser for Cinnamon
|
2018-04-20 16:44:19 +02:00
|
|
|
License: GPL-2.0-or-later
|
2015-10-18 19:17:35 +02:00
|
|
|
Group: System/GUI/Other
|
2018-04-20 16:44:19 +02:00
|
|
|
URL: https://github.com/linuxmint/nemo
|
2015-08-10 17:31:18 +02:00
|
|
|
Source: https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
2018-07-06 15:33:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE nemo-gtk-3.20.patch -- Restore GTK+ 3.20 support.
|
|
|
|
Patch0: nemo-gtk-3.20.patch
|
2019-07-21 15:15:03 +02:00
|
|
|
BuildRequires: cmake
|
2015-10-23 14:35:45 +02:00
|
|
|
BuildRequires: fdupes
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: gtk-doc
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2016-11-09 13:16:13 +01:00
|
|
|
BuildRequires: intltool
|
2018-04-20 16:44:19 +02:00
|
|
|
BuildRequires: meson
|
2016-06-23 23:52:17 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-05-12 13:08:06 +02:00
|
|
|
BuildRequires: python3-gobject
|
2013-10-21 19:50:14 +02:00
|
|
|
BuildRequires: shared-mime-info
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: tracker-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(cinnamon-desktop)
|
2012-11-07 22:09:36 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: pkgconfig(exempi-2.0)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(gail-3.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2016-11-09 13:16:13 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0)
|
|
|
|
BuildRequires: pkgconfig(libexif)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(libnotify)
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2014-11-06 14:42:22 +01:00
|
|
|
BuildRequires: pkgconfig(polkit-agent-1)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2017-10-30 20:06:19 +01:00
|
|
|
BuildRequires: pkgconfig(xapp) >= 1.0.4
|
|
|
|
Requires: %{name}-lang
|
2015-10-22 02:01:09 +02:00
|
|
|
Requires: desktop-file-utils >= 0.7
|
|
|
|
Requires: glib2-tools
|
|
|
|
Requires: gvfs >= 1.3.2
|
|
|
|
Requires: libcinnamon-desktop-data
|
2016-05-12 13:08:06 +02:00
|
|
|
Requires: python3
|
2015-10-22 02:01:09 +02:00
|
|
|
Requires: shared-mime-info >= 0.50
|
|
|
|
Recommends: gdk-pixbuf-loader-rsvg
|
|
|
|
Recommends: gvfs-backends
|
|
|
|
Suggests: xdg-user-dirs
|
2016-04-25 10:38:54 +02:00
|
|
|
Suggests: xplayer
|
|
|
|
Suggests: xreader
|
|
|
|
Suggests: xviewer
|
2015-10-18 19:17:35 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%description
|
2013-10-21 19:50:14 +02:00
|
|
|
Nemo is the file manager for the Cinnamon desktop environment.
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%package devel
|
2015-10-18 19:17:35 +02:00
|
|
|
Summary: Development files for Nemo
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-10-21 19:50:14 +02:00
|
|
|
Requires: %{name} = %{version}
|
2015-10-18 19:17:35 +02:00
|
|
|
Requires: %{soname}%{sover} = %{version}
|
|
|
|
Requires: %{typelib} = %{version}
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%description devel
|
2013-10-21 19:50:14 +02:00
|
|
|
Nemo is the file manager for the Cinnamon desktop environment.
|
|
|
|
|
|
|
|
This package provides the development files for Nemo.
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%package -n %{soname}%{sover}
|
2012-11-06 01:32:28 +01:00
|
|
|
Summary: Nemo extension shared libraries
|
2013-10-21 19:50:14 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%description -n %{soname}%{sover}
|
2013-10-21 19:50:14 +02:00
|
|
|
Nemo is the file manager for the Cinnamon desktop environment.
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
This package provides Nemo's shared libraries.
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%package -n %{typelib}
|
|
|
|
Summary: File Browser for Cinnamon -- Introspection Bindings
|
2013-10-21 19:50:14 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%description -n %{typelib}
|
2013-10-21 19:50:14 +02:00
|
|
|
Nemo is the file manager for the Cinnamon desktop environment.
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
This package provides the GObject Introspection bindings for Nemo.
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-07-06 15:33:44 +02:00
|
|
|
%patch0 -p1
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%build
|
2018-05-10 15:12:10 +02:00
|
|
|
%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
|
2018-04-20 16:44:19 +02:00
|
|
|
%meson \
|
2015-10-18 19:17:35 +02:00
|
|
|
--libexecdir=%{_libexecdir}/%{name} \
|
2018-04-20 16:44:19 +02:00
|
|
|
-Dgtk_doc=true
|
|
|
|
%meson_build
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%install
|
2018-04-20 16:44:19 +02:00
|
|
|
%meson_install
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2014-04-20 14:19:54 +02:00
|
|
|
%suse_update_desktop_file %{name} System FileManager
|
2013-10-22 08:06:47 +02:00
|
|
|
%suse_update_desktop_file %{name}-autostart
|
|
|
|
%suse_update_desktop_file %{name}-autorun-software
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
# We need to own this directory.
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/nemo/extensions-3.0/
|
2013-10-28 08:21:37 +01:00
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}/
|
2013-10-22 08:06:47 +02:00
|
|
|
|
2018-04-20 16:44:19 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2012-11-06 01:32:28 +01:00
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%desktop_database_post
|
|
|
|
%mime_database_post
|
2015-10-18 19:17:35 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%mime_database_postun
|
2015-10-18 19:17:35 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2017-10-30 20:06:19 +01:00
|
|
|
%endif
|
2015-10-18 19:17:35 +02:00
|
|
|
|
|
|
|
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%postun -n %{soname}%{sover} -p /sbin/ldconfig
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%files
|
2018-04-20 16:44:19 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS README.md debian/changelog
|
2015-10-18 19:17:35 +02:00
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_libexecdir}/%{name}/
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/applications/%{name}*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2015-10-18 19:37:15 +02:00
|
|
|
%{_mandir}/man?/%{name}*%{?ext_man}
|
2017-10-30 20:06:19 +01:00
|
|
|
%{_datadir}/dbus-1/services/nemo.service
|
|
|
|
%{_datadir}/dbus-1/services/nemo.FileManager1.service
|
2013-10-22 08:06:47 +02:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
|
2015-10-18 19:17:35 +02:00
|
|
|
%{_datadir}/gtksourceview-?.0/language-specs/%{name}_action.lang
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_datadir}/polkit-1/actions/org.nemo.root.policy
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%files -n %{typelib}
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_libdir}/girepository-1.0/Nemo-3.0.typelib
|
|
|
|
|
2015-10-18 19:17:35 +02:00
|
|
|
%files -n %{soname}%{sover}
|
2015-10-18 20:06:55 +02:00
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%dir %{_libdir}/%{name}/extensions-3.0/
|
2015-10-18 19:17:35 +02:00
|
|
|
%{_libdir}/%{soname}.so.%{sover}*
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%files devel
|
2015-10-18 19:17:35 +02:00
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/%{soname}.so
|
|
|
|
%{_libdir}/pkgconfig/%{soname}.pc
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_datadir}/gir-1.0/Nemo-3.0.gir
|
2016-11-09 13:16:13 +01:00
|
|
|
%{_datadir}/gtk-doc/html/libnemo-extension/
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%changelog
|