/[smeserver]/rpms/php-pear-Math_BigInteger/sme10/php-pear-Math_BigInteger.spec
ViewVC logotype

Contents of /rpms/php-pear-Math_BigInteger/sme10/php-pear-Math_BigInteger.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Jun 16 14:26:26 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: php-pear-Math_BigInteger-1_0_3-1_el6
Initial import

1 %define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
2 %define xmldir /var/lib/pear
3 %global pear_name Math_BigInteger
4
5 Summary: PEAR: Pure-PHP arbitrary precission integer arithmetic library
6 Name: php-pear-Math_BigInteger
7 Version: 1.0.3
8 Release: 1%{?dist}
9 License: MIT
10 Group: Development/Libraries
11 Source0: http://pear.php.net/get/Math_BigInteger-%{version}.tgz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
13 URL: http://pear.php.net/package/Math_BigInteger
14
15 BuildRequires: php-pear(PEAR) >= 1.4.7
16 Provides: php-pear(%{pear_name}) = %{version}
17
18 BuildArch: noarch
19
20 %description
21 Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or
22 BCMath extensions, if available, and an internal implementation, otherwise.
23
24 %prep
25 %setup -c -T
26 pear -v -c pearrc \
27 -d php_dir=%{peardir} \
28 -d doc_dir=/docs \
29 -d bin_dir=%{_bindir} \
30 -d data_dir=%{peardir}/data \
31 -d test_dir=%{peardir}/tests \
32 -d ext_dir=%{_libdir} \
33 -s
34 %build
35
36 %install
37 rm -rf %{buildroot}
38 pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
39
40 # Clean up unnecessary files
41 rm pearrc
42 rm %{buildroot}/%{peardir}/.filemap
43 rm %{buildroot}/%{peardir}/.lock
44 rm -rf %{buildroot}/%{peardir}/.registry
45 rm -rf %{buildroot}%{peardir}/.channels
46 rm %{buildroot}%{peardir}/.depdb
47 rm %{buildroot}%{peardir}/.depdblock
48
49
50
51 # Install XML package description
52 mkdir -p %{buildroot}%{xmldir}
53 tar -xzf %{SOURCE0} package.xml
54 cp -p package.xml %{buildroot}%{xmldir}/Math_BigInteger.xml
55
56 %clean
57 rm -rf %{buildroot}
58
59 %post
60 pear install --nodeps --soft --force --register-only %{xmldir}/Math_BigInteger.xml >/dev/null || :
61
62 %postun
63 if [ "$1" -eq "0" ]; then
64 pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Math_BigInteger >/dev/null || :
65 fi
66
67 %files
68 %defattr(-,root,root)
69
70 %{peardir}/*
71 %{xmldir}/Math_BigInteger.xml
72
73 %changelog
74 * Mon Apr 18 2016 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.3-1
75 - Updated to 1.0.3
76
77 * Sat May 2 2015 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.2-1
78 - Original from pear-make-rpm-spec.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed