]>
Commit | Line | Data |
---|---|---|
d0343638 | 1 | # |
2 | # Conditional build: | |
8e8e29b7 | 3 | %bcond_without tests # do not perform "make test" |
d0343638 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
ca6dfa86 | 6 | %define pdir Mail |
7 | %define pnam GnuPG | |
58be7f64 | 8 | Summary: Mail::GnuPG - Process email with GPG |
09c7b574 | 9 | Summary(pl.UTF-8): Mail::GnuPG - przetwarzanie poczty elektronicznej przy użyciu GPG |
d0343638 | 10 | Name: perl-Mail-GnuPG |
eaeb167a | 11 | Version: 0.23 |
9d0cbff4 | 12 | Release: 1 |
d0343638 | 13 | License: GPL v2 or Artistic |
14 | Group: Development/Languages/Perl | |
a5846fa8 | 15 | Source0: http://www.cpan.org/modules/by-module/Mail/%{pdir}-%{pnam}-%{version}.tar.gz |
eaeb167a | 16 | # Source0-md5: 9661f16109d957720a924fa58ed8b09d |
a5846fa8 | 17 | URL: http://search.cpan.org/dist/Mail-GnuPG/ |
d0343638 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
bf223ea6 | 21 | BuildRequires: perl-GnuPG-Interface |
bf223ea6 | 22 | BuildRequires: perl-MIME-tools |
a5846fa8 | 23 | BuildRequires: perl-MailTools |
bf223ea6 | 24 | BuildRequires: perl-Test-Simple |
d0343638 | 25 | %endif |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Use GnuPG::Interface to process or create PGP signed or encrypted | |
31 | email. | |
32 | ||
3ba7fd38 JR |
33 | %description -l pl.UTF-8 |
34 | GnuPG::Interface służy do przetwarzania i tworzenia podpisanej lub | |
58be7f64 | 35 | zaszyfrowanej PGP poczty elektronicznej. |
d0343638 | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
01703a70 | 41 | %{__perl} Build.PL \ |
42 | installdirs=vendor \ | |
43 | destdir=$RPM_BUILD_ROOT | |
d0343638 | 44 | |
01703a70 | 45 | ./Build |
46 | ||
47 | %{?with_tests:./Build test} | |
d0343638 | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
01703a70 | 52 | ./Build install |
d0343638 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
60 | %{perl_vendorlib}/Mail/*.pm | |
61 | %{_mandir}/man3/* |