2007-01-09 18:41:02 +01:00
#
2009-12-15 15:36:18 +01:00
# spec file for package nautilus (Version 2.28.4)
2007-01-09 18:41:02 +01:00
#
2009-01-09 01:37:13 +01:00
# Copyright (c) 2009 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/
#
# norootforbuild
2008-02-21 01:58:25 +01:00
2007-01-09 18:41:02 +01:00
Name : nautilus
2008-09-13 05:57:31 +02:00
BuildRequires : fdupes
BuildRequires : gnome-common
BuildRequires : gnome-desktop-devel
BuildRequires : gnome-icon-theme
BuildRequires : gnome-patch-translation
BuildRequires : gtk-doc
BuildRequires : intltool
BuildRequires : libbeagle-devel
BuildRequires : libexempi-devel
BuildRequires : libexif-devel
2009-05-20 22:47:25 +02:00
BuildRequires : libunique-devel
2009-02-07 17:17:16 +01:00
BuildRequires : libxml2-devel
2009-03-11 18:41:45 +01:00
BuildRequires : translation-update-upstream
2008-09-13 05:57:31 +02:00
BuildRequires : update-desktop-files
2009-12-08 12:01:36 +01:00
License : GPLv2+
2007-01-09 18:41:02 +01:00
Group : Productivity/File utilities
2009-12-15 15:36:18 +01:00
Version : 2.28.4
2009-12-08 12:01:36 +01:00
Release : 1
2007-01-09 18:41:02 +01:00
Summary : The GNOME 2.x Desktop File Manager
2007-09-20 01:38:30 +02:00
Source : ftp://ftp.gnome.org/pub/gnome/sources/nautilus/2.20/%{name} -%{version} .tar.bz2
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
2007-08-09 20:21:06 +02:00
Requires : %{name} -lang = %{version}
2008-02-08 21:07:40 +01:00
Requires : gvfs
2008-06-27 20:36:21 +02:00
# So that symlinks to icons work:
Requires : gnome-desktop gnome-icon-theme
2007-01-09 18:41:02 +01:00
Provides : nautilus2
Obsoletes : nautilus2
%gconf_schemas_prereq
%description
This package contains Nautilus, the advanced file manager for the GNOME
2.x Desktop platform.
%package devel
2009-12-08 12:01:36 +01:00
License : GPLv2+
2007-01-09 18:41:02 +01:00
Summary : Development Package for Nautilus
Group : Development/Libraries/GNOME
2008-03-26 16:25:08 +01:00
Requires : %{name} = %{version} glib2-devel gtk2-devel
2007-01-09 18:41:02 +01:00
Provides : nautilus2-devel
Obsoletes : nautilus2-devel
%description devel
This package contains all files needed to develop programs that use
features of the Nautilus file manager.
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
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
2008-03-26 16:25:08 +01:00
%__make %{?jobs:-j%jobs}
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
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/
### ln -s ../icons/gnome/24x24/places/gnome-fs-home.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
# ln -s ../icons/gnome/24x24/places/gnome-home.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/
2008-04-25 16:33:38 +02:00
%suse_update_desktop_file -N " N a u t i l u s " -G " F i l e B r o w s e r " nautilus System FileManager
2008-03-13 19:04:08 +01:00
%suse_update_desktop_file nautilus-autorun-software
2009-09-04 01:22:24 +02:00
%suse_update_desktop_file -r nautilus-browser System FileManager
2008-04-25 16:33:38 +02:00
%suse_update_desktop_file nautilus-computer System FileManager
%suse_update_desktop_file nautilus-file-management-properties System FileManager X-SuSE-ControlCenter-LookAndFeel
2008-03-13 19:04:08 +01:00
%suse_update_desktop_file nautilus-folder-handler
2008-04-25 16:33:38 +02:00
%suse_update_desktop_file -G " F i l e B r o w s e r " nautilus-home System FileManager
%suse_update_desktop_file -G " N a u t i l u s S e a r c h T o o l " nautilus-search System FileManager
%suse_update_desktop_file -G " F i l e B r o w s e r " network-scheme System Network
2007-01-09 18:41:02 +01:00
mkdir -p $RPM_BUILD_ROOT /%{_libdir} /nautilus/extensions-1.0
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
cat %{name} .schemas_list >%{name} .lst
%fdupes $RPM_BUILD_ROOT
2007-01-09 18:41:02 +01:00
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
2008-01-30 22:16:51 +01:00
/sbin/ldconfig
2007-01-09 18:41:02 +01:00
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
2008-01-30 22:16:51 +01:00
/sbin/ldconfig
2007-01-09 18:41:02 +01:00
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%files -f %{name}.lst
%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/*/*/*.*
2007-01-09 18:41:02 +01:00
%{_libdir} /*.so.*
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
2007-01-09 18:41:02 +01:00
%dir %{_libdir} /nautilus
%dir %{_libdir} /nautilus/extensions-1.0
2008-01-30 22:16:51 +01:00
%dir %{_libdir} /nautilus/extensions-2.0
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/*
2008-01-21 01:06:35 +01:00
2007-03-01 20:48:16 +01:00
%changelog