3df20db
# Disable network tests by default
3df20db
%bcond_with network_tests
3df20db
66f492d
Name:           perl-Crypt-SSLeay
d9db9d3
Summary:        OpenSSL glue that provides LWP with HTTPS support
b2d9aa5
Version:        0.72
1af5655
Release:        2%{?dist}
1af5655
License:        Artistic 2.0
66f492d
Group:          Development/Libraries
dee9bad
Source0:        http://www.cpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-%{version}.tar.gz
66f492d
URL:            http://search.cpan.org/dist/Crypt-SSLeay/
66f492d
BuildRequires:  openssl-devel
3df20db
BuildRequires:  perl
b2d9aa5
BuildRequires:  perl(ExtUtils::CBuilder) >= 0.280205
66f492d
BuildRequires:  perl(ExtUtils::MakeMaker)
3df20db
# ExtUtils::MakeMaker::Coverage is useless
3df20db
BuildRequires:  perl(Getopt::Long)
b2d9aa5
BuildRequires:  perl(Path::Class)
3df20db
BuildRequires:  perl(strict)
3df20db
BuildRequires:  perl(warnings)
3df20db
# Run-time:
3df20db
BuildRequires:  /etc/pki/tls/certs/ca-bundle.crt
3df20db
BuildRequires:  perl(Carp)
3df20db
# DynaLoader not needed if XSLoader is available
b2d9aa5
BuildRequires:  perl(Exporter)
3df20db
BuildRequires:  perl(IO::Socket)
Petr Šabata 3208b80
BuildRequires:  perl(MIME::Base64)
Petr Šabata 3208b80
BuildRequires:  perl(Socket)
3df20db
BuildRequires:  perl(vars)
3df20db
BuildRequires:  perl(XSLoader)
3df20db
# Tests:
3df20db
BuildRequires:  perl(Test::More) >= 0.88
b2d9aa5
BuildRequires:  perl(Try::Tiny) >= 0.19
3df20db
# Optional tests:
Petr Šabata 3208b80
BuildRequires:  perl(Test::Pod)
3df20db
BuildRequires:  perl(Test::Pod::Coverage)
3df20db
%if %{with network_tests}
3df20db
# Network tests:
3df20db
BuildRequires:  perl(constant)
3df20db
BuildRequires:  perl(HTTP::Request)
3df20db
BuildRequires:  perl(LWP::Protocol::https) >= 6.02
3df20db
BuildRequires:  perl(LWP::UserAgent)
3df20db
%endif
Petr Šabata 3208b80
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Petr Sabata 42adaa4
Requires:       /etc/pki/tls/certs/ca-bundle.crt
3df20db
Requires:       perl(XSLoader)
e91ae65
6fb0f8b
# RPM 4.8 style
dee9bad
%{?filter_setup:
dee9bad
%filter_from_provides /^perl(DB)/d
dee9bad
}
6fb0f8b
# RPM 4.9 style
6fb0f8b
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(DB\\)
6fb0f8b
%{?perl_default_filter}
cvsdist 9deba2f
cvsdist 9deba2f
%description
d9db9d3
These Perl modules provide support for the HTTPS protocol under the World-Wide
d9db9d3
Web library for Perl (LWP), so that a LWP::UserAgent can make HTTPS GET, HEAD,
d9db9d3
and POST requests.
cvsdist 9deba2f
d9db9d3
This package contains Net::SSL module which is automatically loaded by
d9db9d3
LWP::Protocol::https on HTTPS requests, and provides the necessary SSL glue
d9db9d3
for that module to work.
cvsdist 9deba2f
cvsdist 9deba2f
%prep
cvsdist 9deba2f
%setup -q -n Crypt-SSLeay-%{version} 
71c59b3
9cac15d
# Placate rpmlint
9cac15d
chmod -c -x lib/Net/SSL.pm
9cac15d
cvsdist 9deba2f
%build
cvsdist e28e813
if pkg-config openssl ; then
cvsdist e28e813
  export INC="$CFLAGS `pkg-config --cflags-only-I openssl`"
cvsdist e28e813
  export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
cvsdist e28e813
fi
e91ae65
0d69022
perl Makefile.PL --%{!?with_network_tests:no-}live-tests \
3df20db
    INC="$INC" LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
3df20db
    
d44cd00
make %{?_smp_mflags}
cvsdist 9deba2f
cvsdist 9deba2f
%install
Petr Šabata 3208b80
make pure_install DESTDIR=%{buildroot}
Petr Šabata 3208b80
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
Petr Šabata 3208b80
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
Petr Šabata af8fda7
%{_fixperms} %{buildroot}
Petr Šabata 3208b80
chmod -R u+w %{buildroot}/*
5b286fc
chmod -R 644 eg/*
5b286fc
chmod -R 644 certs/*
Petr Sabata 42adaa4
rm certs/ca-bundle.crt
Petr Sabata 42adaa4
ln -s /etc/pki/tls/certs/ca-bundle.crt certs/ca-bundle.crt
e91ae65
d44cd00
%check
d44cd00
make test
cvsdist 9deba2f
d44cd00
%files
Petr Šabata af8fda7
%doc Changes eg/* certs/*
d44cd00
%{perl_vendorarch}/auto/Crypt/
d44cd00
%{perl_vendorarch}/Crypt/
d44cd00
%{perl_vendorarch}/Net/
dee9bad
%{_mandir}/man3/Crypt::SSLeay.3pm*
b2d9aa5
%{_mandir}/man3/Crypt::SSLeay::Version.3pm*
dee9bad
%{_mandir}/man3/Net::SSL.3pm*
cvsdist 9deba2f
cvsdist 9deba2f
%changelog
1af5655
* Mon Apr 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.72-2
1af5655
- Correct License tag, which should be Artistic 2.0
1af5655
b2d9aa5
* Mon Apr 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.72-1
b2d9aa5
- 0.72 bump
b2d9aa5
f69fef7
* Wed Apr 16 2014 Petr Pisar <ppisar@redhat.com> - 0.64-6
f69fef7
- Make build script non-interactive
d9db9d3
- Update package description
3df20db
- Specify all dependencies
f69fef7
aae3f6f
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 0.64-5
aae3f6f
- Perl 5.18 rebuild
aae3f6f
3c87e7d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.64-4
3c87e7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3c87e7d
46973a9
* Wed Aug  8 2012 Paul Howarth <paul@city-fan.org> - 0.64-3
9cac15d
- Remove circular BR: perl(Net::SSL) provided by this package
9cac15d
- Placate rpmlint regarding file permissions
9cac15d
- Don't need to remove empty directories from the buildroot
9cac15d
Petr Šabata af8fda7
* Tue Aug 07 2012 Petr Šabata <contyk@redhat.com> - 0.64-1
Petr Šabata af8fda7
- 0.64 bump
Petr Šabata af8fda7
Petr Šabata 3208b80
* Mon Jul 30 2012 Petr Šabata <contyk@redhat.com> - 0.60-1
Petr Šabata 3208b80
- 0.60 bugfix bump
Petr Šabata 3208b80
- Drop command macros and modernize the spec a bit
Petr Šabata 3208b80
f7346b3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-11
f7346b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7346b3
5f725d2
* Fri Jul 20 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.58-10
5f725d2
- Conditionalize ExtUtils::MakeMaker::Coverage
5f725d2
e5fda6a
* Mon Jun 25 2012 Petr Pisar <ppisar@redhat.com> - 0.58-9
e5fda6a
- Perl 5.16 rebuild
e5fda6a
6690e22
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-8
6690e22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6690e22
Petr Sabata 42adaa4
* Wed Sep 07 2011 Petr Sabata <contyk@redhat.com> - 0.58-7
Petr Sabata 42adaa4
- Link to the ca-certificates ca-bundle.crt instead of shipping our own,
Petr Sabata 42adaa4
  outdated copy (#734385)
Petr Sabata 42adaa4
6fb0f8b
* Fri Jul 22 2011 Petr Pisar <ppisar@redhat.com> - 0.58-6
6fb0f8b
- RPM 4.9 dependency filtering added
6fb0f8b
Petr Sabata 64eda11
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.58-5
Petr Sabata 64eda11
- Perl mass rebuild
Petr Sabata 64eda11
dee9bad
* Tue Apr 19 2011 Paul Howarth <paul@city-fan.org> - 0.58-4
dee9bad
- Remove buildroot specification and cleaning, not needed for modern rpmbuild
dee9bad
- Use %%{?perl_default_filter}
dee9bad
- Filter the perl(DB) provide in a way that works with rpm >= 4.9
dee9bad
- Use DESTDIR rather than PERL_INSTALL_ROOT
dee9bad
- Fix line endings on documentation
dee9bad
- Fix upstream source URL
dee9bad
- Fix argument order for find with -depth
dee9bad
5370de3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-3
5370de3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5370de3
3dc143e
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.58-2
dee9bad
- Rebuild to fix problems with vendorarch/lib (#661697)
3dc143e
c31b71b
* Wed Sep  1 2010 Petr Sabata <psabata@redhat.com> - 0.58-1
c31b71b
- New upstream release, v0.58
c31b71b
- removing perl-Crypt-SSLeay-0.57-live-tests.patch, fixed in upstream
c31b71b
- removing perl-Crypt-SSLeay-Makefile_ssl1.patch, fixed in upstream
c31b71b
6c05a4d
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.57-17
6c05a4d
- Mass rebuild with perl-5.12.0
6c05a4d
b643610
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.57-16
b643610
- rebuild against perl 5.10.1
b643610
d9f8867
* Wed Nov 25 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.57-14
d9f8867
- change Makefile for openssl 1.0, which couldn't be found properly before
d9f8867
8342e9a
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.57-13
8342e9a
- rebuilt with new openssl
8342e9a
ece5d59
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.57-12
ece5d59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ece5d59
75577ed
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.57-11
75577ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
75577ed
86d41b7
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.57-10
86d41b7
- rebuild with new openssl
86d41b7
5b286fc
* Mon Oct  6 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.57-9
5b286fc
- add examples into doc
5b286fc
a8972c8
* Wed Sep 24 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.57-8
a8972c8
- fix patches for fuzz
a8972c8
d582c34
* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.57-7
d582c34
- rebuild for new perl
d582c34
906406d
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.57-6
906406d
- Autorebuild for GCC 4.3
906406d
b328759
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 0.57-5
b328759
 - Rebuild for deps
b328759
ae864e0
* Wed Dec  5 2007 Robin Norwood <rnorwood@redhat.com> - 0.57-4
ae864e0
- Rebuild for new openssl
ae864e0
1721f1e
* Sat Oct 27 2007 Robin Norwood <rnorwood@redhat.com> - 0.57-3
1721f1e
- Remove unnecessary BR: pkgconfig
1721f1e
66f492d
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 0.57-2
66f492d
- Fix buildroot per package review
66f492d
- Resolves: bz#226248
66f492d
e91ae65
* Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 0.57-1
e91ae65
- Update to latest upstream version.
e91ae65
- Remove old patch (patch applied to upstream)
e91ae65
- Several fixes for package review:
e91ae65
- Fixed BuildRequires (added Test::Pod and LWP::UserAgent)
e91ae65
- Apply patch to avoid prompting for input when building Makefile
e91ae65
- Fix defattr line
e91ae65
- Resolves: bz#226248
e91ae65
5949788
* Mon Aug 27 2007 Robin Norwood <rnorwood@redhat.com> - 0.56-2
5949788
- perl(ExtUtils::MakeMaker::Coverage) is now available
5949788
71f8ec1
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.56-1
71f8ec1
- 0.56 is the latest CPAN version, not 0.55
71f8ec1
e94f9de
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.55-2
8621fc7
- Update to latest version from CPAN: 0.55
8621fc7
- Remove two old patches, update lib64 patch for Makefile.PL changes.
8621fc7
52bea4e
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.53-1
52bea4e
- New version: 0.53
52bea4e
4961548
* Mon Nov 27 2006 Robin Norwood <rnorwood@redhat.com> - 0.51-12
4961548
- Resolves: bug#217138
4961548
- fix a segfault on x86_64
4961548
71c59b3
* Tue Oct 17 2006 Robin Norwood <rnorwood@redhat.com> - 0.51-10
71c59b3
- Filter out Provides perl(DB)
71c59b3
- bug #205562
71c59b3
074cea2
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.51-9.2.2.1
074cea2
- rebuild
074cea2
b5b7d80
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.51-9.2.2
b5b7d80
- bump again for double-long bug on ppc(64)
b5b7d80
d15444f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.51-9.2.1
d15444f
- rebuilt for new gcc4.1 snapshot and glibc changes
d15444f
jvdias 1489588
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.51-9.2
jvdias 1489588
- rebuild for new perl-5.8.8 / gcc / glibc
jvdias 1489588
8549b16
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
4c57646
- rebuilt for new gcc
4c57646
4c57646
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
8549b16
- rebuilt for new gcj
8549b16
a715f4f
* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 0.51-9
a715f4f
- rebuilt against new openssl
d7af37a
- added missing SSL_library_init()
a715f4f
d44cd00
* Sat Sep 24 2005 Ville Skyttä <ville.skytta at iki.fi> 0.51-8
d44cd00
- Own more installed dirs (#73908).
d44cd00
- Enable rpmbuild's internal dependency generator, drop unneeded dependencies.
d44cd00
- Require perl(:MODULE_COMPAT_*).
d44cd00
- Run tests in the %%check section.
d44cd00
- Fix License, Source0, URL, and Group tags.
d44cd00
d44cd00
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com> 0.51-7
0a1f2b4
- remove brp-compress
0a1f2b4
bb94c2b
* Tue Mar  8 2005 Joe Orton <jorton@redhat.com> 0.51-6
bb94c2b
- rebuild
bb94c2b
cvsdist d4b1af9
* Tue Aug 31 2004 Chip Turner <cturner@redhat.com> 0.51-5
cvsdist d4b1af9
- build for FC3
cvsdist d4b1af9
cvsdist d4b1af9
* Tue Aug 31 2004 Chip Turner <cturner@redhat.com> 0.51-4
cvsdist d4b1af9
- build for RHEL3 U4
cvsdist d4b1af9
cvsdist 8c12a41
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 8c12a41
- rebuilt
cvsdist 8c12a41
cvsdist 64be312
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 64be312
- rebuilt
cvsdist 64be312
cvsdist 64be312
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 0.51-1
cvsdist 64be312
- update to upstream 0.51
cvsdist 64be312
cvsdist 9cb7bbb
* Thu Jun 05 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9cb7bbb
- rebuilt
cvsdist 9cb7bbb
cvsdist e28e813
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com>
cvsdist e28e813
- pass openssl includes to make as INC and ldflags in as LDFLAGS
cvsdist e28e813
cvsdist e28e813
* Thu Nov 21 2002 Chip Turner <cturner@redhat.com>
cvsdist e28e813
- patch to support /usr/lib64 before /usr/lib
cvsdist e28e813
cvsdist e28e813
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
cvsdist e28e813
- rebuild
cvsdist e28e813
cvsdist 9deba2f
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
cvsdist 9deba2f
- automated release bump and build
cvsdist 9deba2f
cvsdist 9deba2f
* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
cvsdist 9deba2f
- description update
cvsdist 9deba2f
cvsdist 9deba2f
* Tue Jun 25 2002 Chip Turner <cturner@redhat.com>
cvsdist 9deba2f
- move to 0.39
cvsdist 9deba2f
cvsdist 9deba2f
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 9deba2f
- automated rebuild
cvsdist 9deba2f
cvsdist 9deba2f
* Fri Dec 7 2001 root <root@redhat.com>
cvsdist 9deba2f
- Spec file was autogenerated.