From 2008c80a928ab876cd91cbe10ae5d9ebbbd079fb Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Jul 2023 16:12:03 +0100 Subject: [PATCH] initial commit of file from CVS for php-pear-Math_BigInteger on Fri 14 Jul 16:12:03 BST 2023 --- .gitattributes | 1 + .gitignore | 3 ++ Makefile | 21 ++++++++ Math_BigInteger-1.0.3.tgz | 3 ++ README.md | 10 +++- contriborbase | 1 + php-pear-Math_BigInteger.spec | 95 +++++++++++++++++++++++++++++++++++ 7 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 Math_BigInteger-1.0.3.tgz create mode 100644 contriborbase create mode 100644 php-pear-Math_BigInteger.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3606a43 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tgz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8eaf9e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: php-pear-Math_BigInteger +# $Id: Makefile,v 1.1 2016/06/16 14:26:26 unnilennium Exp $ +NAME := php-pear-Math_BigInteger +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/Math_BigInteger-1.0.3.tgz b/Math_BigInteger-1.0.3.tgz new file mode 100644 index 0000000..c62d3bb --- /dev/null +++ b/Math_BigInteger-1.0.3.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad0873c77fc2387e24984f4bad1c48b29442299aad9cdbeea1d2da23fbf796ef +size 28009 diff --git a/README.md b/README.md index 027b6cd..5dc8454 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # php-pear-Math_BigInteger -3rd Party (Maintained by Koozali) git repo for php-pear-Math_BigInteger smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for php-pear-Math_BigInteger smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +The php-pear-Math_BigInteger package is a library for arbitrary precision arithmetic which enables the handling of numbers beyond the range of the traditional integer or floating-point types in the PHP language. It provides additional functions to increase the range of mathematical operations (such as addition, subtraction, multiplication, division and comparison) that can be performed on arbitrarily large numbers, and it also provides functions for advanced cryptographic operations. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/php-pear-Math_BigInteger.spec b/php-pear-Math_BigInteger.spec new file mode 100644 index 0000000..973f4ce --- /dev/null +++ b/php-pear-Math_BigInteger.spec @@ -0,0 +1,95 @@ +%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) +%define xmldir /var/lib/pear +%global pear_name Math_BigInteger +%define name php-pear-Math_BigInteger +%define version 1.0.3 +%define release 2 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Summary: PEAR: Pure-PHP arbitrary precission integer arithmetic library +License: MIT +Group: Development/Libraries +Source0: http://pear.php.net/get/Math_BigInteger-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) +URL: http://pear.php.net/package/Math_BigInteger + +BuildRequires: php-pear(PEAR) >= 1.4.7 +Provides: php-pear(%{pear_name}) = %{version} + +BuildArch: noarch + +%description +Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or +BCMath extensions, if available, and an internal implementation, otherwise. + +%prep +%setup -c -T +pear -v -c pearrc \ + -d php_dir=%{peardir} \ + -d doc_dir=/docs \ + -d bin_dir=%{_bindir} \ + -d data_dir=%{peardir}/data \ + -d test_dir=%{peardir}/tests \ + -d ext_dir=%{_libdir} \ + -s +%build + +%install +rm -rf %{buildroot} +pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} + +# Clean up unnecessary files +rm pearrc +rm -rf %{buildroot}/%{peardir}/.filemap +rm -rf %{buildroot}/%{peardir}/.lock +rm -rf %{buildroot}/%{peardir}/.registry +rm -rf %{buildroot}%{peardir}/.channels +rm -rf %{buildroot}/%{xmldir}/.filemap +rm -rf %{buildroot}/%{xmldir}/.lock +rm -rf %{buildroot}/%{xmldir}/.registry +rm -rf %{buildroot}/%{xmldir}/.channels +if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then +rm -rf %{buildroot}%{xmldir}/.depdb +fi +if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then +rm -rf %{buildroot}%{xmldir}/.depdblock +fi + + +# Install XML package description +mkdir -p %{buildroot}%{xmldir} +tar -xzf %{SOURCE0} package.xml +cp -p package.xml %{buildroot}%{xmldir}/Math_BigInteger.xml + +%clean +rm -rf %{buildroot} + +%post +pear install --nodeps --soft --force --register-only %{xmldir}/Math_BigInteger.xml >/dev/null || : + +%postun +if [ "$1" -eq "0" ]; then + pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Math_BigInteger >/dev/null || : +fi + +%files +%defattr(-,root,root) + +%{peardir}/* +%{xmldir}/Math_BigInteger.xml + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Thu Jun 16 2016 Jean-Philipe Pialasse 1.0.3-2.sme +- importing to buildsys pear packages for Horde [SME: 9600] + +* Mon Apr 18 2016 John H. Bennett III - 1.0.3-1 +- Updated to 1.0.3 + +* Sat May 2 2015 John H. Bennett III - 1.0.2-1 +- Original from pear-make-rpm-spec.