forked from pool/perl-Net-SSLeay
135cb532c2
Copy from devel:languages:perl/perl-Net-SSLeay based on submit request 43325 from user computersalat OBS-URL: https://build.opensuse.org/request/show/43325 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-SSLeay?expand=0&rev=9
92 lines
2.6 KiB
RPMSpec
92 lines
2.6 KiB
RPMSpec
#
|
|
# 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
|
|
|
|
%bcond_with test
|
|
|
|
Name: perl-Net-SSLeay
|
|
%define cpan_name Net-SSLeay
|
|
Summary: Perl extension for using OpenSSL
|
|
Version: 1.36
|
|
Release: 2
|
|
License: OpenSSL License, Original SSLeay License
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Net-SSLeay/
|
|
#Source: http://www.cpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
Patch0: %{name}-%{version}.diff
|
|
Patch1: %{name}-%{version}-undefined.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: openssl openssl-devel
|
|
BuildRequires: perl
|
|
%if 0%{?suse_version} < 1120
|
|
BuildRequires: perl-macros
|
|
%endif
|
|
%if %{with test}
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
BuildRequires: perl(Test::Warn)
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
%endif
|
|
#
|
|
Requires: perl = %{perl_version}
|
|
|
|
%description
|
|
There is a related module called Net::SSLeay::Handle included in this
|
|
distribution that you might want to use instead. It has its own pod
|
|
documentation.
|
|
|
|
Authors:
|
|
--------
|
|
Sampo Kellomaki <sampo@iki.fi>
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
%patch0
|
|
%patch1
|
|
# 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} -i -e "s@/usr/local/bin/perl@%{__perl}@g" $f
|
|
done
|
|
# fix perm
|
|
pushd examples
|
|
%{__chmod} 0644 *.pl
|
|
popd
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes Credits QuickRef README TODO examples
|
|
|
|
%changelog
|