- update
This commit is contained in:
parent
e33a393f91
commit
8d82710e52
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
libwww-perl-5.834.tar.gz
|
||||
/libwww-perl-5.837.tar.gz
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: perl-libwww-perl
|
||||
Version: 5.834
|
||||
Version: 5.837
|
||||
Release: 1%{?dist}
|
||||
Summary: A Perl interface to the World-Wide Web
|
||||
|
||||
@ -8,57 +8,30 @@ 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
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(HTML::Entities), perl(URI), perl(Test::More), perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: mailcap
|
||||
BuildRequires: perl(Compress::Zlib)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(Compress::Zlib)
|
||||
Requires: perl(Compress::Zlib), perl(MIME::Base64), perl(Net::FTP)
|
||||
Requires: perl-HTML-Parser >= 3.33
|
||||
Requires: mailcap
|
||||
|
||||
%description
|
||||
The libwww-perl collection is a set of Perl modules which provides a
|
||||
simple and consistent application programming interface to the
|
||||
World-Wide Web. The main 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.
|
||||
The libwww-perl collection is a set of Perl modules which provides a simple and
|
||||
consistent application programming interface to the World-Wide Web. The main
|
||||
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}
|
||||
|
||||
%prep
|
||||
%setup -q -n libwww-perl-%{version}
|
||||
|
||||
|
||||
# Filter unwanted Provides:
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/perl(HTTP::Headers)$/d'
|
||||
EOF
|
||||
|
||||
%define __perl_provides %{_builddir}/libwww-perl-%{version}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
|
||||
# Filter unwanted Requires:
|
||||
cat << \EOF > %{name}-req
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/perl(HTTP::GHTTP)/d' |\
|
||||
sed -e '/perl(Win32)/d' |\
|
||||
sed -e '/perl(Authen::NTLM)/d'
|
||||
EOF
|
||||
|
||||
%define __perl_requires %{_builddir}/libwww-perl-%{version}/%{name}-req
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
|
||||
%build
|
||||
# Install the aliases by default
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor --aliases < /dev/null
|
||||
%{__perl} Makefile.PL INSTALLDIRS=perl --aliases < /dev/null
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -76,7 +49,7 @@ 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_vendorlib}}/LWP/media.types ; do
|
||||
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
|
||||
@ -93,22 +66,31 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS Changes README*
|
||||
%{_bindir}/*
|
||||
%{perl_vendorlib}/lwp*.pod
|
||||
%{perl_vendorlib}/LWP.pm
|
||||
%{perl_vendorlib}/Bundle/
|
||||
%{perl_vendorlib}/File/
|
||||
%{perl_vendorlib}/HTML/
|
||||
%{perl_vendorlib}/HTTP/
|
||||
%{perl_vendorlib}/LWP/
|
||||
%{perl_vendorlib}/Net/
|
||||
%{perl_vendorlib}/WWW/
|
||||
%{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 11 2010 Marcela Mašláňová <mmaslano@redhat.com> 5.834-1
|
||||
- update #513596
|
||||
* Mon Sep 27 2010 Marcela Mašláňová <mmaslano@redhat.com> 5.837-1
|
||||
- update
|
||||
|
||||
* Mon Jul 12 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.836-1
|
||||
- update
|
||||
|
||||
* Mon Jun 21 2010 Jesse Keating <jkeating@redhat.com> - 5.834-1
|
||||
- Bump to match what was pushed to F13.
|
||||
|
||||
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.833-3
|
||||
- Mass rebuild with perl-5.12.0
|
||||
|
||||
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 5.833-2
|
||||
- rebuild against perl 5.10.1
|
||||
|
Loading…
Reference in New Issue
Block a user