]> git.pld-linux.org Git - SPECS.git/blob - perl-Net-FS-Gmail.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / perl-Net-FS-Gmail.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 %bcond_without  tests           # do not perform "make test"
5 #
6 %define pdir    Net
7 %define pnam    FS-Gmail
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
11 Version:        0.2
12 Release:        1
13 # same as perl
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
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Perl module that allows using Gmail as file storage.
31
32 %description -l pl.UTF-8
33 Ten moduł Perla umożliwia używanie Gmaila jako przestrzeni dyskowej.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Build.PL \
40         destdir=$RPM_BUILD_ROOT \
41         installdirs=vendor
42 ./Build
43 sed -ie 's#!perl#!/usr/bin/perl#' bin/gmailfs
44
45 %{?with_tests:./Build test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 ./Build install
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc INSTALL README TODO
58 %attr(755,root,root) %{_bindir}/gmailfs
59 %{perl_vendorlib}/Net/FS/*.pm
60 %{_mandir}/man[13]/*
This page took 0.194108 seconds and 3 git commands to generate.