File gmailfs.spec of Package gmailfs

#
# spec file for package gmailfs (Version 0.8.0)
#
# Copyright 2009 Mario García H.
#
# 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.

Summary: Mountable Linux filesystem which uses a Gmail account as its storage medium
Name: gmailfs
Version: 0.8.0
Release: 2
#Source0: %{name}-%{version}.tar.gz
Source0: http://richard.jones.name/google-hacks/gmail-filesystem/%{name}-%{version}.tar.gz
Vendor: %{vendor}
URL: http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html
License: GPLv2
Group: Productivity/Networking/Email/Utilities
Requires: python-openssl python-libgmail python-fuse python-mechanize
Requires: python-ClientForm
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-%{version}-build


%description
Gmail Filesystem provides a mountable Linux
filesystem which uses your Gmail account as its
storage medium.

gmailfs is a Python application and uses the FUSE
userland filesystem infrastructure to help
provide the filesystem, and libgmail to
communicate with Gmail.

GmailFS supports most file operations such as
read, write, open, close, stat, symlink, link,
unlink, truncate and rename. This means that you
can use all your favourite unix command line
tools to operate on files stored on Gmail
(e.g. cp, ls, mv, rm, ln, grep, ...)


%prep
%setup -q

%build


%install
cd %{_builddir}/%{name}-%{version}
%{__install} -d -m 0755 %{buildroot}/%{_bindir}
%{__install} -d -m 0755 %{buildroot}/sbin
%{__install} -d -m 0755 %{buildroot}/%{_docdir}/%{name}
%{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}
%{__install} -m 0755 gmailfs.py %{buildroot}/%{_bindir}
%{__install} -m 0755 mount.gmailfs %{buildroot}/sbin
%{__install} -m 0600 %{name}.conf %{buildroot}/%{_sysconfdir}
%{__install} -m 0644 ChangeLog COPYING %{buildroot}/%{_docdir}/%{name}


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}.py
%attr(0755,root,root)/sbin/mount.gmailfs
%config(noreplace) %attr(0640,root,root)%{_sysconfdir}/%{name}.conf
%doc ChangeLog COPYING


%changelog
* Tue Jul 28 2009 Mario García H. <code933k@gmail.com> - 0.8.0
- Initial package.
openSUSE Build Service is sponsored by