commit da9d3f1185e61e6e5938daa9907222f7d3f14272 Author: Darryl L. Pierce <mcpierce@xxxxxxxxx> 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 e568c7d..1861e6b 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: 3.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@xxxxxxxxxx> - 0.5-1 +- Rebased on Proton 0.5. +- Changed package to use the single upstream source rather than separate Perl sources. + * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.4-3.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 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 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel