2024-01-06 09:37:28 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-String-CRC32
|
2024-01-06 09:37:29 +01:00
|
|
|
Version: 2.100
|
2024-01-06 09:37:29 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 09:37:28 +01:00
|
|
|
Summary: String::CRC32 - A perl module to generate checksums from strings and from files
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:37:29 +01:00
|
|
|
Source: https://cpan.metacpan.org/modules/by-module/String/String-CRC32-%{version}.tar.gz
|
|
|
|
URL: https://www.cpan.org
|
2024-01-06 09:37:28 +01:00
|
|
|
License: GPL
|
2024-01-06 09:37:29 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 09:37:29 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-06 09:37:29 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:37:29 +01:00
|
|
|
BuildRequires: perl >= 2:5.36.0
|
2024-01-06 09:37:28 +01:00
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
This packages provides a perl module to generate checksums from strings and from files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n String-CRC32-%{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
|
|
|
|
|
2024-01-06 09:37:29 +01:00
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
|
2024-01-06 09:37:28 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:37:29 +01:00
|
|
|
* Mon Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 2.100-2mamba
|
|
|
|
- rebuilt with perl 5.36.0
|
|
|
|
|
2024-01-06 09:37:29 +01:00
|
|
|
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 2.100-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:37:28 +01:00
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-2mamba
|
|
|
|
- rebuilt with perl 5.24
|
|
|
|
|
2024-01-06 09:37:28 +01:00
|
|
|
* Sat Jan 04 2014 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-3mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Thu Sep 13 2007 Aleph0 <aleph0@openmamba.org> 1.4-1mamba
|
|
|
|
- update to 1.4
|
|
|
|
|
|
|
|
* Thu May 06 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1qilnx
|
|
|
|
- first build
|