4 |
Summary: Abstracted logging facility for PHP |
Summary: Abstracted logging facility for PHP |
5 |
Summary(fr): Abstraction des outils d'enregistrement de traces pour PHP |
Summary(fr): Abstraction des outils d'enregistrement de traces pour PHP |
6 |
Name: php-pear-Log |
Name: php-pear-Log |
7 |
Version: 1.9.13 |
Version: 1.11.6 |
8 |
Release: 2%{?dist} |
Release: 1%{?dist}.1 |
9 |
License: PHP |
License: MIT |
10 |
Group: Development/Libraries |
Group: Development/Libraries |
11 |
Source: http://pear.php.net/get/Log-%{version}.tgz |
Source: http://pear.php.net/get/Log-%{version}.tgz |
12 |
Source2: xml2changelog |
Source2: xml2changelog |
13 |
Patch0: php-pear-Log-1.9.13-prevent-deprecated-messages.patch |
Patch0: php-pear-Log-1.11.6-prevent-deprecated-messages.patch |
14 |
Patch1: php-pear-Log-1.9.13-update-checksum.patch |
Patch1: php-pear-Log-1.11.6-update-checksum.patch |
15 |
|
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
17 |
URL: http://pear.php.net/package/Log |
URL: http://pear.php.net/package/Log |
18 |
|
|
21 |
Requires: php-pear(PEAR) >= 1.4.9 |
Requires: php-pear(PEAR) >= 1.4.9 |
22 |
Requires: php-pear(DB) >= 1.3 |
Requires: php-pear(DB) >= 1.3 |
23 |
Requires: php-pear(MDB2) >= 2.0.0 |
Requires: php-pear(MDB2) >= 2.0.0 |
24 |
|
Requires: php-pear(Mail) |
25 |
Requires(post): %{__pear} |
Requires(post): %{__pear} |
26 |
Requires(postun): %{__pear} |
Requires(postun): %{__pear} |
27 |
Provides: php-pear(Log) = %{version} |
Provides: php-pear(Log) = %{version} |
49 |
%prep |
%prep |
50 |
%setup -c -q |
%setup -c -q |
51 |
%{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG |
%{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG |
52 |
mv package.xml %{pear_name}-%{version}/%{pear_name}.xml |
mv package.xml %{pear_name}-%{version}/%{name}.xml |
53 |
%patch0 -p1 |
%patch0 -p1 |
54 |
%patch1 -p1 |
%patch1 -p1 |
55 |
|
|
|
|
|
56 |
%build |
%build |
57 |
# Empty build section |
# Empty build section |
58 |
|
|
61 |
rm -rf %{buildroot} docdir |
rm -rf %{buildroot} docdir |
62 |
|
|
63 |
pushd Log-%{version} |
pushd Log-%{version} |
64 |
%{__pear} install --nodeps --packagingroot %{buildroot} %{pear_name}.xml |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml |
65 |
|
|
66 |
# Clean up unnecessary files |
# Clean up unnecessary files |
67 |
rm -rf %{buildroot}%{pear_phpdir}/.??* |
rm -rf %{buildroot}%{pear_phpdir}/.??* |
68 |
|
|
69 |
# Install XML package description |
# Install XML package description |
70 |
%{__mkdir_p} %{buildroot}%{pear_xmldir} |
%{__mkdir_p} %{buildroot}%{pear_xmldir} |
71 |
%{__install} -pm 644 Log.xml %{buildroot}%{pear_xmldir} |
%{__install} -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} |
72 |
|
|
73 |
popd |
popd |
74 |
# Sort out documentation |
# Sort out documentation |
75 |
mv %{buildroot}%{pear_docdir}/%{pear_name}/docs docdir |
mv %{buildroot}%{pear_docdir}/%{pear_name}/docs docdir |
76 |
|
mv %{buildroot}%{pear_docdir}/%{pear_name}/examples docdir/examples |
77 |
|
|
78 |
|
|
79 |
%clean |
%clean |
87 |
# For documentation purpose only |
# For documentation purpose only |
88 |
# After install, as root : |
# After install, as root : |
89 |
# pear run-tests -p Log |
# pear run-tests -p Log |
90 |
# Should return |
# Should return (1.11.6) |
91 |
# 14 PASSED TESTS |
# 19 PASSED TESTS |
92 |
# 2 SKIPPED TESTS |
# 2 SKIPPED TESTS |
93 |
|
|
94 |
|
|
95 |
%post |
%post |
96 |
%{__pear} install --nodeps --soft --force --register-only %{pear_xmldir}/%{pear_name}.xml >/dev/null || : |
%{__pear} install --nodeps --soft --force --register-only %{pear_xmldir}/%{name}.xml >/dev/null || : |
97 |
|
|
98 |
|
|
99 |
%postun |
%postun |
109 |
%{pear_phpdir}/Log.php |
%{pear_phpdir}/Log.php |
110 |
%{pear_testdir}/Log |
%{pear_testdir}/Log |
111 |
%{pear_datadir}/Log |
%{pear_datadir}/Log |
112 |
%{pear_xmldir}/%{pear_name}.xml |
%{pear_xmldir}/%{name}.xml |
113 |
|
|
114 |
|
|
115 |
%changelog |
%changelog |
116 |
* Mon Sep 19 2011 Jonathan Martens <smeserver-bugzilla@snetram.nl> 1.9.13-2 |
* Wed Sep 21 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 1.11.6-1.el5-1 |
117 |
- Prevent deprecated messages when using PHP 5.3+ [SME: 6726] |
- Fix deprecated error message for webmail [SME: 6725] |
118 |
|
|
119 |
|
* Sat Dec 26 2009 Remi Collet <Fedora@FamilleCollet.com> 1.11.6-1 |
120 |
|
- update to 1.11.6 |
121 |
|
|
122 |
|
* Sat Aug 08 2009 Remi Collet <Fedora@FamilleCollet.com> 1.11.5-1 |
123 |
|
- update to 1.11.5 |
124 |
|
- rename Log.xml to php-pear-Log.xml |
125 |
|
|
126 |
|
* Sat Nov 22 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.3-1 |
127 |
|
- update to 1.11.3 |
128 |
|
|
129 |
|
* Fri Sep 05 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.2-1 |
130 |
|
- update to 1.11.2 |
131 |
|
|
132 |
|
* Wed Aug 06 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.1-1 |
133 |
|
- update to 1.11.1 |
134 |
|
|
135 |
|
* Sat Jun 28 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.0-1 |
136 |
|
- update to 1.11.0 : switch from PHP to MIT license |
137 |
|
|
138 |
|
* Thu May 08 2008 Remi Collet <Fedora@FamilleCollet.com> 1.10.1-1 |
139 |
|
- update to 1.10.1 |
140 |
|
|
141 |
|
* Sat Jan 26 2008 Remi Collet <Fedora@FamilleCollet.com> 1.10.0-1 |
142 |
|
- update to 1.10.0 |
143 |
|
- add Requires php-pear(Mail) (new handler) |
144 |
|
- remove levels.patch (merged upstream) |
145 |
|
|
146 |
|
* Sat Jan 26 2008 Remi Collet <Fedora@FamilleCollet.com> 1.9.16-1 |
147 |
|
- update to 1.9.16 |
148 |
|
- add examples in documentation |
149 |
|
- add levels.patch http://pear.php.net/bugs/bug.php?id=12933 |
150 |
|
|
151 |
|
* Wed Jan 02 2008 Remi Collet <Fedora@FamilleCollet.com> 1.9.14-1 |
152 |
|
- update to 1.9.14 |
153 |
|
|
154 |
* Thu Dec 13 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.13-1 |
* Thu Dec 13 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.13-1 |
155 |
- update to 1.9.13 |
- update to 1.9.13 |