/[smeserver]/rpms/php-pear-Log/sme8/php-pear-Log.spec
ViewVC logotype

Annotation of /rpms/php-pear-Log/sme8/php-pear-Log.spec

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


Revision 1.5 - (hide annotations) (download)
Wed Sep 21 17:40:21 2011 UTC (13 years, 1 month ago) by snetram
Branch: MAIN
CVS Tags: php-pear-Log-1_11_6-1_el5_sme_1
Changes since 1.4: +1 -1 lines
* Wed Sep 21 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 1.11.6-1.el5-1
- Fix deprecated error message for webmail [SME: 6725]

1 slords 1.1 %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
2     %define pear_name Log
3    
4     Summary: Abstracted logging facility for PHP
5     Summary(fr): Abstraction des outils d'enregistrement de traces pour PHP
6     Name: php-pear-Log
7 slords 1.3 Version: 1.11.6
8 snetram 1.5 Release: 1%{?dist}.1
9 slords 1.3 License: MIT
10 slords 1.1 Group: Development/Libraries
11     Source: http://pear.php.net/get/Log-%{version}.tgz
12     Source2: xml2changelog
13 snetram 1.4 Patch0: php-pear-Log-1.11.6-prevent-deprecated-messages.patch
14     Patch1: php-pear-Log-1.11.6-update-checksum.patch
15 slords 1.3
16 slords 1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17     URL: http://pear.php.net/package/Log
18    
19     BuildArch: noarch
20     BuildRequires: php-pear >= 1:1.4.9-1.2
21     Requires: php-pear(PEAR) >= 1.4.9
22     Requires: php-pear(DB) >= 1.3
23     Requires: php-pear(MDB2) >= 2.0.0
24 slords 1.3 Requires: php-pear(Mail)
25 slords 1.1 Requires(post): %{__pear}
26     Requires(postun): %{__pear}
27     Provides: php-pear(Log) = %{version}
28    
29    
30     %description
31     The Log framework provides an abstracted logging system.
32     It supports logging to console, file, syslog, SQL, Sqlite, mail, and mcal
33     targets. It also provides a subject - observer mechanism.
34    
35     php-pear-Log can optionally use package "php-pear-DB" (version >= 1.3)
36     and "php-pear-MDB2" (version >= 2.0.0RC1).
37    
38    
39     %description -l fr
40     L'extension "log" fournit un sytème d'abstraction des enregistrements
41     de traces. Il gère l'affichage sur la console, l'enregistrement dans un
42     fichier, dans le "syslog", dans une base SQL ou Sqlite, l'envoi de mails
43     ou la création d'évenements à un calendrier "mcal".
44    
45     php-pear-Log peut optionellement utiliser les extensions
46     "php-pear-DB" (version >= 1.3) et "php-pear-MDB2" (version >= 2.0.0RC1).
47    
48    
49     %prep
50     %setup -c -q
51     %{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG
52 slords 1.3 mv package.xml %{pear_name}-%{version}/%{name}.xml
53 snetram 1.4 %patch0 -p1
54     %patch1 -p1
55 slords 1.1
56     %build
57     # Empty build section
58    
59    
60     %install
61     rm -rf %{buildroot} docdir
62    
63     pushd Log-%{version}
64 slords 1.3 %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
65 slords 1.1
66     # Clean up unnecessary files
67     rm -rf %{buildroot}%{pear_phpdir}/.??*
68    
69     # Install XML package description
70     %{__mkdir_p} %{buildroot}%{pear_xmldir}
71 slords 1.3 %{__install} -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
72 slords 1.1
73     popd
74     # Sort out documentation
75     mv %{buildroot}%{pear_docdir}/%{pear_name}/docs docdir
76 slords 1.3 mv %{buildroot}%{pear_docdir}/%{pear_name}/examples docdir/examples
77 slords 1.1
78    
79     %clean
80     rm -rf %{buildroot}
81    
82    
83     %check
84     lst=$(find %{buildroot}%{pear_phpdir} -exec grep -q %{buildroot} {} \; -print)
85     [ ! -z "$lst" ] && echo "Reference to BUILDROOT in $lst" && exit 1;
86    
87     # For documentation purpose only
88     # After install, as root :
89     # pear run-tests -p Log
90 slords 1.3 # Should return (1.11.6)
91     # 19 PASSED TESTS
92 slords 1.1 # 2 SKIPPED TESTS
93    
94    
95     %post
96 slords 1.3 %{__pear} install --nodeps --soft --force --register-only %{pear_xmldir}/%{name}.xml >/dev/null || :
97 slords 1.1
98    
99     %postun
100     if [ "$1" -eq "0" ]; then
101     %{__pear} uninstall --nodeps --ignore-errors --register-only %{pear_name} >/dev/null || :
102     fi
103    
104    
105     %files
106     %defattr(-,root,root,-)
107     %doc CHANGELOG docdir/*
108     %{pear_phpdir}/Log
109     %{pear_phpdir}/Log.php
110     %{pear_testdir}/Log
111     %{pear_datadir}/Log
112 slords 1.3 %{pear_xmldir}/%{name}.xml
113 slords 1.1
114    
115     %changelog
116 snetram 1.4 * Wed Sep 21 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 1.11.6-1.el5-1
117     - Fix deprecated error message for webmail [SME: 6725]
118    
119 slords 1.3 * 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 snetram 1.2
154 slords 1.1 * Thu Dec 13 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.13-1
155     - update to 1.9.13
156     - add documentation in %%check (post install only)
157    
158     * Wed Dec 12 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.12-1
159     - update to 1.9.12
160    
161     * Fri Aug 24 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.11-2
162     - Fix License
163    
164     * Sat May 02 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.11-1
165     - update to 1.9.11
166    
167     * Mon Feb 12 2007 Remi Collet <Fedora@FamilleCollet.com> 1.9.10-1
168     - update to 1.9.10
169     - All tests succeed with php-5.2.x : http://pear.php.net/bugs/bug.php?id=9023
170    
171     * Sat Oct 28 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.9-1
172     - update to 1.9.9
173    
174     * Sat Sep 16 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-6
175     - add CHANGELOG to %%doc
176    
177     * Fri Sep 07 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-5.fc5.1
178     - rebuild for FC5
179    
180     * Thu Sep 07 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-5
181     - BR php-pear >= 1:1.4.9-1.2
182    
183     * Thu Sep 07 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-4
184     - last template.spec
185    
186     * Mon Sep 04 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-3
187     - new and simpler %%prep and %%install
188    
189     * Sat Sep 02 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-2
190     - failsafe scriplet
191    
192     * Tue Aug 01 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.8-1
193     - update to 1.9.8
194    
195     * Tue Jul 11 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.7-1
196     - update to 1.9.7
197     - use new macros from /etc/rpm/macros.pear
198    
199     * Tue May 30 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.6-1
200     - install Licence in prep
201     - update to 1.9.6
202    
203     * Mon May 15 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.5-3
204     - Require pear >= 1.4.9
205     - Requires(hint): (only comment actually) + description
206     - bundle the v3.01 PHP LICENSE file (as in php-pear)
207     - use --packagingroot (instead of -R)
208     - check from install to check (as in php-pear)
209    
210     * Sat May 06 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.5-2
211     - cleanning (description-line-too-long)
212    
213     * Sat May 06 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.5-1
214     - use %%{_datadir}/pear/.pkgxml for XML (Bug #190252)
215     - update to 1.9.5
216     - workaround for buggy pear 1.4.6 installer
217    
218     * Thu Apr 27 2006 Remi Collet <Fedora@FamilleCollet.com> 1.9.4-1
219     - spec for extras
220     - add french summary & description
221    
222     * Wed Apr 26 2006 Remi Collet <rpms@FamilleCollet.com> 1.9.4-1.fc{3,4,5}.remi
223     - update to 1.9.4
224    
225     * Thu Apr 06 2006 Remi Collet <rpms@FamilleCollet.com> 1.9.3-1.fc{3,4,5}.remi
226     - initial RPM

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