3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 %define pnam Serializer
9 Summary: Modules that serialize data structures
10 Summary(pl.UTF-8): Moduły do serializacji struktur danych
11 Name: perl-Data-Serializer
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 9bdc9f3a4b50080734288712fdd08e55
19 URL: http://search.cpan.org/dist/Data-Serializer/
20 BuildRequires: perl-Digest-SHA1
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 %if %{with autodeps} || %{with tests}
24 BuildRequires: perl-Config-General
25 BuildRequires: perl-Data-Denter
26 #BuildRequires: perl-Data-Taxi
27 BuildRequires: perl-Digest-SHA
28 BuildRequires: perl-FreezeThaw
29 BuildRequires: perl-PHP-Serialization
30 BuildRequires: perl-XML-Dumper
31 BuildRequires: perl-XML-Simple
32 BuildRequires: perl-YAML
33 BuildRequires: perl-YAML-Syck
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Provides a unified interface to the various serializing modules
40 currently available. Adds the functionality of both compression and
43 %description -l pl.UTF-8
44 Dostarcza zunifikowany interfejs do różnych modułów serializacji
45 danych. Posiada wsparcie zarówno dla kompresji jak i szyfrowania.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorlib}/auto/Data/Serializer
71 %{perl_vendorlib}/Data/Serializer.pm
72 %{perl_vendorlib}/Data/Serializer