3 %bcond_without tests # do not perform "make test"
7 Summary: Storable - persistency for Perl data structures
8 Summary(pl.UTF-8): Storable - przechowywanie struktur danych Perla
10 # 2.13 in perl-modules 5.8.7
11 # 2.15 in perl-modules 5.8.8
12 # 2.18 in perl-modules 5.10.0
13 # 2.22 in perl-modules 5.12.0
14 # 2.41 in perl-modules 5.18.0
15 # 2.49 in perl-modules 5.20.1
16 # 3.08 in perl-modules 5.28.0
17 # 3.15 in perl-modules 5.30.0
21 License: GPL v1+ or Artistic
22 Group: Development/Languages/Perl
23 Source0: http://www.cpan.org/modules/by-module/Storable/%{pnam}-%{version}.tar.gz
24 # Source0-md5: 7890d8e32c03f9584a1cc65068a7a154
25 URL: https://metacpan.org/release/Storable
26 BuildRequires: perl-Test-Simple >= 0.41
27 BuildRequires: perl-devel >= 1:5.8.0
28 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRequires: rpmbuild(macros) >= 1.745
30 %if "%{version}" <= "%(rpm -q --provides perl-modules | grep ^perl-Storable | awk '{ print $3 }')"
31 BuildRequires: this-must-be-newer-version-than-in-perl-modules
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Storable - persistency for Perl data structures.
38 %description -l pl.UTF-8
39 Storable - moduł umożliwiający przechowywanie struktur danych Perla.
42 %setup -q -n %{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Storable.pm
66 %dir %{perl_vendorarch}/auto/Storable
67 %attr(755,root,root) %{perl_vendorarch}/auto/Storable/Storable.so
68 %{_mandir}/man3/Storable*.3pm*