]> git.pld-linux.org Git - packages/perl-Storable.git/blob - perl-Storable.spec
ea77fa308aafd51b2305246907c4801eac2c3419
[packages/perl-Storable.git] / perl-Storable.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    Storable
7 %define         pnam    Storable
8 Summary:        Storable - persistency for Perl data structures
9 Summary(pl.UTF-8):      Storable - przechowywanie struktur danych Perla
10 Name:           perl-Storable
11 # 2.13 in perl-modules 5.8.7
12 # 2.15 in perl-modules 5.8.8
13 # 2.18 in perl-modules 5.10.0
14 # 2.22 in perl-modules 5.12.0
15 # 2.41 in perl-modules 5.18.0
16 # 2.49 in perl-modules 5.20.1
17 Version:        2.51
18 Release:        1
19 # same as perl 5
20 License:        GPL v1+ or Artistic
21 Group:          Development/Languages/Perl
22 Source0:        http://www.cpan.org/modules/by-module/Storable/%{pnam}-%{version}.tar.gz
23 # Source0-md5:  48082965a6403a8c5adcd42aeb0c58e5
24 URL:            http://search.cpan.org/dist/Storable/
25 BuildRequires:  perl-Test-Simple >= 0.41
26 BuildRequires:  perl-devel >= 1:5.8.0
27 BuildRequires:  rpm-perlprov >= 4.1-13
28 %if "%{version}" <= "%(rpm -q --provides perl-modules | grep ^perl-Storable | awk '{ print $3 }')"
29 BuildRequires:  this-must-be-newer-version-than-in-perl-modules
30 %endif
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Storable - persistency for Perl data structures.
35
36 %description -l pl.UTF-8
37 Storable - moduł umożliwiający przechowywanie struktur danych Perla.
38
39 %prep
40 %setup -q -n %{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make} \
46         CC="%{__cc}" \
47         OPTIMIZE="%{rpmcflags}"
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc ChangeLog README
63 %{perl_vendorarch}/Storable.pm
64 %dir %{perl_vendorarch}/auto/Storable
65 %attr(755,root,root) %{perl_vendorarch}/auto/Storable/Storable.so
66 %{_mandir}/man3/Storable.3pm*
This page took 0.096583 seconds and 2 git commands to generate.