File synce-gnomevfs.spec of Package synce-gnomevfs

#
# spec file for package synce-gnomevfs (version 0.13)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

BuildRequires:  gnome-common
BuildRequires:  update-desktop-files

%if 00%{?suse_version} <= 01020
%define _prefix   /opt/gnome
%define _sysconfdir /etc/%{_prefix}
%endif

Name:           synce-gnomevfs
Version:        0.13
Release:        0
License:        MIT
Summary:        SynCE Gnome VFS module
Url:            http://www.synce.org
Group:          System/GUI/GNOME
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Source0:        %{name}-%{version}.tar.bz2

BuildRequires:  gnome-vfs2-devel
BuildRequires:  librapi2-devel
BuildRequires:  libsynce-devel
%if 0%{?suse_version} > 1120
BuildRequires:  hicolor-icon-theme
%endif
PreReq:         shared-mime-info

%description
This Gnome-VFS module allows access to the Windows CE or Pocket
PC file system.

%prep
%setup -q

%build
%configure --enable-trayicon-plugin
make %{?_smp_mflags}

%install
%make_install
rm -f  %{buildroot}/%{_libdir}/gnome-vfs-2.0/modules/libsyncevfs.la
rm -f %{buildroot}/%{_libdir}/synce-trayicon/modules/gnomevfs-trayicon-module.la
chmod +x %{buildroot}/%{_datadir}/synce/synce-in-computer-folder.sh

%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 README TODO LICENSE ChangeLog
%config %{_sysconfdir}/gnome-vfs-2.0/modules/synce-module.conf
%{_bindir}/synce-in-computer-folder
%{_libdir}/gnome-vfs-2.0/modules/libsyncevfs.so
%dir %{_libdir}/synce-trayicon
%dir %{_libdir}/synce-trayicon/modules
%{_libdir}/synce-trayicon/modules/gnomevfs-trayicon-module.so
%{_datadir}/icons/hicolor/48x48/apps/synce-gnomevfs.png
%{_mandir}/man?/synce-in-computer-folder.1.gz
%{_datadir}/synce/synce-in-computer-folder.sh
%dir %{_datadir}/synce
%{_datadir}/mime/packages/synce-gnomevfs.xml

%changelog
openSUSE Build Service is sponsored by