File perl-qpid.spec of Package qpid

# spec file for package perl-qpid
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           perl-qpid
Version:        0.28
Release:        0
Summary:        Perl bindings for the Qpid messaging framework
License:        Apache-2.0
Group:          Development/Libraries/Perl
BuildRequires:  gcc-c++
BuildRequires:  qpid-cpp-client-devel = %{version}
BuildRequires:  swig >= 2.0.9
Requires:       perl = %{perl_version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Perl bindings for the Qpid messaging framework.

%setup -q -n qpid-%{version}

pushd cpp/bindings/qpid/perl
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

pushd cpp/bindings/qpid/perl
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
rm -rf %{buildroot}%{perl_vendorarch}/auto/


openSUSE Build Service is sponsored by