]> git.pld-linux.org Git - packages/perl-String-CRC32.git/blob - perl-String-CRC32.spec
423fb8d9af772738add88e6edc3dea3a56480720
[packages/perl-String-CRC32.git] / perl-String-CRC32.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    String
7 %define pnam    CRC32
8 Summary:        String::CRC32 perl module
9 Summary(pl):    Modu³ perla String::CRC32
10 Name:           perl-String-CRC32
11 Version:        1.2
12 Release:        7
13 License:        Public Domain
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  94b13443eac7241a323a876da95ac1c0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 BuildRequires:  perl-devel >= 5.6
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 String::CRC32 - calculates CRC of 32 bit lenghts.
23
24 %description -l pl
25 String::CRC32 - oblicza CRC d³ugo¶ci 32 bitów.
26
27 %prep
28 %setup -q -n %{pdir}-%{pnam}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33 %{__make} \
34         OPTIMIZE="%{rpmcflags}"
35
36 %{?with_tests:%{__make} test}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %{perl_vendorarch}/String/CRC32.pm
51 %dir %{perl_vendorarch}/auto/String/CRC32
52 %{perl_vendorarch}/auto/String/CRC32/CRC32.bs
53 %attr(755,root,root) %{perl_vendorarch}/auto/String/CRC32/CRC32.so
54 %{_mandir}/man3/*
This page took 0.05433 seconds and 2 git commands to generate.