]>
Commit | Line | Data |
---|---|---|
292ae860 AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
68fe7b93 | 5 | %define pdir Digest |
6 | %define pnam CRC | |
292ae860 | 7 | Summary: Digest::CRC - Generic CRC functions |
63b8efc3 | 8 | Summary(pl.UTF-8): Digest::CRC - podstawowe funkcje CRC |
3a56a486 | 9 | Name: perl-Digest-CRC |
29bdf6de | 10 | Version: 0.22.2 |
87789fc4 | 11 | Release: 4 |
292ae860 AG |
12 | License: Public Domain |
13 | Group: Development/Languages/Perl | |
3a56a486 | 14 | Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz |
29bdf6de | 15 | # Source0-md5: 301c1421d0e71761bf2d9e2a7e5b1372 |
292ae860 AG |
16 | URL: http://search.cpan.org/dist/Digest-CRC/ |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | The Digest::CRC module calculates CRC sums of all sorts. It contains | |
23 | wrapper functions with the correct parameters for CRC-CCITT, CRC-16 | |
24 | and CRC-32. | |
25 | ||
12b7a387 JR |
26 | %description -l pl.UTF-8 |
27 | Moduł Digest::CRC oblicza różnego rodzaju sumy kontrolne CRC. Posiada | |
292ae860 AG |
28 | funkcje - wrappery z odpowiednimi parametrami dla CRC-CCITT, CRC-16 |
29 | oraz CRC-32. | |
30 | ||
31 | %prep | |
29bdf6de | 32 | %setup -q -n %{pdir}-%{pnam}-0.22 |
292ae860 AG |
33 | |
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | ||
38 | %{__make} \ | |
daf3b96b | 39 | CC="%{__cc}" \ |
292ae860 AG |
40 | OPTIMIZE="%{rpmcflags}" |
41 | ||
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes README | |
56 | %{perl_vendorarch}/Digest/*.pm | |
09a2b345 JB |
57 | %dir %{perl_vendorarch}/auto/Digest/CRC |
58 | %attr(755,root,root) %{perl_vendorarch}/auto/Digest/CRC/CRC.so | |
292ae860 | 59 | %{_mandir}/man3/* |