3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::GCrypt - Perl interface to the GNU Cryptographic library
9 Name: perl-Crypt-GCrypt
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d23084ed878e5d12d4956c39e6f2b813
17 URL: http://search.cpan.org/dist/Crypt-GCrypt/
18 BuildRequires: libgcrypt-devel
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Crypt::GCrypt provides an object interface to the C libgcrypt library.
25 It currently supports symmetric encryption/decryption and message
26 digests, while asymmetric cryptography is being worked on.
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %{__perl} Makefile.PL \
36 OPTIMIZE="%{rpmcflags}"
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_vendorarch}/Crypt/GCrypt.pm
53 %{perl_vendorarch}/Crypt/GCrypt
54 %dir %{perl_vendorarch}/auto/Crypt/GCrypt
55 %{perl_vendorarch}/auto/Crypt/GCrypt/GCrypt.bs
56 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/GCrypt/GCrypt.so
57 %{_mandir}/man3/Crypt::GCrypt*.3*