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

#
# spec file for package perl-Net-SSLeay (Version 1.36)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Net-SSLeay
BuildRequires:  openssl openssl-devel perl-Test-Exception
Version:        1.36
Release:        1
Provides:       p_ssleay perl-Net_SSLeay = %{version}
Obsoletes:      p_ssleay perl-Net_SSLeay < %{version}
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://cpan.org/modules/by-module/Net
Summary:        Net::SSLeay Perl Module
Source:         Net-SSLeay-%{version}.tar.bz2
Patch0:         %{name}-%{version}.diff
Patch1:         %{name}-%{version}-undefined.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Net::SSLeay Perl module for using OpenSSL.



Authors:
--------
    Sampo Kellomaki <sampo@iki.fi>

%prep
%setup -q -n Net-SSLeay-%{version}
%patch0
%patch1

%build
# replace rest of /usr/local/bin/perl with /usr/bin/perl
for f in `find . -type f -exec grep -l /usr/local/bin/perl \{\} \;` ; do
	sed -e s@/usr/local/bin/perl@/usr/bin/perl@g $f > $f.tmp
	mv $f.tmp $f
done
perl Makefile.PL -- OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}

%check
make test

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Changes Credits QuickRef README examples
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net
/var/adm/perl-modules/%{name}

%changelog
openSUSE Build Service is sponsored by