File synce-gvfs.spec of Package synce-gvfs
#
# spec file for package synce-gvfs (version 0.4)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: synce-gvfs
Version: 0.4
Release: 0
License: GPL
Summary: GVFS Backend for SynCE
Url: http://www.synce.org
Group: System/GUI/GNOME
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gnome-common
BuildRequires: gnome-icon-theme
BuildRequires: gvfs-devel
BuildRequires: intltool
BuildRequires: librapi2-devel
BuildRequires: libsynce-devel
BuildRequires: perl-XML-Parser
BuildRequires: update-desktop-files
PreReq: shared-mime-info
Source0: %{name}-%{version}.tar.bz2
Source1: gvfs-1.4.0.tar.bz2
Source2: gvfs-1.6.1.tar.bz2
Source3: gvfs-1.6.6.tar.bz2
%description
Gvfs is a replacement for gnome-vfs, allowing applications to access a variety of filesystems in userspace, in this case a Windows Mobile device via SynCE.
%prep
%if 0%{?suse_version} == 1120
%setup -a 1
%else
%if 0%{?suse_version} == 1130
%setup -a 2
%else
%if 0%{?suse_version} == 1140
%setup -a 3
%else
%setup -a 3
%endif
%endif
%endif
%build
%if 0%{?suse_version} == 1120
%configure --with-gvfs-source=gvfs-1.4.0 --with-gvfs-source-version=1.4
%else
%if 0%{?suse_version} == 1130
%configure --with-gvfs-source=gvfs-1.6.1 --with-gvfs-source-version=1.6
%else
%if 0%{?suse_version} == 1140
%configure --with-gvfs-source=gvfs-1.6.6 --with-gvfs-source-version=1.6
%else
%configure --with-gvfs-source=gvfs-1.6.6 --with-gvfs-source-version=1.6
%endif
%endif
%endif
%install
%make_install
%clean
rm -rf %{buildroot}
%post
/usr/bin/update-mime-database %{_datadir}/mime
%postun
/usr/bin/update-mime-database %{_datadir}/mime
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README INSTALL NEWS
%{_prefix}/lib/gvfsd-synce
%{_datadir}/gvfs/mounts/synce.mount
%{_datadir}/icons/gnome/*/apps/synce-gvfs.png
%{_datadir}/mime/packages/synce-gvfs.xml
%changelog