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

Annotation 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.2 - (hide annotations) (download)
Thu Jun 16 14:43:24 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: php-pear-Math_BigInteger-1_0_3-2_el7_sme
Changes since 1.1: +20 -7 lines
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.3-2.sme
- importing to buildsys pear packages for Horde [SME: 9600]

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

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