File perl-Net-XMPP.spec of Package perl-Net-XMPP

# spec file for package perl-Net-XMPP
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-Net-XMPP
%define cpan_name Net-XMPP
Summary:        XMPP Perl Library
Version:        1.02
Release:        125
License:        LGPL-2.1+
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl(Module::Build)
BuildRequires:  perl-macros
BuildRequires:  perl(Digest::SHA1) >= 1.02
BuildRequires:  perl(XML::Stream) >= 1.22
Requires:       perl(Digest::SHA1) >= 1.02
Requires:       perl(XML::Stream) >= 1.22

Net::XMPP is a convenient tool to use for any perl script that would
like to utilize the XMPP Instant Messaging protocol.  While not a
client in and of itself, it provides all of the necessary back-end
functions to make a CGI client or command-line perl client feasible  and
easy to use.  Net::XMPP is a wrapper around the rest of the  official
Net::XMPP::xxxxxx packages.

    Ryan Eatmon <>

%setup -q -n %{cpan_name}-%{version}
#rpmlint: wrong-file-end-of-line-encoding
%{__perl} -p -i -e "s|\r\n|\n|" stderr

%{__perl} Build.PL installdirs=vendor

./Build test

./Build install destdir=$RPM_BUILD_ROOT create_packlist=0

%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc CHANGES examples LICENSE.LGPL README stderr

openSUSE Build Service is sponsored by