rpms/perl-Crypt-SSLeay/devel perl-Crypt-SSLeay-0.57-live-tests.patch, NONE, 1.1 perl-Crypt-SSLeay.spec, 1.28, 1.29 perl-Crypt-SSLeay-lib64.patch, 1.2, NONE
Robin Norwood (rnorwood)
fedora-extras-commits at redhat.com
Thu Oct 25 18:08:51 UTC 2007
Author: rnorwood
Update of /cvs/pkgs/rpms/perl-Crypt-SSLeay/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4591
Modified Files:
perl-Crypt-SSLeay.spec
Added Files:
perl-Crypt-SSLeay-0.57-live-tests.patch
Removed Files:
perl-Crypt-SSLeay-lib64.patch
Log Message:
Update to latest upstream version, and apply package review fixes.
perl-Crypt-SSLeay-0.57-live-tests.patch:
--- NEW FILE perl-Crypt-SSLeay-0.57-live-tests.patch ---
--- Crypt-SSLeay-0.57/Makefile.PL Mon Sep 17 16:36:59 2007
+++ Crypt-SSLeay-0.57/Makefile.PL Thu Oct 25 13:45:53 2007
@@ -9,12 +9,13 @@
eval "use ExtUtils::MakeMaker::Coverage";
$@ or print "Adding testcover target\n";
-use vars qw($opt_default $opt_libpath $opt_static);
+use vars qw($opt_default $opt_libpath $opt_static $opt_live_tests);
GetOptions(
"default", \$opt_default,
"lib=s", \$opt_libpath,
"static", \$opt_static,
+ "live-tests!", \$opt_live_tests,
);
$opt_default ||= $ENV{CRYPT_SSLEAY_DEFAULT};
@@ -275,17 +276,23 @@
cc $Config{cc}
INFO
- print <<"INFO";
+ my $network_tests = 'n';
+ if (not defined $opt_live_tests) {
+ print <<"INFO";
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
-
INFO
- my $network_tests = prompt
- "Do you want to run the live tests (y/N) ?",
- 'N';
+
+ $network_tests = prompt "Do you want to run the live tests (y/N) ?", 'N';
+ }
+ elsif ($opt_live_tests) {
+ $network_tests = 'y';
+ }
+
print OUT "network_tests ", ($network_tests =~ /y/i) ? 1 : 0, "\n";
+
close OUT;
}
Index: perl-Crypt-SSLeay.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Crypt-SSLeay/devel/perl-Crypt-SSLeay.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- perl-Crypt-SSLeay.spec 27 Aug 2007 15:33:53 -0000 1.28
+++ perl-Crypt-SSLeay.spec 25 Oct 2007 18:08:16 -0000 1.29
@@ -1,18 +1,24 @@
-Name: perl-Crypt-SSLeay
-Summary: Crypt::SSLeay - OpenSSL glue that provides LWP https support
-Version: 0.56
-Release: 2%{?dist}
-License: GPL+ or Artistic
-Group: Development/Libraries
-Source0: http://www.cpan.org/authors/id/D/DL/DLAND/Crypt-SSLeay-%{version}.tar.gz
-Patch0: perl-Crypt-SSLeay-cryptdef.patch
-Patch1: perl-Crypt-SSLeay-lib64.patch
-URL: http://search.cpan.org/dist/Crypt-SSLeay/
-BuildRoot: %{_tmppath}/perl-Crypt-SSLeay-buildroot/
-BuildRequires: perl >= 2:5.8.0-61 openssl-devel perl-URI pkgconfig
-BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::Pod::Coverage)
+Name: perl-Crypt-SSLeay
+Summary: Crypt::SSLeay - OpenSSL glue that provides LWP https support
+Version: 0.57
+Release: 1%{?dist}
+License: GPL+ or Artistic
+Group: Development/Libraries
+Source0: http://www.cpan.org/authors/id/D/DL/DLAND/Crypt-SSLeay-%{version}.tar.gz
+Patch0: perl-Crypt-SSLeay-cryptdef.patch
+Patch1: perl-Crypt-SSLeay-0.57-live-tests.patch
+URL: http://search.cpan.org/dist/Crypt-SSLeay/
+BuildRoot: %{_tmppath}/perl-Crypt-SSLeay-buildroot/
+BuildRequires: openssl-devel
+BuildRequires: pkgconfig
+BuildRequires: perl(URI)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(ExtUtils::MakeMaker::Coverage)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(LWP::UserAgent)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
%description
This perl module provides support for the https protocol under LWP, so
@@ -24,10 +30,11 @@
loaded by LWP::Protocol::https on https requests, and provides the
necessary SSL glue for that module to work.
+
%prep
%setup -q -n Crypt-SSLeay-%{version}
%patch0 -p1 -b .cryptdef
-%patch1 -p1 -b .lib64
+%patch1 -p1
# Filter unwanted Provides:
cat << EOF > %{name}-prov
@@ -41,17 +48,20 @@
%build
-export CFLAGS="$RPM_OPT_FLAGS"
if pkg-config openssl ; then
export INC="$CFLAGS `pkg-config --cflags-only-I openssl`"
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi
-%{__perl} Makefile.PL INC="$INC" LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor < /dev/null
+
+%{__perl} Makefile.PL --default --no-live-tests INC="$INC" \
+ LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
+
%clean
rm -rf $RPM_BUILD_ROOT
+
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
@@ -60,18 +70,30 @@
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
+
%check
make test
+
%files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
%doc README Changes
%{perl_vendorarch}/auto/Crypt/
%{perl_vendorarch}/Crypt/
%{perl_vendorarch}/Net/
%{_mandir}/man3/*.3*
+
%changelog
+* Thu Oct 25 2007 Robin Norwood <rnorwood at redhat.com> - 0.57-1
+- Update to latest upstream version.
+- Remove old patch (patch applied to upstream)
+- Several fixes for package review:
+- Fixed BuildRequires (added Test::Pod and LWP::UserAgent)
+- Apply patch to avoid prompting for input when building Makefile
+- Fix defattr line
+- Resolves: bz#226248
+
* Mon Aug 27 2007 Robin Norwood <rnorwood at redhat.com> - 0.56-2
- perl(ExtUtils::MakeMaker::Coverage) is now available
--- perl-Crypt-SSLeay-lib64.patch DELETED ---
More information about the fedora-extras-commits
mailing list