forked from pool/perl-Net-SSLeay
license update: OpenSSL OBS-URL: https://build.opensuse.org/request/show/124911 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-SSLeay?expand=0&rev=17
88 lines
2.4 KiB
RPMSpec
88 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-SSLeay
|
|
#
|
|
# Copyright (c) 2012 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/
|
|
#
|
|
|
|
|
|
%bcond_with test
|
|
|
|
Name: perl-Net-SSLeay
|
|
Version: 1.42
|
|
Release: 0
|
|
License: OpenSSL
|
|
%define cpan_name Net-SSLeay
|
|
Summary: Perl extension for using OpenSSL
|
|
Url: http://search.cpan.org/dist/Net-SSLeay/
|
|
Group: Development/Libraries/Perl
|
|
#Source: http://www.cpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
Patch0: perl-Net-SSLeay-1.36.diff
|
|
Patch1: perl-Net-SSLeay-1.36-undefined.diff
|
|
BuildRequires: openssl
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
%if %{with test}
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
BuildRequires: perl(Test::Warn)
|
|
%endif
|
|
#
|
|
|
|
%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.
|
|
|
|
%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
|
|
# delete .orig files created by patches
|
|
find . -type f -name "*.orig" -delete
|
|
# fix perm
|
|
pushd examples
|
|
chmod 0644 *.pl
|
|
popd
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -Wall"
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes Credits QuickRef README TODO examples
|
|
|
|
%changelog
|