3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 Summary: Net::FS::Gmail - store and retrieve files on Gmail
9 Summary(pl.UTF-8): Net::FS::Gmail - zapis i odczyt plików z Gmaila
10 Name: perl-Net-FS-Gmail
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: e07e6b7dc2b97c0a4229ade19901e6e6
18 URL: http://search.cpan.org/dist/Net-FS-Gmail/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-Mail-Webmail-Gmail >= 1.05.1
23 BuildRequires: perl-Time-modules
24 BuildRequires: perl-URI
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Perl module that allows using Gmail as file storage.
32 %description -l pl.UTF-8
33 Ten moduł Perla umożliwia używanie Gmaila jako przestrzeni dyskowej.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
40 destdir=$RPM_BUILD_ROOT \
43 sed -ie 's#!perl#!/usr/bin/perl#' bin/gmailfs
45 %{?with_tests:./Build test}
48 rm -rf $RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc INSTALL README TODO
58 %attr(755,root,root) %{_bindir}/gmailfs
59 %{perl_vendorlib}/Net/FS/*.pm