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
|
|
|
#
|
2013-10-21 19:50:14 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-11-06 01:32:28 +01:00
|
|
|
# Copyright (c) Nelson Marques <nmo.marques@gmail.com>
|
|
|
|
#
|
|
|
|
# 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/
|
2013-10-21 19:50:14 +02:00
|
|
|
#
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2013-10-22 06:47:32 +02:00
|
|
|
# wise detect Tumbleweed
|
2013-10-22 09:25:25 +02:00
|
|
|
%define gnome_common_ver %(gnome-doc-common --version | sed "s/[^0-9]*3\.\([0-9]*\)\.[0-9]*/\1/")
|
2013-10-22 11:27:07 +02:00
|
|
|
#%define tumbleweed_above %(if [ %{gnome_common_ver} -le 6 ] ; then 0; else 1; fi)
|
|
|
|
#%define is_gnome10 %(if [ 0%{gnome_common_ver} -eq 10 ] ; then 1; else 0; fi)
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
Name: nemo
|
|
|
|
Version: 2.0.1
|
2012-11-06 01:32:28 +01:00
|
|
|
Release: 0
|
|
|
|
License: GPL-2.0+ and LGPL-2.0
|
2013-10-21 19:50:14 +02:00
|
|
|
Summary: File browser for Cinnamon
|
2012-11-06 01:32:28 +01:00
|
|
|
Url: http://github.com/linuxmint/nemo
|
|
|
|
Group: System/GUI/Other
|
2013-10-21 19:50:14 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2013-10-21 20:45:20 +02:00
|
|
|
# PATCH-FIX-OPENSUSE fix upstream g_list_copy_deep on 12.2
|
2013-10-22 06:47:32 +02:00
|
|
|
Patch0: nemo-2.0.1-g_list_copy_deep.patch
|
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org fix OBS gcc checks
|
|
|
|
Patch1: nemo-2.0.1-view-no-return.patch
|
2013-10-22 09:11:49 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org GTK_STOCK_* is deprecated
|
|
|
|
Patch2: nemo-2.0.1-GTK_STOCK.patch
|
2013-10-22 08:06:47 +02:00
|
|
|
BuildRequires: fdupes
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: gnome-common
|
2013-10-21 20:36:31 +02:00
|
|
|
BuildRequires: gtk-doc
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2013-10-21 19:50:14 +02:00
|
|
|
BuildRequires: shared-mime-info
|
2013-10-21 20:03:39 +02:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(cinnamon-desktop)
|
2012-11-07 22:09:36 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2013-10-21 20:03:39 +02: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)
|
2013-10-21 19:50:14 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2013-10-22 07:32:40 +02:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0)
|
2013-10-21 20:03:39 +02:00
|
|
|
BuildRequires: pkgconfig(libexif)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(libnotify)
|
2013-10-21 20:03:39 +02:00
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2013-10-22 08:10:10 +02:00
|
|
|
BuildRequires: pkgconfig(polkit-agent-1)
|
2013-10-22 06:47:32 +02:00
|
|
|
# wise detect Tumbleweed
|
2013-10-22 11:31:21 +02:00
|
|
|
%if %{gnome_common_ver} >= 6
|
2013-10-21 20:03:39 +02:00
|
|
|
BuildRequires: pkgconfig(tracker-sparql-0.16)
|
2013-10-22 09:49:16 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(tracker-sparql-0.14)
|
2013-10-21 20:03:39 +02:00
|
|
|
%endif
|
2012-11-06 01:32:28 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2013-10-21 20:16:33 +02:00
|
|
|
Recommends: cinnamon-translations
|
2013-10-21 19:50:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
2013-10-21 19:50:14 +02:00
|
|
|
Summary: Development files for %{name}
|
2012-11-06 01:32:28 +01:00
|
|
|
Group: Development/Libraries/Other
|
2013-10-21 19:50:14 +02:00
|
|
|
Requires: %{name} = %{version}
|
2013-10-22 08:06:47 +02:00
|
|
|
Requires: libnemo-extension1 = %{version}
|
2013-10-21 20:45:20 +02:00
|
|
|
Requires: typelib-1_0-Nemo-3_0 = %{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
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
%package -n libnemo-extension1
|
2012-11-06 01:32:28 +01:00
|
|
|
Summary: Nemo extension shared libraries
|
2013-10-21 19:50:14 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libnemo-extension1
|
|
|
|
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.
|
|
|
|
|
2013-10-21 20:45:20 +02:00
|
|
|
%package -n typelib-1_0-Nemo-3_0
|
2013-10-21 19:50:14 +02:00
|
|
|
Summary: File Browser for Cinnamon - Introspection bindings
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2013-10-21 20:45:20 +02:00
|
|
|
%description -n typelib-1_0-Nemo-3_0
|
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
|
2013-10-22 06:47:32 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2013-10-22 11:31:21 +02:00
|
|
|
%if %{gnome_common_ver} == 10
|
2013-10-22 09:11:49 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2013-10-22 05:57:30 +02:00
|
|
|
%configure --libexecdir=%{_libexecdir}/%{name} \
|
2013-10-21 20:36:31 +02:00
|
|
|
--disable-static \
|
|
|
|
--disable-update-mimedb \
|
|
|
|
--enable-gtk-doc
|
2012-11-06 01:32:28 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2013-10-21 19:50:14 +02:00
|
|
|
%make_install
|
2012-11-06 01:32:28 +01:00
|
|
|
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
|
|
|
|
|
2013-10-22 08:06:47 +02:00
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%suse_update_desktop_file %{name}-autostart
|
|
|
|
%suse_update_desktop_file %{name}-autorun-software
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
2012-11-06 01:32:28 +01:00
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%desktop_database_post
|
|
|
|
%glib2_gsettings_schema_post
|
|
|
|
%mime_database_post
|
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
%post -n libnemo-extension1 -p /sbin/ldconfig
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%mime_database_postun
|
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
%postun -n libnemo-extension1 -p /sbin/ldconfig
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%files
|
2013-10-21 19:50:14 +02:00
|
|
|
%defattr(-,root,root)
|
2013-10-21 20:36:31 +02:00
|
|
|
%doc AUTHORS COPYING COPYING-DOCS COPYING.EXTENSIONS COPYING.LIB NEWS README.md THANKS
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_bindir}/nemo
|
|
|
|
%{_bindir}/nemo-autorun-software
|
2013-10-22 08:06:47 +02:00
|
|
|
%{_bindir}/nemo-connect-server
|
2013-10-22 07:32:40 +02:00
|
|
|
%dir %{_libexecdir}/%{name}
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_libexecdir}/%{name}/nemo-convert-metadata
|
2013-10-22 08:06:47 +02:00
|
|
|
%{_datadir}/applications/nemo.desktop
|
|
|
|
%{_datadir}/applications/nemo-autostart.desktop
|
|
|
|
%{_datadir}/applications/nemo-autorun-software.desktop
|
|
|
|
%{_datadir}/dbus-1/services/org.Nemo.service
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.NemoFileManager1.service
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.nemo.gschema.xml
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
2013-10-22 08:06:47 +02:00
|
|
|
%{_datadir}/mime/packages/nemo.xml
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_datadir}/nemo/
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_datadir}/gtksourceview-2.0/language-specs/nemo_action.lang
|
|
|
|
%{_datadir}/gtksourceview-3.0/language-specs/nemo_action.lang
|
|
|
|
%{_datadir}/polkit-1/actions/org.nemo.root.policy
|
2013-10-22 08:06:47 +02:00
|
|
|
%{_mandir}/man1/nemo.1.gz
|
|
|
|
%{_mandir}/man1/nemo-connect-server.1.gz
|
2012-11-06 01:32:28 +01:00
|
|
|
|
2013-10-21 20:36:31 +02:00
|
|
|
%files -n typelib-1_0-Nemo-3_0
|
2013-10-21 19:50:14 +02:00
|
|
|
%defattr(-,root,root)
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_libdir}/girepository-1.0/Nemo-3.0.typelib
|
|
|
|
|
2013-10-21 19:50:14 +02:00
|
|
|
%files -n libnemo-extension1
|
|
|
|
%defattr(-,root,root)
|
2013-10-22 06:06:15 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/libnemo-extension
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_libdir}/libnemo-extension.so.1
|
|
|
|
%{_libdir}/libnemo-extension.so.1.4.0
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%files devel
|
2013-10-21 19:50:14 +02:00
|
|
|
%defattr(-,root,root)
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_includedir}/nemo/
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_libdir}/libnemo-extension.so
|
2012-11-06 01:32:28 +01:00
|
|
|
%{_libdir}/pkgconfig/libnemo-extension.pc
|
2013-10-21 20:36:31 +02:00
|
|
|
%{_datadir}/gir-1.0/Nemo-3.0.gir
|
2012-11-06 01:32:28 +01:00
|
|
|
|
|
|
|
%changelog
|