[perl-WWW-Mechanize/el5/master] import version 1.49 for EL5 (BZ #165650)

Ken Dreyer ktdreyer at fedoraproject.org
Wed Mar 23 21:48:30 UTC 2011


commit 03cba8cb1e2b98dc06ef5283812d96d30bd6f5e1
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Wed Mar 23 15:47:28 2011 -0600

    import version 1.49 for EL5 (BZ #165650)

 .gitignore              |    1 +
 perl-WWW-Mechanize.spec |  179 ++++++++++------------------------------------
 sources                 |    2 +-
 3 files changed, 41 insertions(+), 141 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c201db8..1112ee1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 WWW-Mechanize-1.62.tar.gz
 /WWW-Mechanize-1.66.tar.gz
+/WWW-Mechanize-1.49_01.tar.gz
diff --git a/perl-WWW-Mechanize.spec b/perl-WWW-Mechanize.spec
index 549429c..8164cab 100644
--- a/perl-WWW-Mechanize.spec
+++ b/perl-WWW-Mechanize.spec
@@ -1,79 +1,35 @@
 #
 # Rebuild switches:
 #  --with localtests         enable local tests
-%bcond_with localtests
 #  --with livetests          enable live tests
-%bcond_with livetests
+#
+
+%define localtests 0
+%define livetests 0
+%{?_with_localtests:%define localtests 1}
+%{?_with_livetests:%define livetests 1}
 
 Name:           perl-WWW-Mechanize
-Version:        1.66
-Release:        3%{?dist}
+Version:        1.49
+Release:        1%{?dist}
 Summary:        Automates web page form & link interaction
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/WWW-Mechanize/
-Source0:        http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/WWW-Mechanize-%{version}.tar.gz
+Source0:        http://backpan.perl.org/authors/id/P/PE/PETDANCE/WWW-Mechanize-%{version}_01.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires:       perl(Carp)
-Requires:       perl(Getopt::Long)
-Requires:       perl(HTML::Form) >= 1.038
-Requires:       perl(HTML::HeadParser)
-# HTML::Parser is not used anymore probably
-#Requires:       perl(HTML::Parser) >= 3.33
-Requires:       perl(HTML::TokeParser) >= 2.28
-Requires:       perl(HTTP::Request) >= 1.3
-# HTML::Status is not used anymore probably
-#Requires:       perl(HTTP::Status)
-# LWP is not run-time dependecy probably
-#Requires:       perl(LWP) >= 5.829
-Requires:       perl(LWP::UserAgent) >= 5.829
-Requires:       perl(Pod::Usage)
-Requires:       perl(URI::file)
-Requires:       perl(URI::URL)
-
-BuildRequires:  perl(Carp)
-BuildRequires:  perl(CGI)
+
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Getopt::Long)
-BuildRequires:  perl(HTML::Form) >= 1.038
-BuildRequires:  perl(HTML::HeadParser)
-# HTML::Parser is not used anymore probably
-#BuildRequires:  perl(HTML::Parser) >= 3.33
-BuildRequires:  perl(HTTP::Request) >= 1.3
-# HTTP::Response::Encoding is not used anymore probably
-BuildRequires:  perl(HTTP::Response::Encoding) >= 0.05
-# HTML::Status is not used anymore probably
-#BuildRequires:  perl(HTTP::Status)
-BuildRequires:  perl(HTML::TokeParser) >= 2.28
-BuildRequires:  perl(IO::Socket::SSL)
-BuildRequires:  perl(LWP) >= 5.829
-BuildRequires:  perl(LWP::UserAgent) >= 5.829
-BuildRequires:  perl(Pod::Usage)
-BuildRequires:  perl(Test::More) >= 0.34
-BuildRequires:  perl(URI::file)
-BuildRequires:  perl(URI::URL)
-# For %%check only:
-# HTTP::Server::Simple is not used anymore probably
-BuildRequires:  perl(HTTP::Server::Simple) >= 0.35
-BuildRequires:  perl(HTTP::Server::Simple::CGI)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
 BuildRequires:  perl(Test::Exception)
-BuildRequires:  perl(Test::Memory::Cycle)
-BuildRequires:  perl(Test::NoWarnings)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
-BuildRequires:  perl(Test::Taint)
-BuildRequires:  perl(Test::Warn) >= 0.11
-BuildRequires:  perl(URI) >= 1.36
-%if %{with localtests}
-BuildRequires:  perl(File::Temp)
-BuildRequires:  perl(FindBin)
-BuildRequires:  perl(HTTP::Daemon)
-BuildRequires:  perl(HTTP::Response)
-%endif
-
+BuildRequires:  perl(Test::Memory::Cycle), perl(Test::Taint), perl(Test::Warn)
+BuildRequires:  perl(HTML::TokeParser), perl(LWP::UserAgent), perl(URI::URL)
+BuildRequires:  perl(IO::Socket::SSL)
+BuildRequires:  perl(HTTP::Response::Encoding)
 
 %description
 "WWW::Mechanize", or Mech for short, helps you automate interaction
@@ -86,17 +42,21 @@ queried and revisited.
 
 
 %prep
-%setup -q -n WWW-Mechanize-%{version}
+%setup -q -n WWW-Mechanize-%{version}_01
+for F in Changes; do
+    iconv -f iso8859-1 -t utf-8 "$F" > "${F}.utf8" && \
+        touch -r "$F" "${F}.utf8" && mv "${F}.utf8" "$F"
+done;
 
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor \
-%if %{with localtests}
+%if %{localtests}
     --local \
 %else
     --nolocal \
 %endif
-%if %{with livetests}
+%if %{livetests}
     --live
 %else
     --nolive
@@ -105,100 +65,39 @@ make %{?_smp_mflags}
 
 
 %install
+rm -rf %{buildroot}
+
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} +
+find %{buildroot} -type f -name .packlist -exec rm -f {} + 
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 
 %{_fixperms} %{buildroot}/*
-for F in Changes; do
-    iconv -f iso8859-1 -t utf-8 "$F" > "${F}.utf8" && \
-        touch -r "$F" "${F}.utf8" && mv "${F}.utf8" "$F"
-done;
 
 
 %check
 make test
 
 
+%clean
+rm -rf %{buildroot}
+
+
 %files
 %defattr(-,root,root,-)
-%doc Changes etc/www-mechanize-logo.png
+%doc Changes etc/www-mechanize-logo.png  
 %{_bindir}/mech-dump
-%{perl_vendorlib}/*
+%{perl_vendorlib}/WWW/
 %{_mandir}/man1/*.1*
 %{_mandir}/man3/*.3pm*
 
 
 %changelog
-* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.66-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
-
-* Wed Dec 08 2010 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.66-2
-- Add BR: perl(CGI) (Fix FTBS: BZ 661086).
-
-* Sun Nov 21 2010 Iain Arnell <iarnell at gmail.com> 1.66-1
-- update to latest upstream version
-- clean up spec for modern rpmbuild
-
-* Fri May 07 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.62-2
-- Mass rebuild with perl-5.12.0
-
-* Wed Apr 21 2010 Petr Pisar <ppisar at redhat.com> 1.62-1
-- version bump
-- clean dependecies up
-
-* Sun Aug 23 2009 Chris Weyl <cweyl at alumni.drew.edu> 1.60-1
-- auto-update to 1.60 (by cpan-spec-update 0.01)
-- added a new br on perl(Carp) (version 0)
-- added a new br on perl(File::Temp) (version 0)
-- added a new br on perl(FindBin) (version 0)
-- added a new br on perl(Getopt::Long) (version 0)
-- added a new br on perl(HTML::Form) (version 1.038)
-- added a new br on perl(HTML::HeadParser) (version 0)
-- added a new br on perl(HTML::Parser) (version 3.33)
-- altered br on perl(HTML::TokeParser) (0 => 2.28)
-- added a new br on perl(HTTP::Daemon) (version 0)
-- added a new br on perl(HTTP::Request) (version 1.3)
-- altered br on perl(HTTP::Server::Simple) (0 => 0.35)
-- added a new br on perl(HTTP::Server::Simple::CGI) (version 0)
-- added a new br on perl(HTTP::Status) (version 0)
-- added a new br on perl(LWP) (version 5.829)
-- altered br on perl(LWP::UserAgent) (0 => 5.829)
-- added a new br on perl(Pod::Usage) (version 0)
-- altered br on perl(Test::More) (0 => 0.34)
-- altered br on perl(Test::Warn) (0 => 0.11)
-- added a new br on perl(URI::file) (version 0)
-- added a new req on perl(Carp) (version 0)
-- added a new req on perl(File::Temp) (version 0)
-- added a new req on perl(FindBin) (version 0)
-- added a new req on perl(Getopt::Long) (version 0)
-- added a new req on perl(HTML::Form) (version 1.038)
-- added a new req on perl(HTML::HeadParser) (version 0)
-- added a new req on perl(HTML::Parser) (version 3.33)
-- added a new req on perl(HTML::TokeParser) (version 2.28)
-- added a new req on perl(HTTP::Daemon) (version 0)
-- added a new req on perl(HTTP::Request) (version 1.3)
-- added a new req on perl(HTTP::Server::Simple) (version 0.35)
-- added a new req on perl(HTTP::Server::Simple::CGI) (version 0)
-- added a new req on perl(HTTP::Status) (version 0)
-- added a new req on perl(LWP) (version 5.829)
-- added a new req on perl(LWP::UserAgent) (version 5.829)
-- added a new req on perl(Pod::Usage) (version 0)
-- added a new req on perl(URI) (version 1.36)
-- added a new req on perl(URI::URL) (version 0)
-- added a new req on perl(URI::file) (version 0)
-
-* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.54-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
-
-* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.54-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-
-* Sat Feb 21 2009 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.54-1
-- Upstream update.
-- Add BR: perl(URI), perl(HTTP::Server::Simple),
-  perl(HTTP::Response::Encoding).
-- Use %%bcond_with and %%with to process build options.
+* Wed Mar 15 2011 Ken Dreyer <ktdreyer at ktdreyer.com> 1.49-1
+- grab F9 spec from perl-WWW-Mechanize:3d7f2586f2d7508cb008edf4593c80959d3c9049
+- update to 1.49
+- build for EL5
+- add BuildRequires HTTP::Response::Encoding
+- Convert changelog file to utf8
 
 * Wed May 28 2008 Chris Weyl <cweyl at alumni.drew.edu> 1.34-1
 - update to 1.34
diff --git a/sources b/sources
index 7f59025..f858a63 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40690ba4cd93b8c3b931582acf87eeac  WWW-Mechanize-1.66.tar.gz
+ea7a5c9934447466b6bf6fbdd00c2f12  WWW-Mechanize-1.49_01.tar.gz



More information about the perl-devel mailing list