From 7235ccaab1992011b59f83b071f0faadaf7d60b813a02bfecc06589a109fbb18 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Tue, 22 Oct 2013 06:06:47 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=17 --- nemo.spec | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/nemo.spec b/nemo.spec index c7553be..c17e3e1 100644 --- a/nemo.spec +++ b/nemo.spec @@ -31,6 +31,7 @@ Source: %{name}-%{version}.tar.gz 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 +BuildRequires: fdupes BuildRequires: gnome-common BuildRequires: gtk-doc BuildRequires: hicolor-icon-theme @@ -49,10 +50,12 @@ BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(polkit-1.0) # wise detect Tumbleweed %if 0%{?gnome_common_ver} <= 6 BuildRequires: pkgconfig(tracker-sparql-0.14) -%else +%endif +%if 0%{?gnome_common_ver} >= 7 BuildRequires: pkgconfig(tracker-sparql-0.16) %endif BuildRequires: pkgconfig(x11) @@ -67,6 +70,7 @@ Nemo is the file manager for the Cinnamon desktop environment. Summary: Development files for %{name} Group: Development/Libraries/Other Requires: %{name} = %{version} +Requires: libnemo-extension1 = %{version} Requires: typelib-1_0-Nemo-3_0 = %{version} %description devel @@ -109,6 +113,12 @@ make %{?_smp_mflags} %make_install find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete +%suse_update_desktop_file %{name} +%suse_update_desktop_file %{name}-autostart +%suse_update_desktop_file %{name}-autorun-software + +%fdupes %{buildroot}%{_datadir} + %post %icon_theme_cache_post %desktop_database_post @@ -130,19 +140,23 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete %doc AUTHORS COPYING COPYING-DOCS COPYING.EXTENSIONS COPYING.LIB NEWS README.md THANKS %{_bindir}/nemo %{_bindir}/nemo-autorun-software +%{_bindir}/nemo-connect-server %dir %{_libexecdir}/%{name} %{_libexecdir}/%{name}/nemo-convert-metadata -%{_bindir}/nemo-connect-server -%{_datadir}/applications/*.desktop -%{_datadir}/dbus-1/services/*.service -%{_datadir}/glib-2.0/schemas/*.xml +%{_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 %{_datadir}/icons/hicolor/*/*/* -%{_datadir}/mime/ +%{_datadir}/mime/packages/nemo.xml %{_datadir}/nemo/ %{_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 -%{_mandir}/man1/*.1.gz +%{_mandir}/man1/nemo.1.gz +%{_mandir}/man1/nemo-connect-server.1.gz %files -n typelib-1_0-Nemo-3_0 %defattr(-,root,root)