perl-WWW-Mechanize/perl-WWW-Mechanize.spec

120 lines
3.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-WWW-Mechanize
Version: 2.18
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: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/WWW/WWW-Mechanize-%{version}.tar.gz
License: Artistic, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-HTML-Form
BuildRequires: perl-HTML-Parser
BuildRequires: perl-HTTP-Cookies
BuildRequires: perl-HTTP-Message
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-devel
BuildRequires: perl-libwww
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
BuildRequires: perl-HTTP-Server-Simple
BuildRequires: perl-Test-Taint
BuildRequires: perl-Test-Memory-Cycle
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
%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
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed Jan 31 2024 Automatic Build System <autodist@openmamba.org> 2.18-1mamba
- automatic version update by autodist
* Fri Apr 28 2023 Automatic Build System <autodist@mambasoft.it> 2.17-1mamba
- automatic version update by autodist
* Tue Apr 18 2023 Sdk Build System <sdk@mambasoft.it> 2.16-2mamba
- rebuilt with perl 5.36.0
* Sat Feb 11 2023 Automatic Build System <autodist@mambasoft.it> 2.16-1mamba
- automatic version update by autodist
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 2.15-1mamba
- automatic version update by autodist
* Tue Aug 16 2022 Automatic Build System <autodist@mambasoft.it> 2.14-1mamba
- automatic version update by autodist
* Fri Jul 29 2022 Automatic Build System <autodist@mambasoft.it> 2.13-1mamba
- automatic version update by autodist
* Thu Jul 21 2022 Automatic Build System <autodist@mambasoft.it> 2.12-1mamba
- automatic version update by autodist
* Mon Jul 18 2022 Automatic Build System <autodist@mambasoft.it> 2.11-1mamba
- automatic version update by autodist
* Tue Jul 05 2022 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
- automatic version update by autodist
* Wed Jun 15 2022 Automatic Build System <autodist@mambasoft.it> 2.09-1mamba
- automatic version update by autodist
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 2.08-1mamba
- automatic version update by autodist
* Sat Apr 30 2022 Automatic Build System <autodist@mambasoft.it> 2.07-1mamba
- automatic version update by autodist
* Tue Oct 26 2021 Automatic Build System <autodist@mambasoft.it> 2.06-1mamba
- automatic version update by autodist
* Tue Sep 21 2021 Automatic Build System <autodist@mambasoft.it> 2.05-1mamba
- automatic version update by autodist
* Fri Aug 06 2021 Automatic Build System <autodist@mambasoft.it> 2.04-1mamba
- automatic version update by autodist
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 2.03-1mamba
- automatic version update by autodist
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 1.72-1mamba
- update to 1.72
* Fri Nov 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66-1mamba
- package created by autospec