6.01 bump
This version can be built after packageing all dependencies: https://bugzilla.redhat.com/show_bug.cgi?id=683784
This commit is contained in:
parent
45565e99c8
commit
776530c9d0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
libwww-perl-5.834.tar.gz
|
||||
/libwww-perl-5.837.tar.gz
|
||||
/libwww-perl-6.01.tar.gz
|
||||
|
@ -1,21 +1,60 @@
|
||||
Name: perl-libwww-perl
|
||||
Version: 5.837
|
||||
Release: 3%{?dist}
|
||||
Version: 6.01
|
||||
Release: 1%{?dist}
|
||||
Summary: A Perl interface to the World-Wide Web
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/libwww-perl/
|
||||
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(HTML::Entities), perl(URI), perl(Test::More), perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: mailcap
|
||||
BuildRequires: perl(Compress::Zlib)
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl(Encode) >= 2.12
|
||||
BuildRequires: perl(Encode::Locale)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Listing) >= 6
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(HTML::HeadParser)
|
||||
BuildRequires: perl(HTTP::Cookies) >= 6
|
||||
BuildRequires: perl(HTTP::Daemon) >= 6
|
||||
BuildRequires: perl(HTTP::Date) >= 6
|
||||
BuildRequires: perl(HTTP::Negotiate) >= 6
|
||||
BuildRequires: perl(HTTP::Request) >= 6
|
||||
BuildRequires: perl(HTTP::Request::Common) >= 6
|
||||
BuildRequires: perl(HTTP::Response) >= 6
|
||||
BuildRequires: perl(HTTP::Status) >= 6
|
||||
BuildRequires: perl(IO::Select)
|
||||
BuildRequires: perl(IO::Socket)
|
||||
BuildRequires: perl(LWP::MediaTypes) >= 6
|
||||
BuildRequires: perl(MIME::Base64) >= 2.1
|
||||
BuildRequires: perl(Net::FTP) >= 2.58
|
||||
BuildRequires: perl(Net::HTTP) >= 6
|
||||
BuildRequires: perl(URI) >= 1.10
|
||||
BuildRequires: perl(URI::Escape)
|
||||
BuildRequires: perl(WWW::RobotRules) >= 6
|
||||
# Tests only:
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(Compress::Zlib), perl(MIME::Base64), perl(Net::FTP)
|
||||
Requires: perl-HTML-Parser >= 3.33
|
||||
Requires: mailcap
|
||||
Requires: perl(Encode) >= 2.12
|
||||
Requires: perl(File::Listing) >= 6
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(HTML::HeadParser)
|
||||
Requires: perl(HTTP::Cookies) >= 6
|
||||
Requires: perl(HTTP::Daemon) >= 6
|
||||
Requires: perl(HTTP::Date) >= 6
|
||||
Requires: perl(HTTP::Negotiate) >= 6
|
||||
Requires: perl(HTTP::Request) >= 6
|
||||
Requires: perl(HTTP::Request::Common) >= 6
|
||||
Requires: perl(HTTP::Response) >= 6
|
||||
Requires: perl(HTTP::Status) >= 6
|
||||
Requires: perl(LWP::MediaTypes) >= 6
|
||||
Requires: perl(MIME::Base64) >= 2.1
|
||||
Requires: perl(Net::FTP) >= 2.58
|
||||
Requires: perl(Net::HTTP) >= 6
|
||||
Requires: perl(URI) >= 1.10
|
||||
Requires: perl(URI::Escape)
|
||||
Requires: perl(WWW::RobotRules) >= 6
|
||||
|
||||
%description
|
||||
The libwww-perl collection is a set of Perl modules which provides a simple and
|
||||
@ -24,17 +63,26 @@ focus of the library is to provide classes and functions that allow you to
|
||||
write WWW clients. The library also contain modules that are of more general
|
||||
use and even classes that help you implement simple HTTP servers.
|
||||
|
||||
%{?perl_default_filter}
|
||||
# Remove not-packaged features
|
||||
%filter_from_requires /perl(Authen::NTLM)/d
|
||||
%filter_from_requires /perl(HTTP::GHTTP)/d
|
||||
# Remove underspecified dependencies
|
||||
%filter_from_requires /^perl(Encode)\s*$/d
|
||||
%filter_from_requires /^perl(File::Listing)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Date)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Negotiate)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Request)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Response)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Status)\s*$/d
|
||||
%filter_from_requires /^perl(LWP::MediaTypes)\s*$/d
|
||||
%filter_from_requires /^perl(MIME::Base64)\s*$/d
|
||||
%filter_from_requires /^perl(Net::HTTP)\s*$/d
|
||||
%filter_from_requires /^perl(URI)\s*$/d
|
||||
%filter_from_requires /^perl(WWW::RobotRules)\s*$/d
|
||||
%filter_setup
|
||||
|
||||
%prep
|
||||
%setup -q -n libwww-perl-%{version}
|
||||
%{?filter_setup:
|
||||
%filter_from_provides /perl(HTTP::Headers)$/d
|
||||
%filter_from_requires /perl(HTTP::GHTTP)/d
|
||||
%filter_from_requires /perl(Win32)/d
|
||||
%filter_from_requires /perl(Authen::NTLM)/d
|
||||
%?perl_default_filter
|
||||
}
|
||||
|
||||
%build
|
||||
# Install the aliases by default
|
||||
@ -42,51 +90,31 @@ use and even classes that help you implement simple HTTP servers.
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
for file in $RPM_BUILD_ROOT%{_mandir}/man3/LWP.3pm AUTHORS README Changes; do
|
||||
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
|
||||
mv -f "${file}_" "$file"
|
||||
done
|
||||
|
||||
# Use system wide MIME types (link also to blib/... for "make test"). Doing
|
||||
# this stuff before "make install" would not cause the symlink to be packaged
|
||||
# but a copy of /etc/mime.types.
|
||||
for file in {blib/lib,$RPM_BUILD_ROOT%{perl_privlib}}/LWP/media.types ; do
|
||||
[ ! -f $file ] && echo ERROR && exit 1
|
||||
ln -sf /etc/mime.types $file
|
||||
done
|
||||
|
||||
%check
|
||||
# Some optional tests require resolvable hostname
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS Changes README*
|
||||
%{_bindir}/*
|
||||
%{perl_privlib}/lwp*.pod
|
||||
%{perl_privlib}/LWP.pm
|
||||
%{perl_privlib}/Bundle/
|
||||
%{perl_privlib}/File/
|
||||
%{perl_privlib}/HTML/
|
||||
%{perl_privlib}/HTTP/
|
||||
%{perl_privlib}/LWP/
|
||||
%{perl_privlib}/Net/
|
||||
%{perl_privlib}/WWW/
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> - 6.01-1
|
||||
- 6.01 bump
|
||||
- Remove BuildRoot stuff
|
||||
- Remove uneeded hacks
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.837-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user