]> git.pld-linux.org Git - packages/perl-Crypt-DES.git/blob - perl-Crypt-DES.spec
- added using %%{__make} macro.
[packages/perl-Crypt-DES.git] / perl-Crypt-DES.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Crypt-DES perl module
3 Summary(pl):    Modu³ perla Crypt-DES
4 Name:           perl-Crypt-DES
5 Version:        1.01
6 Release:        3
7 Copyright:      distributable
8 Group:          Development/Languages/Perl
9 Group(pl):      Programowanie/Jêzyki/Perl
10 Source0:        ftp://ftp.perl.org/pub/CPAN/modules/by-module/Crypt/Crypt-DES-%{version}.tar.gz
11 Patch0:         perl-Crypt-DES-paths.patch
12 BuildRequires:  rpm-perlprov >= 3.0.3-16
13 BuildRequires:  perl >= 5.005_03-14
14 %requires_eq    perl
15 Requires:       %{perl_sitearch}
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Crypt-DES - Perl interface to DES block cipher.
20
21 %description -l pl
22 Crypt-DES - modu³ wspomagaj±cy algorytm DES.
23
24 %prep
25 %setup -q -n Crypt-DES-%{version}
26 %patch -p0
27
28 %build
29 perl Makefile.PL
30 %{__make} OPTIMIZE="$RPM_OPT_FLAGS"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 %{__make} install DESTDIR=$RPM_BUILD_ROOT
35
36 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Crypt/DES/*.so
37
38 (
39   cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Crypt/DES
40   sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41   mv .packlist.new .packlist
42 )
43
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* 
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51
52 %{perl_sitearch}/Crypt/DES.pm
53
54 %dir %{perl_sitearch}/auto/Crypt/DES
55 %{perl_sitearch}/auto/Crypt/DES/.packlist
56 %{perl_sitearch}/auto/Crypt/DES/DES.bs
57 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/DES/DES.so
58
59 %{_mandir}/man3/*
This page took 0.039737 seconds and 4 git commands to generate.