]> git.pld-linux.org Git - packages/perl-String-CRC32.git/blob - perl-String-CRC32.spec
- added '%include /usr/lib/rpm/macros.perl'
[packages/perl-String-CRC32.git] / perl-String-CRC32.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        String-CRC32 perl module
3 Summary(pl):    Modu³ perla String-CRC32
4 Name:           perl-String-CRC32
5 Version:        0.9
6 Release:        3
7 Copyright:      GPL
8 Group:          Development/Languages/Perl
9 Group(pl):      Programowanie/Jêzyki/Perl
10 Source:         ftp://ftp.perl.org/pub/CPAN/modules/by-module/String/String-CRC32-%{version}.tar.gz
11 BuildRequires:  rpm-perlprov >= 3.0.3-16
12 BuildRequires:  perl >= 5.005_03-14
13 %requires_eq    perl
14 Requires:       %{perl_sitearch}
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %description
18 String-CRC32 - calculates CRC of 32 bit lenghts. 
19
20 %description -l pl
21 String-CRC32 - oblicza CRC d³ugo¶ci 32 bitów.
22
23 %prep
24 %setup -q -n String-CRC32-%{version}
25
26 %build
27 perl Makefile.PL
28 make OPTIMIZE="$RPM_OPT_FLAGS"
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 make install DESTDIR=$RPM_BUILD_ROOT
33
34 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/String/CRC32/*.so
35
36 (
37   cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/String/CRC32
38   sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
39   mv .packlist.new .packlist
40 )
41
42 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
43         README
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README.gz
51
52 %{perl_sitearch}/String/CRC32.pm
53
54 %dir %{perl_sitearch}/auto/String/CRC32
55 %{perl_sitearch}/auto/String/CRC32/.packlist
56 %{perl_sitearch}/auto/String/CRC32/CRC32.bs
57 %attr(755,root,root) %{perl_sitearch}/auto/String/CRC32/CRC32.so
58
59 %{_mandir}/man3/*
This page took 0.063688 seconds and 3 git commands to generate.