]>
Commit | Line | Data |
---|---|---|
292ae860 AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
68fe7b93 | 6 | %define pdir Digest |
7 | %define pnam CRC | |
292ae860 | 8 | Summary: Digest::CRC - Generic CRC functions |
63b8efc3 | 9 | Summary(pl.UTF-8): Digest::CRC - podstawowe funkcje CRC |
3a56a486 | 10 | Name: perl-Digest-CRC |
1d607aa5 | 11 | Version: 0.14 |
652bb219 | 12 | Release: 7 |
292ae860 AG |
13 | License: Public Domain |
14 | Group: Development/Languages/Perl | |
3a56a486 | 15 | Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz |
1d607aa5 | 16 | # Source0-md5: b5a6c4c37383f1ec5e51c5fec0af023c |
292ae860 AG |
17 | URL: http://search.cpan.org/dist/Digest-CRC/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The Digest::CRC module calculates CRC sums of all sorts. It contains | |
24 | wrapper functions with the correct parameters for CRC-CCITT, CRC-16 | |
25 | and CRC-32. | |
26 | ||
12b7a387 JR |
27 | %description -l pl.UTF-8 |
28 | Moduł Digest::CRC oblicza różnego rodzaju sumy kontrolne CRC. Posiada | |
292ae860 AG |
29 | funkcje - wrappery z odpowiednimi parametrami dla CRC-CCITT, CRC-16 |
30 | oraz CRC-32. | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
36 | %{__perl} Makefile.PL \ | |
37 | INSTALLDIRS=vendor | |
38 | ||
39 | %{__make} \ | |
daf3b96b | 40 | CC="%{__cc}" \ |
292ae860 AG |
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 README | |
57 | %{perl_vendorarch}/Digest/*.pm | |
09a2b345 JB |
58 | %dir %{perl_vendorarch}/auto/Digest/CRC |
59 | %attr(755,root,root) %{perl_vendorarch}/auto/Digest/CRC/CRC.so | |
598a403e | 60 | %{perl_vendorarch}/auto/Digest/CRC/CRC.bs |
292ae860 | 61 | %{_mandir}/man3/* |