]> git.pld-linux.org Git - packages/perl-libwww.git/commitdiff
- removed rpmperl-automation-workaround patch, use noautoreq macro instead
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 5 Apr 2001 01:15:41 +0000 (01:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-libwww-rpmperl-automation-workaround.patch -> 1.2
    perl-libwww.spec -> 1.30

perl-libwww-rpmperl-automation-workaround.patch [deleted file]
perl-libwww.spec

diff --git a/perl-libwww-rpmperl-automation-workaround.patch b/perl-libwww-rpmperl-automation-workaround.patch
deleted file mode 100644 (file)
index e2540b0..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -urN libwww-perl-5.50.orig/bin/lwp-request.PL libwww-perl-5.50/bin/lwp-request.PL
---- libwww-perl-5.50.orig/bin/lwp-request.PL   Sun Feb 11 18:30:04 2001
-+++ libwww-perl-5.50/bin/lwp-request.PL        Sun Feb 11 18:39:11 2001
-@@ -441,18 +441,15 @@
-     if ($response->is_success) {
-       unless ($options{'d'}) {
-           if ($options{'o'} &&
--              $response->content_type eq 'text/html') {
--              require HTML::Parse;
-+              $response->content_type eq 'text/html') { require HTML::Parse;
-               my $html = HTML::Parse::parse_html($response->content);
-               {
--                  $options{'o'} eq 'ps' && do {
--                      require HTML::FormatPS;
-+                  $options{'o'} eq 'ps' && do { require HTML::FormatPS;
-                       my $f = HTML::FormatPS->new;
-                       print $f->format($html);
-                       last;
-                   };
--                  $options{'o'} eq 'text' && do {
--                      require HTML::FormatText;
-+                  $options{'o'} eq 'text' && do { require HTML::FormatText;
-                       my $f = HTML::FormatText->new;
-                       print $f->format($html);
-                       last;
-diff -urN libwww-perl-5.50.orig/lib/LWP/Protocol/GHTTP.pm libwww-perl-5.50/lib/LWP/Protocol/GHTTP.pm
---- libwww-perl-5.50.orig/lib/LWP/Protocol/GHTTP.pm    Sun Feb 11 18:30:04 2001
-+++ libwww-perl-5.50/lib/LWP/Protocol/GHTTP.pm Sun Feb 11 18:39:44 2001
-@@ -17,9 +17,7 @@
- @ISA=qw(LWP::Protocol);
- require HTTP::Response;
--require HTTP::Status;
--
--use HTTP::GHTTP qw(METHOD_GET METHOD_HEAD METHOD_POST);
-+require HTTP::Status; use HTTP::GHTTP qw(METHOD_GET METHOD_HEAD METHOD_POST);
- my %METHOD =
- (
-diff -urN libwww-perl-5.50.orig/lib/LWP/Protocol/https.pm libwww-perl-5.50/lib/LWP/Protocol/https.pm
---- libwww-perl-5.50.orig/lib/LWP/Protocol/https.pm    Sun Feb 11 18:30:04 2001
-+++ libwww-perl-5.50/lib/LWP/Protocol/https.pm Sun Feb 11 18:38:20 2001
-@@ -11,8 +11,7 @@
-     $SSL_CLASS = "IO::Socket::SSL"; # it was already loaded
- } else {
-     eval { require Net::SSL; };     # from Crypt-SSLeay
--    if ($@) {
--      require IO::Socket::SSL;
-+    if ($@) {require IO::Socket::SSL;
-       $SSL_CLASS = "IO::Socket::SSL";
-     } else {
-       $SSL_CLASS = "Net::SSL";
-diff -urN libwww-perl-5.50.orig/lib/LWP/Protocol/mailto.pm libwww-perl-5.50/lib/LWP/Protocol/mailto.pm
---- libwww-perl-5.50.orig/lib/LWP/Protocol/mailto.pm   Sun Feb 11 18:30:04 2001
-+++ libwww-perl-5.50/lib/LWP/Protocol/mailto.pm        Sun Feb 11 18:40:18 2001
-@@ -52,9 +52,7 @@
-                                 "LWP::file::request called for '$scheme'";
-     }
-     if ($^O eq "MacOS") {
--      eval {
--          require Mail::Internet;
--      };
-+      eval { require Mail::Internet; };
-       if($@) {
-           return new HTTP::Response &HTTP::Status::RC_INTERNAL_SERVER_ERROR,
-                      "You don't have MailTools installed";
index 042546a478ebfeea1f00f9b74a365970d8d22ecc..94bfaa136b43262c092e7f9a1a8fa276f9a3344a 100644 (file)
@@ -9,7 +9,6 @@ Group:          Development/Languages/Perl
 Group(de):     Entwicklung/Sprachen/Perl
 Group(pl):     Programowanie/Jêzyki/Perl
 Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/WWW/libwww-perl-%{version}.tar.gz
-Patch0: perl-libwww-rpmperl-automation-workaround.patch
 BuildRequires: rpm-perlprov >= 3.0.3-18
 BuildRequires: perl >= 5.6
 %requires_eq    perl
@@ -22,6 +21,9 @@ BuildRequires:        perl-libnet
 Requires:      %{perl_sitearch}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# modules not always required
+%define        _noautoreq "perl(HTML::Parse)" "perl(HTML::FormatPS)" "perl(HTML::FormatText)" "perl(HTTP::GHTTP)" "perl(IO::Socket::SSL)" "perl(Mail::Internet)"
+
 %description
 Libwww-perl is a collection of Perl modules which provides a simple
 and consistent programming interface (API) to the World-Wide Web.
@@ -32,8 +34,6 @@ do WWW (World-Wide Web).
 
 %prep
 %setup -q -n libwww-perl-%{version}
-%patch0 -p1
-
 
 %build
 perl Makefile.PL
This page took 0.149112 seconds and 4 git commands to generate.