perl-libwww/perl-libwww.spec

123 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-libwww
Version: 6.05
Release: 1mamba
Summary: A set of Perl modules which provides a simple and consistent application programming interface to the World-Wide Web
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
Source: http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-%{version}.tar.gz
URL: http://www.cpan.org
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-Authen-NTLM
BuildRequires: perl-devel
BuildRequires: perl-HTTP-GHTTP
BuildRequires: perl-URI
## AUTOBUILDREQ-END
BuildRequires: perl-HTML-Parser
BuildRequires: perl-Encode-Locale
BuildRequires: perl-HTTP-Daemon
BuildRoot: %{_tmppath}/perl-root
BuildArch: noarch
%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.
%prep
%setup -q -n libwww-perl-%{version}
#rm lib/HTTP/Cookies/Microsoft.pm
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor -n << _EOF
n
_EOF
%make
%make test
%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
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
rm .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Fri Mar 15 2013 Automatic Build System <autodist@mambasoft.it> 6.05-1mamba
- automatic version update by autodist
* Tue Nov 13 2012 Automatic Build System <autodist@mambasoft.it> 6.04-1mamba
- automatic version update by autodist
* Wed Nov 10 2010 Automatic Build System <autodist@mambasoft.it> 5.837-1mamba
- automatic update by autodist
* Mon Jun 21 2010 Automatic Build System <autodist@mambasoft.it> 5.836-1mamba
- automatic update by autodist
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 5.834-1mamba
- automatic update by autodist
* Fri Oct 23 2009 Automatic Build System <autodist@mambasoft.it> 5.833-1mamba
- automatic update by autodist
* Tue Oct 06 2009 Automatic Build System <autodist@mambasoft.it> 5.832-1mamba
- automatic update by autodist
* Mon Aug 24 2009 Automatic Build System <autodist@mambasoft.it> 5.831-1mamba
- automatic update by autodist
* Mon Jul 27 2009 Automatic Build System <autodist@mambasoft.it> 5.830-1mamba
- automatic update by autodist
* Tue Jul 14 2009 Automatic Build System <autodist@mambasoft.it> 5.829-1mamba
- automatic update by autodist
* Fri Jul 03 2009 Automatic Build System <autodist@mambasoft.it> 5.828-1mamba
- automatic update by autodist
* Tue Jun 23 2009 Automatic Build System <autodist@mambasoft.it> 5.827-1mamba
- automatic update by autodist
* Sat May 09 2009 Automatic Build System <autodist@mambasoft.it> 5.826-1mamba
- automatic update by autodist
* Tue Mar 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.825-1mamba
- automatic update by autodist
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.823-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.814-2mamba
- automatic rebuild by autodist
* Sat Jul 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.814-1mamba
- update to 5.814
* Sun Oct 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 5.803-2qilnx
- update script as noarch
* Wed Jan 19 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 5.803-1qilnx
- update to version 5.803 by autospec
* Thu Feb 12 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 5.76-1qilnx
- First build