commit
8ffe7d74cb
BIN
Math-Int64-0.54.tar.gz
Normal file
BIN
Math-Int64-0.54.tar.gz
Normal file
Binary file not shown.
75
perl-Math-Int64.spec
Normal file
75
perl-Math-Int64.spec
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: perl-Math-Int64
|
||||||
|
Version: 0.54
|
||||||
|
Release: 2
|
||||||
|
Summary: Manipulate 64 bits integers in Perl
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: http://search.cpan.org/dist/Math-Int64/
|
||||||
|
Source0: http://www.cpan.org/authors/id/S/SA/SALVA/Math-Int64-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildRequires: perl >= 0:5.006 perl(constant) perl(Exporter) perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(File::Spec) perl(Storable) perl(strict) perl(Test::More) >= 0.96
|
||||||
|
BuildRequires: perl(warnings) perl(XSLoader) perl(ExtUtils::CBuilder)
|
||||||
|
Requires: perl(constant) perl(Exporter) perl(strict) perl(warnings) perl(XSLoader)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module adds support for 64 bit integers, signed and unsigned, to Perl.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Manipulate 64 bits integers in Perl
|
||||||
|
Provides: perl-Math-Int64-doc
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This module adds support for 64 bit integers, signed and unsigned, to Perl.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Math-Int64-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||||
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||||
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
pushd %{buildroot}
|
||||||
|
touch filelist.lst
|
||||||
|
if [ -d usr/bin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ];then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib ];then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f filelist.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc c_api.decl Changes COPYING cpanfile dist.ini META.json README.md weaver.ini
|
||||||
|
%{perl_vendorarch}/auto/*
|
||||||
|
%{perl_vendorarch}/Math*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 10 2020 chengzihan <chengzihan2@huawei.com> - 0.54-2
|
||||||
|
- Package init
|
||||||
4
perl-Math-Int64.yaml
Normal file
4
perl-Math-Int64.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: metacpan
|
||||||
|
src_repo: Math-Int64
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user