]> git.pld-linux.org Git - packages/perl-Crypt-Blowfish.git/blob - perl-Crypt-Blowfish.spec
- x32 rebuild
[packages/perl-Crypt-Blowfish.git] / perl-Crypt-Blowfish.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Crypt
7 %define         pnam    Blowfish
8 Summary:        Crypt::Blowfish - Perl Blowfish encryption module
9 Summary(pl.UTF-8):      Crypt::Blowfish - moduł Perla dla szyfrowania Blowfish
10 Name:           perl-Crypt-Blowfish
11 Version:        2.12
12 Release:        6
13 License:        BSD-like (see COPYRIGHT)
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  a0eca17addc8bdaf38c044c365a8800c
17 Patch0:         build.patch
18 URL:            http://search.cpan.org/dist/Crypt-Blowfish/
19 %{?with_tests:BuildRequires:    perl-Crypt-CBC >= 1.22}
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Crypt::Blowfish Perl module contains an implementation of the Blowfish
26 cryptography algorithm.
27
28 %description -l pl.UTF-8
29 Moduł Perla Crypt::Blowfish zawiera implementację algorytmu
30 kryptograficznego Blowfish.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %patch0 -p1
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make} \
40         CC="%{__cc}" \
41         OPTIMIZE="%{rpmcflags}"
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes COPYRIGHT README
57 %{perl_vendorarch}/Crypt/Blowfish.pm
58 %dir %{perl_vendorarch}/auto/Crypt/Blowfish
59 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Blowfish/Blowfish.so
60 %{_mandir}/man3/Crypt::Blowfish.3pm*
This page took 0.212266 seconds and 4 git commands to generate.