File nautilus.spec of Package nautilus

# spec file for package nautilus
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# Starting with openSUSE 11.3 we use tracker instead of beagle
%define use_tracker 0%{suse_version} >= 1130

Name:           nautilus
License:        GPLv2+
Group:          Productivity/File utilities
Release:        6.<RELEASE2>
# FIXME: replace libexempi-devel BuildRequires with pkgconfig(exempi-2.0) once fixed exempi is in
Summary:        File Manager for the GNOME Desktop
# fate#308344 bgo#602147
Source1:        mount-archive.desktop
Source99:       baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# PATCH-FIX-UPSTREAM nautilus-bgo350950-search-desktop.diff bgo350950 -- add a desktop file for Nautilus search interface
Patch4:         nautilus-bgo350950-search-desktop.diff
# PATCH-FIX-UPSTREAM nautilus-bnc117333-bgo350962-folder-icon-for-menus-and-windows.diff bnc117333 bgo350962 bgo581584 - Use a folder icon instead of a file cabinet window
Patch5:         nautilus-bnc117333-bgo350962-folder-icon-for-menus-and-windows.diff
# PATCH-NEEDS-REBASE nautilus-146947-rename-bad-parameters-message.diff bgo350976 bnc146947 -- The upstream bug is still open, so we need to check if it's still needed (you just need a samba share to test). If yes, we should port the patch to gio
Patch9:         nautilus-146947-rename-bad-parameters-message.diff
# PATCH-NEEDS-REBASE nautilus-drives-and-volumes-on-desktop.diff bnc335411
Patch15:        nautilus-drives-and-volumes-on-desktop.diff
# PATCH-FIX-OPENSUSE nautilus-bnc363122-lockdown-context-menus.diff bnc363122
Patch20:        nautilus-bnc363122-lockdown-context-menus.diff
# PATCH-NEEDS-REBASE nautilus-sysadmin-desktop-items.diff fate305252 -- Support sysadmin-defined desktop items (was PATCH-FEATURE-OPENSUSE)
Patch21:        nautilus-sysadmin-desktop-items.diff
# PATCH-FIX-UPSTREAM nautilus-boot-order.patch bgo#619841 -- From SLED w/o sreadahead. Delays applets
Patch22:        nautilus-boot-order.patch
# PATCH-FIX-UPSTREAM nautilus-tracker-0.10.patch bgo#642770 -- Fix tracker search backend: the 0.10 tracker-client library has a different soname
Patch23:        nautilus-tracker-0.10.patch
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  gnome-icon-theme
BuildRequires:  gnome-patch-translation
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libexempi-devel
BuildRequires:  libselinux-devel
# nautilus doesn't need the BuildRequires to build its modules for tracker and
# beagle. But we keep this below for reference -- it's commented out to avoid
# build loops.
#%if %use_tracker
#BuildRequires:  tracker-devel
#BuildRequires:  libbeagle-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gail)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libexif)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(unique-1.0)
# So that symlinks to icons work:
Requires:       gnome-icon-theme
Recommends:     %{name}-lang
Recommends:     gvfs
Provides:       nautilus2 = %{version}
Obsoletes:      nautilus2 < %{version}

Nautilus is the file manager for the GNOME desktop.

%package -n libnautilus-extension1
License:        GPLv2+
Group:          System/Libraries
Summary:        File Manager for the GNOME Desktop -- Extension Library
Summary:        File Manager for the GNOME Desktop -- Extension Library

%description  -n libnautilus-extension1
Nautilus is the file manager for the GNOME desktop.

This package contains the library used by nautilus extensions.

%package devel
License:        GPLv2+
Summary:        File Manager for the GNOME Desktop -- Development Files
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} glib2-devel gtk2-devel
Provides:       nautilus2-devel = %{version}
Obsoletes:      nautilus2-devel < %{version}

%description devel
Nautilus is the file manager for the GNOME desktop.

This package contains development files for nautilus.

%setup -q
%patch4 -p1
%patch5 -p1
#%patch9 -p0
### %patch15 -p1
%patch20 -p1
#%patch21 -p1
%patch22 -p1
%patch23 -p1

	--disable-update-mimedb \
%__make %{?jobs:-j%jobs} V=1

%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot}%{_datadir}/locale/ha/LC_MESSAGES/*
%{__rm} %{buildroot}%{_datadir}/locale/ig/LC_MESSAGES/*
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
### ln -s ../icons/gnome/24x24/devices/gnome-fs-client.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
# FIXME: this is probably wrong, but it enables the build to succeed for now
# ln -s ../icons/gnome/24x24/devices/gnome-computer.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
ln -s ../icons/gnome/24x24/actions/system-search.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
ln -s ../icons/gnome/24x24/places/user-home.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
%suse_update_desktop_file nautilus
%suse_update_desktop_file nautilus-autorun-software
%suse_update_desktop_file nautilus-browser
%suse_update_desktop_file nautilus-computer
%suse_update_desktop_file nautilus-file-management-properties
%suse_update_desktop_file nautilus-folder-handler
%suse_update_desktop_file nautilus-home
%suse_update_desktop_file nautilus-search
%suse_update_desktop_file network-scheme
# Install the archive mime handler
test ! -e %{buildroot}%{_datadir}/applications/mount-archive.desktop
%{__install} -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/mount-archive.desktop
%suse_update_desktop_file mount-archive
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-2.0
%find_lang %{name} %{?no_lang_C}


%pre -f %{name}.schemas_pre


%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun


%post -n libnautilus-extension1 -p /sbin/ldconfig

%postun -n libnautilus-extension1 -p /sbin/ldconfig

%files -f %{name}.schemas_list
%doc %{_mandir}/man1/nautilus*.1.gz

%files -n libnautilus-extension1
%dir %{_libdir}/nautilus
%dir %{_libdir}/nautilus/extensions-2.0

%files lang -f %{name}.lang

%files devel
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

openSUSE Build Service is sponsored by