File gnome-vfs2.spec of Package gnome-vfs2
#
# spec file for package gnome-vfs2
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gnome-vfs2
%define _name gnome-vfs
BuildRequires: cdparanoia
BuildRequires: dbus-1-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fam-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gnome-common
BuildRequires: gnome-patch-translation
BuildRequires: gtk-doc
%if 0%{suse_version} < 1130
BuildRequires: hal-devel
%endif
BuildRequires: intltool
BuildRequires: krb5-devel
BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libavahi-glib-devel
BuildRequires: libbz2-devel
BuildRequires: libgcrypt-devel
BuildRequires: libselinux-devel
BuildRequires: libsmbclient-devel
BuildRequires: libxml2-devel
BuildRequires: openssl-devel
BuildRequires: samba
Version: 2.24.4
Release: 5
Summary: The GNOME 2.x Desktop Virtual File System Libraries
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/GNOME
Url: http://www.gnome.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ftp://ftp.gnome.org/pub/gnome/sources/%{_name}/2.20/%{_name}-%{version}.tar.bz2
Source99: baselibs.conf
Requires: desktop-file-utils
# PATCH-FEATURE-OPENSUSE gnome-vfs-url_handler_news.patch vuntz@novell.com -- add news: url handler schema
Patch20: gnome-vfs-url_handler_news.patch
# PATCH-FEATURE-OPENSUSE gnome-vfs-url_handler_ftp.patch vuntz@novell.com -- add ftp: url handler schema
Patch22: gnome-vfs-url_handler_ftp.patch
# PATCH-NEEDS-REBASE gnome-vfs2-net-usershare.diff
Patch27: gnome-vfs2-net-usershare.diff
# PATCH-FEATURE-SLED gnome-vfs2-172680-novell-services.diff bnc172680 -- Needed for novell-nautilus-plugin integration in network://
Patch35: gnome-vfs2-172680-novell-services.diff
# PATCH-FIX-OPENSUSE gnome-vfs-no-mime-data.patch vuntz@novell.com -- This is bgo336952. Technically, this is wrong (since gnome-mime-data is still a dependency for deprecated API), but in practice, this should be fine.
Patch39: gnome-vfs-no-mime-data.patch
# PATCH-FIX-SLED gnome-vfs2-293856-novfs-file-method.diff bnc293856
Patch40: gnome-vfs2-293856-novfs-file-method.diff
# PATCH-FEATURE-OPENSUSE gnome-vfs-url_handler_irc.patch bnc372232 vuntz@novell.com -- add irc: url handler schema
Patch41: gnome-vfs-url_handler_irc.patch
# PATCH-FIX-UPSTREAM gnome-vfs2-non_void.patch bgo#611574 ro@novell.com -- Fix no-return-in-non-void-function.
Patch42: gnome-vfs2-non_void.patch
# bug437293
%ifarch ppc64
Obsoletes: gnome-vfs2-64bit
%endif
#
Obsoletes: gnome-vfs-extras
Provides: gnome-vfs-extras
Recommends: %{name}-lang
%gconf_schemas_prereq
%description
GNOME VFS is the GNOME virtual file system. It is the foundation of the
Nautilus file manager. It provides a modular architecture and ships
with several modules that implement support for file systems, HTTP,
FTP, and others. It provides a URI-based API, a back-end supporting
asynchronous file operations, a MIME type manipulation library, and
other features.
Authors:
--------
Elliot Lee <sopwith@redhat.com>
Miguel de Icaza <miguel@nuclecu.unam.mx>
Maciej Stachowiak <mjs@eazel.com>
Darin Adler <darin@bentspoon.com>
John Sullivan <sullivan@eazel.com>
Pavel Cisler <pavel@eazel.com>
Gene Ragan <gzr@eazel.com>
Rebecca Schulman <rebecka@eazel.com>
Seth Nickel <seth@eazel.com>
Ian McKellar <yakk@yakk.net.au>
Michael Meeks <michael@ximian.com>
Dan Winship <danw@ximian.com>
Mathieu Lacage <mathieu@eazel.com>
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/GNOME
Requires: %{name} = %{version} glib2-devel gconf2-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Elliot Lee <sopwith@redhat.com>
Miguel de Icaza <miguel@nuclecu.unam.mx>
Maciej Stachowiak <mjs@eazel.com>
Darin Adler <darin@bentspoon.com>
John Sullivan <sullivan@eazel.com>
Pavel Cisler <pavel@eazel.com>
Gene Ragan <gzr@eazel.com>
Rebecca Schulman <rebecka@eazel.com>
Seth Nickel <seth@eazel.com>
Ian McKellar <yakk@yakk.net.au>
Michael Meeks <michael@ximian.com>
Dan Winship <danw@ximian.com>
Mathieu Lacage <mathieu@eazel.com>
%package doc
License: GPLv2+ ; LGPLv2.1+
Summary: Additional Package Documentation for gnome-vfs2
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
GNOME VFS is the GNOME virtual file system. It is the foundation for
the Nautilus file manager. It provides a modular architecture and ships
with several modules that implement support for file systems, HTTP,
FTP, and more. It provides a URI-based API, a back-end that supports
asynchronous file operations, a MIME type manipulation library, and
other features.
This package contains additional documentation for the main package.
Authors:
--------
Elliot Lee <sopwith@redhat.com>
Miguel de Icaza <miguel@nuclecu.unam.mx>
Maciej Stachowiak <mjs@eazel.com>
Darin Adler <darin@bentspoon.com>
John Sullivan <sullivan@eazel.com>
Pavel Cisler <pavel@eazel.com>
Gene Ragan <gzr@eazel.com>
Rebecca Schulman <rebecka@eazel.com>
Seth Nickel <seth@eazel.com>
Ian McKellar <yakk@yakk.net.au>
Michael Meeks <michael@ximian.com>
Dan Winship <danw@ximian.com>
Mathieu Lacage <mathieu@eazel.com>
%lang_package
%prep
%setup -q -n %{_name}-%{version}
gnome-patch-translation-prepare
#%patch27 -p0
%patch35 -p1
%patch39
%patch40
gnome-patch-translation-update
# These patches have their own translation management:
%patch20
%patch22
%patch41 -p1
%patch42
# No patches without own translation management here!
# Put your patches upper from gnome-patch-translation-update
# Generate translations for "news", "ftp" and "irc" entries from "h323".
# These entries are identical with exception of URL type string.
for po in po/*.po ; do
tr '\n' '\1' <$po |
sed $'s/\1\1/\\n\\n/g' |
sed $'
s/\(.*desktop_gnome_url_handlers.schemas.*msgid ".*\)h323\\(.*"\1msgstr ".*\\)h323\\(.*\\)$/&\\n\\n\\1news\\2news\\3\\n\\n\\1ftp\\2ftp\\3\\n\\n\\1irc\\2irc\\3/
' |
tr '\1' '\n' >$po.new
mv $po.new $po
done
%build
gtkdocize --copy
autoreconf -f -i
%configure --with-pic \
--libexecdir=%{_prefix}/lib/gnome-vfs-2.0\
--disable-static\
--disable-howl \
--enable-selinux \
ac_cv_path_SSH_PROGRAM=/usr/bin/ssh
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang gnome-vfs-2.0
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
# Some sites use different partitions for /usr/(lib|lib64) and /usr/share. Since you
# can't create hardlinks across partitions, we'll do this more than once.
find %{buildroot} -type f -name "*.la" -exec %{__rm} -vf {} +
%fdupes $RPM_BUILD_ROOT/%{_includedir}
%fdupes $RPM_BUILD_ROOT/%{_libdir}
%fdupes $RPM_BUILD_ROOT/%{_bindir}
%pre -f %{name}.schemas_pre
%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/dbus-1/services/gnome-vfs-daemon.service
%{_libdir}/*.so.*
%dir %{_libdir}/gnome-vfs-2.0
%{_libdir}/gnome-vfs-2.0/modules
%if "%{_libdir}" != "%{_prefix}/lib"
%dir %{_prefix}/lib/gnome-vfs-2.0
%endif
%{_prefix}/lib/gnome-vfs-2.0/gnome-vfs-daemon
%config %{_sysconfdir}/gnome-vfs-2.0
%files lang -f gnome-vfs-2.0.lang
%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_libdir}/gnome-vfs-2.0/include
%{_libdir}/*.so
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gnome-vfs-2.0
%changelog