[perl-qpid_proton/f18] Rebased on Proton 0.5.
Darryl L. Pierce
mcpierce at fedoraproject.org
Thu Aug 29 19:04:57 UTC 2013
commit 1957d0b2c075795b599331053ef0f6c880aed288
Author: Darryl L. Pierce <mcpierce at gmail.com>
Date: Thu Aug 29 14:13:35 2013 -0400
Rebased on Proton 0.5.
- Changed package to use the single upstream source rather than separate Perl sources.
.gitignore | 1 +
perl-qpid_proton.spec | 27 ++++++++++++++++++++-------
sources | 2 +-
3 files changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3d80837..a95e00c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/perl-qpid_proton-0.3.tar.gz
/perl-qpid_proton-0.4.tar.gz
+/qpid-proton-0.5.tar.gz
diff --git a/perl-qpid_proton.spec b/perl-qpid_proton.spec
index 77a91f0..962f39f 100644
--- a/perl-qpid_proton.spec
+++ b/perl-qpid_proton.spec
@@ -1,13 +1,14 @@
+# Define pkgdocdir for releases that don't define it already
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
Name: perl-qpid_proton
-Version: 0.4
-Release: 1.1%{?dist}
+Version: 0.5
+Release: 1%{?dist}
Summary: Perl language bindings for Qpid Proton
License: ASL 2.0
URL: http://qpid.apache.org/proton/
-# The sources will show up in the official Proton release mirrors
-# after 0.3.
-Source0: perl-qpid_proton-%{version}.tar.gz
+Source0: http://www.apache.org/dist/qpid/proton/%{version}/qpid-proton-%{version}.tar.gz
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: swig
@@ -26,22 +27,27 @@ Requires: qpid-proton-c = %{version}
%prep
-%setup -q
+%setup -q -n qpid-proton-%{version}
+pushd proton-c/bindings/perl
swig -perl -I/usr/include -o cproton_perl.c perl.i
-
+popd
%build
+pushd proton-c/bindings/perl
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
+popd
%install
rm -rf $RPM_BUILD_ROOT
+pushd proton-c/bindings/perl
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+popd
%{_fixperms} $RPM_BUILD_ROOT/*
# delete the podfile
@@ -49,15 +55,22 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/perllocal.pod
%check
+pushd proton-c/bindings/perl
make test
+popd
%files
%doc LICENSE TODO README
%{perl_vendorarch}/*
+%doc %{_mandir}/man3/qpid\:\:proton*
%changelog
+* Thu Aug 29 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.5-1
+- Rebased on Proton 0.5.
+- Changed package to use the single upstream source rather than separate Perl sources.
+
* Mon Apr 1 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.4-1.1
- Changed the qpid-proton dependency to qpid-proton-c.
- Changed the qpid-proton-devel dependency to qpid-proton-c-devel.
diff --git a/sources b/sources
index d2a0c3d..4cb15ca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-124e3a6e1a8f3f73519b12cf38f49622 perl-qpid_proton-0.4.tar.gz
+fb2dc704e4d2727d664966f301bfb017 qpid-proton-0.5.tar.gz
More information about the scm-commits
mailing list