]> git.pld-linux.org Git - packages/perl-libwww.git/commitdiff
- modified for perl 5.005_61
authorArtur Frysiak <artur@frysiak.net>
Sat, 28 Aug 1999 12:10:10 +0000 (12:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-libwww.spec -> 1.10

perl-libwww.spec

index 1abc85477b1a0c4fc1f78d920193588d6bc7f228..644ac6e7d22f120a5ccfea8f00713311666028dd 100644 (file)
@@ -1,17 +1,24 @@
+%define        perl_sitelib    %(eval "`perl -V:installsitelib`"; echo $installsitelib)
+
 Name:          perl-libwww
 Version:       5.44
-Release:       1
+Release:       2
 Vendor:                Mailing List <libwww-perl@ics.uci.edu>
 Source:         libwww-perl-%{version}.tar.gz
-#Patch:                libwww-Makefile.patch
 Group:         Utilities/Text
 Copyright:     Free
 Summary:       Perl LIBWWW module
 Summary(pl):   Modu³ perla LIBWWW
 BuildRoot:     /tmp/%{name}-%{version}-root
-BuildRequires: perl
-%requires_eq   perl
-Requires:      perl-HTML-Parser, perl-MIME-Base64, perl-MD5, perl-libnet, perl-Data-Dumper
+BuildRequires: perl >= 5.005_61
+BuildRequires: perl-Digest-MD5
+BuildRequires: perl-HTML-Parser
+Requires:      perl
+Requires:      %{perl_sitelib}
+Requires:      perl-HTML-Parser 
+Requires:      perl-MIME-Base64
+Requires:      perl-Digest-MD5 
+Requires:      perl-libnet 
 
 %description
 Libwww-perl is a collection of Perl modules which provides a simple
@@ -25,32 +32,37 @@ API do WWW (World-Wide Web).
 %setup -q -n libwww-perl-%{version}
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
-#patch -p1 < %{PATCH}
-make
+perl Makefile.PL
+make OPTIMIZE="$RPM_OPT_FLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/%{perl_sitearch} \
-       $RPM_BUILD_ROOT{%{_mandir}/man{1,3},%{_bindir}}
+install -d $RPM_BUILD_ROOT%{perl_archlib}
 
-make install PREFIX=$RPM_BUILD_ROOT/usr \
-       INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
-       INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1
+make install \
+       DESTDIR=$RPM_BUILD_ROOT
 
+(  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/libwww-perl/
+   sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
+   mv .packlist.new .packlist
+)
+      
 gzip -9nf README TODO $RPM_BUILD_ROOT%{_mandir}/man{1,3}/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
+%defattr(644,root,root,755)
 %doc README.gz TODO.gz
-%{_libdir}/perl5/site_perl/5.005/LWP.pm
-%{_libdir}/perl5/site_perl/5.005/Bundle/*.pm
-%{_libdir}/perl5/site_perl/5.005/File/*.pm
-%{_libdir}/perl5/site_perl/5.005/HTTP/*
-%{_libdir}/perl5/site_perl/5.005/LWP/*
-%{_libdir}/perl5/site_perl/5.005/WWW/*
+%{perl_sitelib}/*.pm
+%{perl_sitelib}/*.pod
+%{perl_sitelib}/Bundle/*
+%{perl_sitelib}/File/*
+%{perl_sitelib}/HTTP/*
+%{perl_sitelib}/LWP
+%{perl_sitelib}/WWW
+%{perl_sitearch}/auto/libwww-perl
 %attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%{_mandir}/man3/*
+
+%{_mandir}/man*/*
This page took 0.111362 seconds and 4 git commands to generate.