Репозиторий Sisyphus
Последнее обновление: 4 декабря 2021 | Пакетов: 17403 | Посещений: 22456309
en ru br
Репозитории ALT
S:2.24.4-alt12
5.1: 2.24.4-alt0.M50P.1
4.1: 2.22.0-alt1.1
4.0: 2.16.3-alt3
3.0: 1.0.5-alt7.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: gnome-vfs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 2.16
%define oldname gnome-vfs2

# Avahi supersedes howl.

%def_enable avahi
%def_disable howl

# Choose one

%def_disable openssl
%def_enable gnutls

# Choose one

%def_disable fam
%def_enable gamin

# Optional components

%def_enable hal
%def_enable samba
%def_disable ipv6
%def_disable afs
# This one doesn't work (at all), as for 2.13.4
%def_disable cdda

%def_disable static

Name: gnome-vfs
Version: %ver_major.3
Release: alt3

Summary: The GNOME virtual file-system libraries
Group: System/Libraries
License: LGPL
Url: ftp://ftp.gnome.org

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch: %name-2.6.1.1-alt-gnomevfs-ls.patch
Patch1: %name-2.15.90-fix-dbus-service-install.patch

Obsoletes: %oldname-extras < 2.14.2
Provides: %oldname-extras = %version-%release
Obsoletes: %oldname < 2.14.2
Provides: %oldname = %version-%release
Conflicts: libgnome < 2.5.2

# From configure.in

%define GConf_ver 1.1.1
%define glib_ver 2.9.3
%define libxml2_ver 2.6.0

%define avahi_ver 0.6
%define howl_ver 0.9.6
%define hal_ver 0.5.7
%define dbus_glib_ver 0.60
%define gtk_doc_ver 1.0

%define shared_mime_info_ver 0.15

PreReq: GConf2 >= %GConf_ver
Requires: gnome-mime-data
Requires: shared-mime-info >= %shared_mime_info_ver
%{?_enable_gamin:Requires: gamin libgamin-fam}

# From configure.in

BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35.0
BuildPreReq: libGConf2-devel >= %GConf_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: bzlib-devel libkrb5-devel
BuildPreReq: gtk-doc >= %gtk_doc_ver
%{?_enable_cdda:BuildPreReq: libcdparanoia-devel}
%{?_enable_samba:BuildPreReq: libsmbclient-devel}
%{?_enable_openssl:BuildPreReq: libssl-devel}
%{?_enable_gnutls:BuildPreReq: libgnutls-devel >= 1.0.0 libtasn1-devel}
%{?_enable_howl:BuildPreReq: libhowl-devel >= %howl_ver}
%if_enabled avahi
BuildPreReq: libavahi-devel >= %avahi_ver
BuildPreReq: libavahi-glib-devel >= %avahi_ver
%endif
%if_enabled hal
BuildPreReq: libhal-devel >= %hal_ver
%endif
BuildPreReq: libdbus-glib-devel gnome-mime-data
# For direct inotify support
BuildPreReq: linux-libc-headers
%{?_enable_fam:BuildPreReq: libfam-devel}
%{?_enable_gamin:BuildPreReq: gamin-devel}

# This stays here for compatibility with older GConf packages, where

# %%gconf2_install macro was defined in GConf(2) package instead of
# libGConf(2)-devel.
BuildRequires: GConf2 >= %GConf_ver

BuildRequires: docbook-dtds docbook-style-xsl libpopt-devel perl-XML-Parser xsltproc zlib-devel

%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 backend supporting asynchronous file operations,
a MIME type manipulation library and other features.

%package module-sftp
Summary: SSH/SFTP access module for GNOME VFS.
Group: System/Libraries
Requires: %name = %version-%release
Requires: openssh-clients

%description module-sftp
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 backend supporting asynchronous file operations,
a MIME type manipulation library and other features.

This package contains a GNOME VFS module for access to network resources using SFTP (FTP over SSH) protocol. With this module, you can open URIs that begin with ssh: and sftp: prefixes.

%package module-smb
Summary: Samba access module for GNOME VFS.
Group: System/Libraries
Requires: %name = %version-%release

%description module-smb
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 backend supporting asynchronous file operations,
a MIME type manipulation library and other features.

This package contains a GNOME VFS module for access to network resources using SMB protocol (also known as "Windows shares"). With this module, you can open URIs that begin with smb: prefix. Install it if you use GNOME and there's a Windows machine with shared resources in your network.

%package devel
Summary: Libraries and include files for developing GNOME VFS applications
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
Obsoletes: %oldname-devel < 2.14.2
Provides: %oldname-devel = %version-%release

%description devel
This package provides the necessary development libraries for writing
GNOME VFS modules and applications that use the GNOME VFS APIs.

%package devel-doc
Summary: Development documentation for GNOME VFS.
Group: Development/C
Conflicts: %name-devel < %version-%release
Obsoletes: %oldname-devel-doc < 2.14.2
Provides: %oldname-devel-doc = %version-%release

%description devel-doc
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 backend supporting asynchronous file operations,
a MIME type manipulation library and other features.

This package contains development documentation for GNOME VFS.

%if_enabled static
%package devel-static
Summary: Static libraries for developing GNOME VFS applications
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release
Obsoletes: %oldname-devel-static < 2.14.2
Provides: %oldname-devel-static = %version-%release

%description devel-static
This package provides the necessary static development libraries
for writing GNOME VFS modules and applications that use the GNOME VFS APIs.
%endif

%package utils
Summary: Command line applications for GNOME VFS.
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
Obsoletes: %oldname-utils < 2.14.2
Provides: %oldname-utils = %version-%release

%description utils
This package contains command line tools for GNOME VFS.

%define _gtk_docdir %_datadir/gtk-doc/html
%define _libexecdir %_libdir/%name-2.0

%prep
%setup -q
#patch -p1
#patch1

%build
export ac_cv_prog_AWK=/bin/awk
#export ac_cv_path_SSH_PROGRAM=/usr/bin/ssh
%configure \
   %{subst_enable static} \
   %{subst_enable howl} \
   %{subst_enable avahi} \
   %{subst_enable hal} \
   %{subst_enable cdda} \
       %{subst_enable samba} \
   %{subst_enable openssl} \
   %{subst_enable gnutls} \
       %{subst_enable fam} \
       %{?_enable_gamin:--enable-fam} \
   --disable-schemas-install \
   --enable-gtk-doc

%make_build

%install
%makeinstall DBUS_SERVICE_DIR=%buildroot%_datadir/dbus-1/services
subst '/^\(ssh\|sftp\).*$/d' %buildroot%_sysconfdir/%name-2.0/modules/default-modules.conf
cat <<EOF >%buildroot%_sysconfdir/%name-2.0/modules/sftp-module.conf
ssh: sftp
sftp: sftp
EOF
chmod 644 %buildroot%_sysconfdir/%name-2.0/modules/sftp-module.conf

%__bzip2 -9fk ChangeLog

#%%gconf2_stripschemas

%find_lang --output=files_list %name-2.0
# system_smb.schemas is not included in this list, because SMB module is
# packaged separately.
%define schemas desktop_default_applications desktop_gnome_url_handlers system_http_proxy system_dns_sd
for s in %schemas; do
   echo "%%config %_sysconfdir/gconf/schemas/$s.schemas"
done >>files_list

%post
%gconf2_install %schemas
%post_ldconfig

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %schemas
fi

%postun -p %postun_ldconfig

%post module-smb
%gconf2_install system_smb

%preun module-smb
if [ $1 = 0 ]; then
%gconf2_uninstall system_smb
fi

%files -f files_list
%_libdir/*.so.*
%dir %_libexecdir
%dir %_libexecdir/modules
%_libexecdir/modules/libvfs-test.so
%_libexecdir/modules/libcomputer.so
%_libexecdir/modules/libfile.so
%_libexecdir/modules/libtar.so
%_libexecdir/modules/libgzip.so
%_libexecdir/modules/libbzip2.so
%_libexecdir/modules/libnetwork.so
%_libexecdir/modules/libhttp.so
%_libexecdir/modules/libftp.so
%_libexecdir/modules/libdns-sd.so
%_libexecdir/modules/libnntp.so
%_libexecdir/gnome-vfs-daemon
%_datadir/dbus-1/services/gnome-vfs-daemon.service
%dir %_sysconfdir/gnome-vfs-2.0
%dir %_sysconfdir/gnome-vfs-2.0/modules
%config %_sysconfdir/gnome-vfs-2.0/modules/default-modules.conf
%config %_sysconfdir/gnome-vfs-2.0/modules/ssl-modules.conf
%doc AUTHORS ChangeLog.* NEWS README

%files module-sftp
%_libexecdir/modules/libsftp.so
%config %_sysconfdir/gnome-vfs-2.0/modules/sftp-module.conf

%files module-smb
%_libexecdir/modules/libsmb.so
%config %_sysconfdir/gnome-vfs-2.0/modules/smb-module.conf
%config %_sysconfdir/gconf/schemas/system_smb.schemas

%files devel
%_includedir/*
%dir %_libexecdir/include
%_libexecdir/include/*
%_libdir/*.so
%_libdir/pkgconfig/*
%doc HACKING TODO

%files devel-doc
%_gtk_docdir/*

%if_enabled static
%files devel-static
%_libdir/gnome-vfs-2.0/modules/*.a
%_libdir/*.a
%endif

%files utils
%_bindir/*

%exclude %_libdir/gnome-vfs-2.0/modules/*.la

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin