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} |
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 |
|
|
Patch1: php-pear-Log-1.9.13-update-checksum.patch |
|
14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
15 |
URL: http://pear.php.net/package/Log |
URL: http://pear.php.net/package/Log |
16 |
|
|
19 |
Requires: php-pear(PEAR) >= 1.4.9 |
Requires: php-pear(PEAR) >= 1.4.9 |
20 |
Requires: php-pear(DB) >= 1.3 |
Requires: php-pear(DB) >= 1.3 |
21 |
Requires: php-pear(MDB2) >= 2.0.0 |
Requires: php-pear(MDB2) >= 2.0.0 |
22 |
|
Requires: php-pear(Mail) |
23 |
Requires(post): %{__pear} |
Requires(post): %{__pear} |
24 |
Requires(postun): %{__pear} |
Requires(postun): %{__pear} |
25 |
Provides: php-pear(Log) = %{version} |
Provides: php-pear(Log) = %{version} |
47 |
%prep |
%prep |
48 |
%setup -c -q |
%setup -c -q |
49 |
%{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG |
%{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG |
50 |
mv package.xml %{pear_name}-%{version}/%{pear_name}.xml |
mv package.xml %{pear_name}-%{version}/%{name}.xml |
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
51 |
|
|
52 |
|
|
53 |
%build |
%build |
58 |
rm -rf %{buildroot} docdir |
rm -rf %{buildroot} docdir |
59 |
|
|
60 |
pushd Log-%{version} |
pushd Log-%{version} |
61 |
%{__pear} install --nodeps --packagingroot %{buildroot} %{pear_name}.xml |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml |
62 |
|
|
63 |
# Clean up unnecessary files |
# Clean up unnecessary files |
64 |
rm -rf %{buildroot}%{pear_phpdir}/.??* |
rm -rf %{buildroot}%{pear_phpdir}/.??* |
65 |
|
|
66 |
# Install XML package description |
# Install XML package description |
67 |
%{__mkdir_p} %{buildroot}%{pear_xmldir} |
%{__mkdir_p} %{buildroot}%{pear_xmldir} |
68 |
%{__install} -pm 644 Log.xml %{buildroot}%{pear_xmldir} |
%{__install} -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} |
69 |
|
|
70 |
popd |
popd |
71 |
# Sort out documentation |
# Sort out documentation |
72 |
mv %{buildroot}%{pear_docdir}/%{pear_name}/docs docdir |
mv %{buildroot}%{pear_docdir}/%{pear_name}/docs docdir |
73 |
|
mv %{buildroot}%{pear_docdir}/%{pear_name}/examples docdir/examples |
74 |
|
|
75 |
|
|
76 |
%clean |
%clean |
84 |
# For documentation purpose only |
# For documentation purpose only |
85 |
# After install, as root : |
# After install, as root : |
86 |
# pear run-tests -p Log |
# pear run-tests -p Log |
87 |
# Should return |
# Should return (1.11.6) |
88 |
# 14 PASSED TESTS |
# 19 PASSED TESTS |
89 |
# 2 SKIPPED TESTS |
# 2 SKIPPED TESTS |
90 |
|
|
91 |
|
|
92 |
%post |
%post |
93 |
%{__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 || : |
94 |
|
|
95 |
|
|
96 |
%postun |
%postun |
106 |
%{pear_phpdir}/Log.php |
%{pear_phpdir}/Log.php |
107 |
%{pear_testdir}/Log |
%{pear_testdir}/Log |
108 |
%{pear_datadir}/Log |
%{pear_datadir}/Log |
109 |
%{pear_xmldir}/%{pear_name}.xml |
%{pear_xmldir}/%{name}.xml |
110 |
|
|
111 |
|
|
112 |
%changelog |
%changelog |
113 |
* Mon Sep 19 2011 Jonathan Martens <smeserver-bugzilla@snetram.nl> 1.9.13-2 |
* Sat Dec 26 2009 Remi Collet <Fedora@FamilleCollet.com> 1.11.6-1 |
114 |
- Prevent deprecated messages when using PHP 5.3+ [SME: 6726] |
- update to 1.11.6 |
115 |
|
|
116 |
|
* Sat Aug 08 2009 Remi Collet <Fedora@FamilleCollet.com> 1.11.5-1 |
117 |
|
- update to 1.11.5 |
118 |
|
- rename Log.xml to php-pear-Log.xml |
119 |
|
|
120 |
|
* Sat Nov 22 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.3-1 |
121 |
|
- update to 1.11.3 |
122 |
|
|
123 |
|
* Fri Sep 05 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.2-1 |
124 |
|
- update to 1.11.2 |
125 |
|
|
126 |
|
* Wed Aug 06 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.1-1 |
127 |
|
- update to 1.11.1 |
128 |
|
|
129 |
|
* Sat Jun 28 2008 Remi Collet <Fedora@FamilleCollet.com> 1.11.0-1 |
130 |
|
- update to 1.11.0 : switch from PHP to MIT license |
131 |
|
|
132 |
|
* Thu May 08 2008 Remi Collet <Fedora@FamilleCollet.com> 1.10.1-1 |
133 |
|
- update to 1.10.1 |
134 |
|
|
135 |
|
* Sat Jan 26 2008 Remi Collet <Fedora@FamilleCollet.com> 1.10.0-1 |
136 |
|
- update to 1.10.0 |
137 |
|
- add Requires php-pear(Mail) (new handler) |
138 |
|
- remove levels.patch (merged upstream) |
139 |
|
|
140 |
|
* Sat Jan 26 2008 Remi Collet <Fedora@FamilleCollet.com> 1.9.16-1 |
141 |
|
- update to 1.9.16 |
142 |
|
- add examples in documentation |
143 |
|
- add levels.patch http://pear.php.net/bugs/bug.php?id=12933 |
144 |
|
|
145 |
|
* Wed Jan 02 2008 Remi Collet <Fedora@FamilleCollet.com> 1.9.14-1 |
146 |
|
- update to 1.9.14 |
147 |
|
|
148 |
* 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 |
149 |
- update to 1.9.13 |
- update to 1.9.13 |