/[smeserver]/rpms/php-pear-Auth-SASL2/sme10/php-pear-Auth_SASL2.spec
ViewVC logotype

Annotation of /rpms/php-pear-Auth-SASL2/sme10/php-pear-Auth_SASL2.spec

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


Revision 1.3 - (hide annotations) (download)
Tue Jun 6 07:17:06 2023 UTC (17 months ago) by brianr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -6 lines
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.0-3.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 Auth_SASL2
4 unnilennium 1.2 %define name php-pear-Auth-SASL2
5     %define version 0.1.0
6     %define release 3
7    
8     Name: %{name}
9     Version: %{version}
10     Release: %{release}%{?dist}
11 unnilennium 1.1 Summary: Abstraction of various SASL mechanism responses
12     License: BSD
13     Group: Development/Libraries
14     Source0: http://pear.php.net/get/Auth_SASL2-%{version}.tgz
15     BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
16     URL: http://pear.php.net/package/Auth_SASL2
17    
18     BuildRequires: php-pear(PEAR) >= 1.4.7
19     Provides: php-pear(%{pear_name}) = %{version}
20    
21     #BuildRequires: PEAR::PEAR >= 1.4.7
22    
23     BuildArch: noarch
24    
25     %description
26     Provides code to generate responses to common SASL mechanisms, including:
27     - Digest-MD5
28     - Cram-MD5
29     - Plain
30     - Anonymous
31     - Login (Pseudo mechanism)
32     - SCRAM
33    
34     %prep
35     %setup -c -T
36     pear -v -c pearrc \
37     -d php_dir=%{peardir} \
38     -d doc_dir=/docs \
39     -d bin_dir=%{_bindir} \
40     -d data_dir=%{peardir}/data \
41     -d test_dir=%{peardir}/tests \
42     -d ext_dir=%{_libdir} \
43     -s
44    
45     %build
46    
47     %install
48     rm -rf %{buildroot}
49     pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
50    
51     # Clean up unnecessary files
52     rm pearrc
53 brianr 1.3 rm -rf %{buildroot}/%{peardir}/.filemap
54     rm -rf %{buildroot}/%{peardir}/.lock
55 unnilennium 1.1 rm -rf %{buildroot}/%{peardir}/.registry
56     rm -rf %{buildroot}%{peardir}/.channels
57 unnilennium 1.2
58 brianr 1.3 rm -rf %{buildroot}/%{xmldir}/.filemap
59     rm -rf %{buildroot}/%{xmldir}/.lock
60 unnilennium 1.2 rm -rf %{buildroot}/%{xmldir}/.registry
61     rm -rf %{buildroot}/%{xmldir}/.channels
62     if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then
63 brianr 1.3 rm -rf %{buildroot}%{xmldir}/.depdb
64 unnilennium 1.2 fi
65     if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then
66 brianr 1.3 rm -rf %{buildroot}%{xmldir}/.depdblock
67 unnilennium 1.2 fi
68 unnilennium 1.1
69    
70    
71     # Install XML package description
72     mkdir -p %{buildroot}%{xmldir}
73     tar -xzf %{SOURCE0} package.xml
74     cp -p package.xml %{buildroot}%{xmldir}/Auth_SASL2.xml
75    
76     %clean
77     rm -rf %{buildroot}
78    
79     %post
80     pear install --nodeps --soft --force --register-only %{xmldir}/Auth_SASL2.xml >/dev/null || :
81    
82     %postun
83     if [ "$1" -eq "0" ]; then
84     pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Auth_SASL2 >/dev/null || :
85     fi
86    
87     %files
88     %defattr(-,root,root)
89    
90     %{peardir}/*
91     %{xmldir}/Auth_SASL2.xml
92    
93     %changelog
94 unnilennium 1.2 * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.0-3.sme
95     - importing to buildsys pear packages for Horde [SME: 9600]
96    
97 unnilennium 1.1 * Mon May 6 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.1.0-2
98     - updated spec file requires section, and left original info remarked.
99    
100     * Sun May 5 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.1.0-1
101     - Original from pear-make-rpm-spec.
102    
103    

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