[packages/perl-Google-ProtocolBuffers] - initial version 0.11

adwol adwol at pld-linux.org
Tue Nov 18 12:01:53 CET 2014


commit 3d3a7456722080c83d99e16566d9272e5a6903e0
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Tue Nov 18 12:01:29 2014 +0100

    - initial version 0.11

 perl-Google-ProtocolBuffers.spec | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-Google-ProtocolBuffers.spec b/perl-Google-ProtocolBuffers.spec
new file mode 100644
index 0000000..339134d
--- /dev/null
+++ b/perl-Google-ProtocolBuffers.spec
@@ -0,0 +1,61 @@
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define		pdir	Google
+%define		pnam	ProtocolBuffers
+%include	/usr/lib/rpm/macros.perl
+Summary:	Google::ProtocolBuffers - simple interface to Google Protocol Buffers
+Name:		perl-%{pdir}-%{pnam}
+Version:	0.11
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	f328b874b291018225201713054b3465
+URL:		http://search.cpan.org/dist/%{pdir}-%{pnam}/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:  perl-Class-Accessor
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Google Protocol Buffers is a data serialization format. It is binary
+(and hence compact and fast for serialization) and as extendable as
+XML; its nearest analogues are Thrift and ASN.1. There are official
+mappings for C++, Java and Python languages; this library is a mapping
+for Perl.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+find $RPM_BUILD_ROOT -name .DS_Store | xargs -r rm -f
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{_bindir}/*
+%{perl_vendorlib}/%{pdir}/*.pm
+%dir %{perl_vendorlib}/%{pdir}/%{pnam}
+%{perl_vendorlib}/%{pdir}/%{pnam}/*.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Google-ProtocolBuffers.git/commitdiff/3d3a7456722080c83d99e16566d9272e5a6903e0



More information about the pld-cvs-commit mailing list