perl-BerkeleyDB/perl-BerkeleyDB.spec

108 lines
3.3 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-BerkeleyDB
Version: 0.65
Release: 2mamba
Summary: BerkeleyDB - Perl extension for Berkeley DB version 2, 3 or 4
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdb53-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
%description
BerkeleyDB - Perl extension for Berkeley DB version 2, 3 or 4
%prep
%setup -q -n BerkeleyDB-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%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
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 0.65-2mamba
- rebuilt with perl 5.36.0
* Sat May 14 2022 Automatic Build System <autodist@mambasoft.it> 0.65-1mamba
- automatic version update by autodist
* Tue Oct 27 2020 Automatic Build System <autodist@mambasoft.it> 0.64-1mamba
- automatic update by autodist
* Sun Aug 04 2019 Automatic Build System <autodist@mambasoft.it> 0.63-1mamba
- automatic update by autodist
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.55-2mamba
- rebuilt with perl 5.24
* Sun Mar 01 2015 Automatic Build System <autodist@mambasoft.it> 0.55-1mamba
- automatic update by autodist
* Fri Dec 13 2013 Automatic Build System <autodist@mambasoft.it> 0.54-1mamba
- automatic update by autodist
* Wed Aug 21 2013 Automatic Build System <autodist@mambasoft.it> 0.53-1mamba
- automatic update by autodist
* Fri Jun 07 2013 Automatic Build System <autodist@mambasoft.it> 0.52-1mamba
- automatic version update by autodist
* Wed Nov 07 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.51-2mamba
- perl 5.16 mass rebuild
* Thu Apr 26 2012 Automatic Build System <autodist@mambasoft.it> 0.51-1mamba
- automatic version update by autodist
* Sat Jun 25 2011 Automatic Build System <autodist@mambasoft.it> 0.48-1mamba
- automatic update by autodist
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 0.43-1mamba
- automatic update by autodist
* Fri Jun 04 2010 Automatic Build System <autodist@mambasoft.it> 0.42-1mamba
- automatic update by autodist
* Thu Jan 14 2010 Automatic Build System <autodist@mambasoft.it> 0.41-1mamba
- automatic update by autodist
* Wed Jun 10 2009 Automatic Build System <autodist@mambasoft.it> 0.39-1mamba
- automatic update by autodist
* Mon Apr 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.38-1mamba
- package created by autospec