2007-01-09 18:41:02 +01:00
#
2010-09-28 10:52:12 +02:00
# spec file for package nautilus (Version 2.32.0)
2007-01-09 18:41:02 +01:00
#
2010-02-11 19:43:42 +01:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-09 18:41:02 +01:00
#
2008-08-14 02:00:32 +02: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.
2007-01-09 18:41:02 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2010-05-25 13:33:00 +02:00
2010-05-25 13:33:02 +02:00
# Starting with openSUSE 11.3 we use tracker instead of beagle
%define use_tracker 0%{suse_version} >= 1130
2008-02-21 01:58:25 +01:00
2007-01-09 18:41:02 +01:00
Name : nautilus
2009-12-08 12:01:36 +01:00
License : GPLv2+
2007-01-09 18:41:02 +01:00
Group : Productivity/File utilities
2010-09-28 10:52:12 +02:00
Version : 2.32.0
2010-09-24 00:16:18 +02:00
Release : 1
2010-09-13 12:04:54 +02:00
# FIXME: replace libexempi-devel BuildRequires with pkgconfig(exempi-2.0) once fixed exempi is in
2010-08-09 17:55:17 +02:00
Summary : File Manager for the GNOME Desktop
2007-09-20 01:38:30 +02:00
Source : ftp://ftp.gnome.org/pub/gnome/sources/nautilus/2.20/%{name} -%{version} .tar.bz2
2010-04-01 03:24:02 +02:00
# fate#308344 bgo#602147
Source1 : mount-archive.desktop
2010-02-11 19:43:42 +01:00
Source99 : baselibs.conf
2007-09-20 01:38:30 +02:00
Url : http://www.gnome.org
2007-01-09 18:41:02 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2008-04-28 18:11:59 +02:00
# PATCH-FIX-UPSTREAM nautilus-bgo350950-search-desktop.diff bgo350950 federico@novell.com -- add a desktop file for Nautilus search interface
Patch4 : nautilus-bgo350950-search-desktop.diff
2009-05-20 22:47:25 +02:00
# PATCH-FIX-UPSTREAM nautilus-bnc117333-bgo350962-folder-icon-for-menus-and-windows.diff bnc117333 bgo350962 bgo581584 federico@novell.com - Use a folder icon instead of a file cabinet window
2008-04-28 18:11:59 +02:00
Patch5 : nautilus-bnc117333-bgo350962-folder-icon-for-menus-and-windows.diff
2009-02-07 17:17:16 +01:00
# PATCH-NEEDS-REBASE nautilus-146947-rename-bad-parameters-message.diff bgo350976 bnc146947 federico@novell.com -- 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
2007-01-09 18:41:02 +01:00
Patch9 : nautilus-146947-rename-bad-parameters-message.diff
2009-05-20 22:47:25 +02:00
# PATCH-NEEDS-REBASE nautilus-drives-and-volumes-on-desktop.diff bnc335411 federico@novell.com
2007-01-09 18:41:02 +01:00
Patch15 : nautilus-drives-and-volumes-on-desktop.diff
2008-02-28 18:20:34 +01:00
# PATCH-FIX-OPENSUSE nautilus-bnc363122-lockdown-context-menus.diff bnc363122 federico@novell.com
2008-02-21 01:58:25 +01:00
Patch20 : nautilus-bnc363122-lockdown-context-menus.diff
2009-02-07 17:17:16 +01:00
# PATCH-NEEDS-REBASE nautilus-sysadmin-desktop-items.diff fate305252 federico@novell.com -- Support sysadmin-defined desktop items (was PATCH-FEATURE-OPENSUSE)
2008-10-06 18:41:25 +02:00
Patch21 : nautilus-sysadmin-desktop-items.diff
2010-05-28 17:10:25 +02:00
# PATCH-FIX-UPSTREAM nautilus-boot-order.patch bgo#619841 sshaw@decriptor.com -- From SLED w/o sreadahead. Delays applets
Patch22 : nautilus-boot-order.patch
2010-09-13 12:04:54 +02:00
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
#%else
#BuildRequires: libbeagle-devel
#%endif
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)
2010-09-24 00:16:18 +02:00
BuildRequires : pkgconfig(unique-1.0)
2007-08-09 20:21:06 +02:00
Requires : %{name} -lang = %{version}
2008-06-27 20:36:21 +02:00
# So that symlinks to icons work:
2010-09-13 12:04:54 +02:00
Requires : gnome-icon-theme
2010-04-16 01:06:56 +02:00
Recommends: gvfs
2010-02-11 19:43:42 +01:00
Provides : nautilus2 = %{version}
Obsoletes : nautilus2 < %{version}
2007-01-09 18:41:02 +01:00
%gconf_schemas_prereq
%description
2010-08-09 17:55:17 +02:00
Nautilus is the file manager for the GNOME desktop.
2007-01-09 18:41:02 +01:00
2010-08-09 17:55:17 +02:00
%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.
2007-01-09 18:41:02 +01:00
2010-08-09 17:55:17 +02:00
This package contains the library used by nautilus extensions.
2007-01-09 18:41:02 +01:00
%package devel
2009-12-08 12:01:36 +01:00
License : GPLv2+
2010-08-09 17:55:17 +02:00
Summary : File Manager for the GNOME Desktop -- Development Files
2007-01-09 18:41:02 +01:00
Group : Development/Libraries/GNOME
2008-03-26 16:25:08 +01:00
Requires : %{name} = %{version} glib2-devel gtk2-devel
2010-02-11 19:43:42 +01:00
Provides : nautilus2-devel = %{version}
Obsoletes : nautilus2-devel < %{version}
2007-01-09 18:41:02 +01:00
2010-08-09 17:55:17 +02:00
%description devel
Nautilus is the file manager for the GNOME desktop.
2007-01-09 18:41:02 +01:00
2010-08-09 17:55:17 +02:00
This package contains development files for nautilus.
2007-01-09 18:41:02 +01:00
2007-08-09 20:21:06 +02:00
%lang_package
2007-01-09 18:41:02 +01:00
%prep
%setup -q
2009-03-11 18:41:45 +01:00
translation-update-upstream
2007-01-09 18:41:02 +01:00
gnome-patch-translation-prepare
2008-04-28 18:11:59 +02:00
%patch4 -p1
%patch5 -p1
2009-02-07 17:17:16 +01:00
#%patch9 -p0
2008-01-30 22:16:51 +01:00
### %patch15 -p1
2008-02-21 01:58:25 +01:00
%patch20 -p1
2009-02-07 17:17:16 +01:00
#%patch21 -p1
2010-05-28 17:10:25 +02:00
%patch22 -p1
2007-01-09 18:41:02 +01:00
gnome-patch-translation-update
%build
2009-05-20 22:47:25 +02:00
NOCONFIGURE=1 gnome-autogen.sh
2007-01-09 18:41:02 +01:00
%configure \
2009-02-23 12:59:10 +01:00
--disable-update-mimedb \
--enable-gtk-doc
2010-08-09 17:55:17 +02:00
%__make %{?jobs:-j%jobs} V=1
2007-01-09 18:41:02 +01:00
%install
2008-03-26 16:25:08 +01:00
%makeinstall
2009-12-08 12:01:36 +01:00
%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot} %{_datadir} /locale/ha/LC_MESSAGES/*
%{__rm} %{buildroot} %{_datadir} /locale/ig/LC_MESSAGES/*
%endif
2009-12-30 00:28:38 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2008-01-30 22:16:51 +01:00
rm $RPM_BUILD_ROOT /%{_libdir} /*.*a
2008-06-27 20:36:21 +02:00
### 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/
2007-09-03 23:20:08 +02:00
ln -s ../icons/gnome/24x24/actions/system-search.png $RPM_BUILD_ROOT %{_datadir} /pixmaps/
2008-01-30 22:16:51 +01:00
ln -s ../icons/gnome/24x24/places/user-home.png $RPM_BUILD_ROOT /%{_datadir} /pixmaps/
2010-08-09 17:55:17 +02:00
%suse_update_desktop_file nautilus
2008-03-13 19:04:08 +01:00
%suse_update_desktop_file nautilus-autorun-software
2010-08-09 17:55:17 +02:00
%suse_update_desktop_file nautilus-browser
%suse_update_desktop_file nautilus-computer
2010-09-13 12:04:54 +02:00
%suse_update_desktop_file nautilus-file-management-properties
2008-03-13 19:04:08 +01:00
%suse_update_desktop_file nautilus-folder-handler
2010-08-09 17:55:17 +02:00
%suse_update_desktop_file nautilus-home
%suse_update_desktop_file nautilus-search
%suse_update_desktop_file network-scheme
2010-04-01 03:24:02 +02:00
# 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
2008-01-30 22:16:51 +01:00
mkdir -p $RPM_BUILD_ROOT /%{_libdir} /nautilus/extensions-2.0
2007-01-09 18:41:02 +01:00
%find_lang %{name}
%find_gconf_schemas
2007-08-09 20:21:06 +02:00
%fdupes $RPM_BUILD_ROOT
2007-01-09 18:41:02 +01:00
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
2009-07-16 16:59:05 +02:00
2007-01-09 18:41:02 +01:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
2010-08-09 17:55:17 +02:00
%post -n libnautilus-extension1 -p /sbin/ldconfig
%postun -n libnautilus-extension1 -p /sbin/ldconfig
2010-04-01 03:24:02 +02:00
%files -f %{name}.schemas_list
2007-01-09 18:41:02 +01:00
%defattr (-,root,root)
2009-02-23 12:59:10 +01:00
%doc AUTHORS COPYING COPYING-DOCS ChangeLog MAINTAINERS NEWS README THANKS TODO
2007-01-09 18:41:02 +01:00
%{_bindir} /*
%{_datadir} /applications/*.desktop
%{_datadir} /mime/packages/*.xml
%{_datadir} /nautilus
%{_datadir} /pixmaps/nautilus
%{_datadir} /pixmaps/*.png
2007-03-16 10:12:56 +01:00
%{_datadir} /icons/hicolor/*/*/*.*
2009-09-04 01:22:24 +02:00
%{_libexecdir} /nautilus-convert-metadata
2009-02-07 17:17:16 +01:00
%doc %{_mandir} /man1/nautilus*.1.gz
2010-08-09 17:55:17 +02:00
%files -n libnautilus-extension1
%defattr (-,root,root)
2007-01-09 18:41:02 +01:00
%dir %{_libdir} /nautilus
2008-01-30 22:16:51 +01:00
%dir %{_libdir} /nautilus/extensions-2.0
2010-08-09 17:55:17 +02:00
%{_libdir} /libnautilus-extension.so.*
2010-08-15 14:07:17 +02:00
%{_libdir} /girepository-1.0/Nautilus-2.0.typelib
2007-01-09 18:41:02 +01:00
2007-08-09 20:21:06 +02:00
%files lang -f %{name}.lang
2007-01-09 18:41:02 +01:00
%files devel
%defattr (-,root,root)
%{_libdir} /*.so
%{_includedir} /*
%{_libdir} /pkgconfig/*.pc
2009-02-23 12:59:10 +01:00
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir} /gtk-doc
%dir %{_datadir} /gtk-doc/html
%{_datadir} /gtk-doc/html/*
2010-08-15 14:07:17 +02:00
%{_datadir} /gir-1.0/Nautilus-2.0.gir
2008-01-21 01:06:35 +01:00
2007-03-01 20:48:16 +01:00
%changelog