perl-Net-SSLeay/perl-Net-SSLeay.spec

109 lines
3.1 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Net-SSLeay
Version: 1.65
Release: 1mamba
Summary: Net::SSLeay - Perl module for using OpenSSL
Group: Development/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/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz
Patch: perl-Net_SSLeay-no_net_tests.patch
License: GPL
BuildRequires: perl-Sub-Uplevel
BuildRequires: perl-Test-Exception
BuildRequires: perl-Array-Compare
BuildRequires: perl-Tree-DAG_Node
BuildRequires: perl-Test-Warn
BuildRequires: perl-Test-NoWarnings
BuildRequires: perl-Test-Kwalitee
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: openssl
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Net::SSLeay Perl module for using OpenSSL.
%prep
%setup -q -n Net-SSLeay-%{version}
#%patch0 -p1
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor << _EOF
n
_EOF
%make
%ifnarch arm
%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 Jul 23 2014 Automatic Build System <autodist@mambasoft.it> 1.65-1mamba
- automatic update by autodist
* Thu Jul 10 2014 Automatic Build System <autodist@mambasoft.it> 1.64-1mamba
- automatic update by autodist
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 1.63-1mamba
- automatic update by autodist
* Tue Feb 18 2014 Automatic Build System <autodist@mambasoft.it> 1.58-1mamba
- automatic update by autodist
* Sat Jun 08 2013 Automatic Build System <autodist@mambasoft.it> 1.55-1mamba
- automatic version update by autodist
* Mon Mar 25 2013 Automatic Build System <autodist@mambasoft.it> 1.54-1mamba
- automatic version update by autodist
* Fri Feb 08 2013 Automatic Build System <autodist@mambasoft.it> 1.52-1mamba
- update to 1.52
* Sat Nov 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.36-2mamba
- perl 5.16 mass rebuild
* Thu Aug 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.36-1mamba
- update to 1.36
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.35-2mamba
- automatic rebuild by autodist
* Mon Oct 20 2008 gil <puntogil@libero.it> 1.35-1mamba
- update to 1.35
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 1.32-1mamba
- update to 1.32
* Fri Oct 15 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.25-1qilnx
- package created by autospec