2 %bcond_without tests # do not perform "make test"
5 %define pnam ProtocolBuffers
6 Summary: Google::ProtocolBuffers - simple interface to Google Protocol Buffers
7 Name: perl-%{pdir}-%{pnam}
10 License: GPL v1+ or Artistic
11 Group: Development/Languages/Perl
12 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
13 # Source0-md5: f328b874b291018225201713054b3465
14 URL: http://search.cpan.org/dist/Google-ProtocolBuffers/
15 BuildRequires: perl-devel >= 1:5.8.0
16 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-Class-Accessor
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Google Protocol Buffers is a data serialization format. It is binary
25 (and hence compact and fast for serialization) and as extendable as
26 XML; its nearest analogues are Thrift and ASN.1. There are official
27 mappings for C++, Java and Python languages; this library is a mapping
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
43 %{__make} pure_install \
44 DESTDIR=$RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 find $RPM_BUILD_ROOT -name .DS_Store | xargs -r rm -f
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/*
57 %dir %{perl_vendorlib}/%{pdir}
58 %dir %{perl_vendorlib}/%{pdir}/%{pnam}
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm