1 |
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) |
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) |
2 |
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) |
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) |
3 |
|
|
4 |
%define real_name IO-Socket-SSL |
Summary: SSL sockets with IO::Socket interface |
5 |
|
Name: perl-IO-Socket-SSL |
6 |
Summary: Nearly transparent SSL encapsulation for IO::Socket::INET |
Version: 2.022 |
7 |
Name: perl-IO-Socket-SSL |
Release: 1%{?dist} |
8 |
Version: 1.74 |
License: GPL+ or Artistic |
9 |
Release: 1%{?dist} |
Group: Development/Libraries |
10 |
License: Artistic/GPL |
URL: http://search.cpan.org/dist/IO-Socket-SSL/ |
11 |
Group: Applications/CPAN |
|
12 |
URL: http://search.cpan.org/dist/IO-Socket-SSL/ |
Packager: Contribs.org <http://contribs.org> |
13 |
|
Vendor: Koozali SME Server, http://mirror.contribs.org/releases |
14 |
Packager: Contribs.org <http://contribs.org> |
|
15 |
Vendor: Koozali SME Server, http://mirror.contribs.org/releases |
Source: http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz |
16 |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
17 |
Source: http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz |
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
BuildArch: noarch |
19 |
|
BuildRequires: perl(Net::SSLeay) >= 1.46 |
20 |
BuildArch: noarch |
BuildRequires: perl(Scalar::Util) |
21 |
BuildRequires: perl(Net::SSLeay) >= 1.21 |
BuildRequires: perl(ExtUtils::MakeMaker) |
22 |
BuildRequires: perl(Scalar::Util) |
BuildRequires: perl(Test::More) |
23 |
BuildRequires: perl(ExtUtils::MakeMaker) |
Requires: perl(Net::SSLeay) >= 1.46 |
24 |
Requires: perl(Net::SSLeay) >= 1.21 |
Requires: perl(Scalar::Util) |
25 |
Requires: perl(Scalar::Util) |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|
|
|
|
Provides: perl-Net-Nessus-XMLRPC-alternative = 0.20 |
|
|
|
|
|
%filter_from_requires /^perl*/d |
|
|
%filter_setup |
|
|
|
|
26 |
|
|
27 |
%description |
%description |
28 |
Nearly transparent SSL encapsulation for IO::Socket::INET. |
IO::Socket::SSL makes using SSL/TLS much easier by wrapping the necessary |
29 |
|
functionality into the familiar IO::Socket interface and providing secure |
30 |
|
defaults whenever possible. This way, existing applications can be made SSL- |
31 |
|
aware without much effort, at least if you do blocking I/O and don't use |
32 |
|
select or poll. |
33 |
|
|
34 |
%prep |
%prep |
35 |
%setup -q -n %{real_name}-%{version} |
%setup -q -n IO-Socket-SSL-%{version} |
36 |
|
|
37 |
%build |
%build |
38 |
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
39 |
%{__make} %{?_smp_mflags} |
make %{?_smp_mflags} |
40 |
|
|
41 |
%install |
%install |
42 |
%{__rm} -rf %{buildroot} |
rm -rf $RPM_BUILD_ROOT |
43 |
%{__make} pure_install |
|
44 |
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
45 |
|
|
46 |
### Clean up buildroot |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
47 |
find %{buildroot} -name .packlist -exec %{__rm} {} \; |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
48 |
|
|
49 |
### Clean up docs |
%{_fixperms} $RPM_BUILD_ROOT/* |
50 |
find docs/ example/ -type f -exec %{__chmod} a-x {} \; |
|
51 |
|
%check |
52 |
|
make test |
53 |
|
|
54 |
%clean |
%clean |
55 |
%{__rm} -rf %{buildroot} |
%{__rm} -rf %{buildroot} |
56 |
|
|
57 |
%files |
%files |
58 |
%defattr(-, root, root, 0755) |
%defattr(-,root,root,-) |
59 |
%doc BUGS Changes MANIFEST META.yml README* docs/ example/ |
%doc BUGS Changes META.json README README.Win32 |
60 |
%doc %{_mandir}/man3/IO::Socket::SSL.3pm* |
%{perl_vendorlib}/* |
61 |
%dir %{perl_vendorlib}/IO/ |
%{_mandir}/man3/* |
|
%dir %{perl_vendorlib}/IO/Socket/ |
|
|
%{perl_vendorlib}/IO/Socket/SSL.pm |
|
62 |
|
|
63 |
%changelog |
%changelog |
64 |
|
* Tue Feb 9 2016 Daniel Berteaud <daniel@firewall-services.com> - 2.022-1.sme |
65 |
|
- Cleanup the spec file and update to 2.022, for Mojolicious [SME: 7819] |
66 |
|
|
67 |
* Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> - 1.74-1.sme |
* Tue May 19 2015 Daniel Berteaud <daniel@firewall-services.com> - 1.74-1.sme |
68 |
- new upstream release [SME: 8926] |
- new upstream release [SME: 8926] |
69 |
|
|