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