package created by autospec [release 1.66-1mamba;Fri Nov 05 2010]

This commit is contained in:
Silvan Calarco 2024-01-06 09:52:49 +01:00
parent 34264566dd
commit b70a32895b
2 changed files with 68 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# perl-WWW-Mechanize # perl-WWW-Mechanize
WWW::Mechanize - Handy web browsing in a Perl object.

66
perl-WWW-Mechanize.spec Normal file
View File

@ -0,0 +1,66 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-WWW-Mechanize
Version: 1.72
Release: 1mamba
Summary: WWW::Mechanize - Handy web browsing in a Perl object
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/WWW-Mechanize-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
BuildRequires: perl-HTML-Parser
BuildRequires: perl-libwww
## AUTOBUILDREQ-END
BuildRequires: perl-HTML-Form
BuildRequires: perl-HTTP-Cookies
BuildRequires: perl-HTTP-Server-Simple
BuildRequires: perl-Test-Taint
BuildRequires: perl-Test-Memory-Cycle
BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
WWW::Mechanize - Handy web browsing in a Perl object.
%prep
%setup -q -n WWW-Mechanize-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%ifnarch x86_64
%make test
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 1.72-1mamba
- update to 1.72
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Fri Nov 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66-1mamba
- package created by autospec