- Update to 5.803.

- spec cleanup (#150363)
This commit is contained in:
Warren Togami 2005-04-03 03:42:06 +00:00
parent d2676c38a2
commit 18dff5d8e5
3 changed files with 51 additions and 52 deletions

View File

@ -1 +1 @@
libwww-perl-5.79.tar.gz libwww-perl-5.803.tar.gz

View File

@ -1,24 +1,23 @@
%define _use_internal_dependency_generator 0
Summary: A Perl interface to the World-Wide Web.
Name: perl-libwww-perl Name: perl-libwww-perl
Version: 5.79 Version: 5.803
Release: 7 Release: 1
Summary: A Perl interface to the World-Wide Web
Group: Development/Libraries
License: GPL or Artistic License: GPL or Artistic
Group: Applications/CPAN
Source0: libwww-perl-%{version}.tar.gz
Source10: filter-depends.sh
URL: http://search.cpan.org/dist/libwww-perl/ URL: http://search.cpan.org/dist/libwww-perl/
BuildRoot: %{_tmppath}/perl-libwww-perl-buildroot/ Source0: http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-%{version}.tar.gz
BuildRequires: perl >= 0:5.00503 Source10: filter-depends.sh
Requires: perl >= 0:5.00503 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(URI) perl(Digest::MD5)
Requires: perl-HTML-Parser >= 0:3.33
Requires: perl(HTML::Entities)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(HTML::Entities)
Requires: perl-HTML-Parser >= 0:3.33
BuildArch: noarch BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(HTML::Entities), perl(URI)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Compress::Zlib)
Requires: perl-HTML-Parser >= 3.33
%define __perl_requires %{SOURCE10}
%description %description
The libwww-perl collection is a set of Perl modules which provides a The libwww-perl collection is a set of Perl modules which provides a
@ -29,54 +28,54 @@ contain modules that are of more general use and even classes that
help you implement simple HTTP servers. help you implement simple HTTP servers.
# Provide perl-specific find-{provides,requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires %{SOURCE10}
%prep %prep
%setup -q -n libwww-perl-%{version} %setup -q -n libwww-perl-%{version}
# Install the aliases by default
%{__perl} -pi -e 's|my \$default = "n";|my \$default = "y";|' Makefile.PL
%build %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INST_EXE=$RPM_BUILD_ROOT/usr/bin PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor < /dev/null %{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
make make %{?_smp_mflags}
%clean
rm -rf $RPM_BUILD_ROOT
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install 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/*
file=$RPM_BUILD_ROOT%{_mandir}/man3/LWP.3pm file=$RPM_BUILD_ROOT%{_mandir}/man3/LWP.3pm
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_" iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
mv -f "${file}_" "$file" mv -f "${file}_" "$file"
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; %check || :
make test
find $RPM_BUILD_ROOT/usr -type f -print | %clean
sed "s@^$RPM_BUILD_ROOT@@g" | rm -rf $RPM_BUILD_ROOT
grep -v perllocal.pod |
grep -v "\.packlist" > libwww-perl-%{version}-filelist
if [ "$(cat libwww-perl-%{version}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f libwww-perl-%{version}-filelist
%defattr(-,root,root) %files
%defattr(-,root,root,-)
%doc AUTHORS Changes README* %doc AUTHORS Changes README*
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/LWP %{_bindir}/*
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/Net %{perl_vendorlib}/lwp*.pod
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/WWW %{perl_vendorlib}/LWP.pm
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/WWW/RobotRules %{perl_vendorlib}/Bundle/
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/File %{perl_vendorlib}/File/
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/HTML %{perl_vendorlib}/HTML/
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/HTTP %{perl_vendorlib}/HTTP/
%{perl_vendorlib}/LWP/
%{perl_vendorlib}/Net/
%{perl_vendorlib}/WWW/
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%changelog %changelog
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com> * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 5.803-1
- remove brp-compress - Update to 5.803.
- spec cleanup (#150363)
* Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 5.79-6 * Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 5.79-6
- Convert man page to UTF-8 - Convert man page to UTF-8

View File

@ -1 +1 @@
6682a0a532bf0b2cf76259c94d0d8dc4 libwww-perl-5.79.tar.gz 3345d5f15a4f42350847254141725c8f libwww-perl-5.803.tar.gz