1 |
spuhler |
5138 |
%define prj Horde_Text_Filter |
2 |
|
|
|
3 |
|
|
%define xmldir %{_var}/lib/pear |
4 |
|
|
%define peardir %(pear config-get php_dir 2> /dev/null) |
5 |
|
|
|
6 |
|
|
Name: horde-text-filter |
7 |
|
|
Version: 0.0.2 |
8 |
|
|
Release: %mkrel 3 |
9 |
|
|
Summary: Horde Text Filter API |
10 |
|
|
License: LGPL |
11 |
|
|
Group: Networking/Mail |
12 |
danf |
1780044 |
Url: https://pear.horde.org/#horde_text_filter |
13 |
spuhler |
5138 |
Source0: %{prj}-%{version}.tgz |
14 |
|
|
BuildArch: noarch |
15 |
|
|
Requires(pre): php-pear |
16 |
|
|
Requires: horde-util |
17 |
|
|
Requires: horde-text-rest |
18 |
|
|
Requires: php-gettext |
19 |
|
|
BuildRequires: php-pear |
20 |
|
|
BuildRequires: php-pear-channel-horde |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
The Text_Filter:: class provides common methods for fitering and |
25 |
|
|
converting text. |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -q -n %{prj}-%{version} |
30 |
|
|
|
31 |
|
|
%build |
32 |
pterjan |
1583331 |
mv ../package.xml . |
33 |
spuhler |
5138 |
|
34 |
|
|
%install |
35 |
|
|
pear install --packagingroot %{buildroot} --nodeps package.xml |
36 |
|
|
|
37 |
|
|
%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} |
38 |
|
|
|
39 |
|
|
%__mkdir_p %{buildroot}%{xmldir} |
40 |
pterjan |
1583331 |
cp package.xml %{buildroot}%{xmldir}/%{prj}.xml |
41 |
spuhler |
5138 |
|
42 |
|
|
%clean |
43 |
|
|
%__rm -rf %{buildroot} |
44 |
|
|
|
45 |
|
|
%post |
46 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml |
47 |
|
|
|
48 |
|
|
%postun |
49 |
|
|
if [ "$1" -eq "0" ]; then |
50 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj} |
51 |
|
|
fi |
52 |
|
|
|
53 |
|
|
%files |
54 |
|
|
%defattr(-, root, root) |
55 |
|
|
%{xmldir}/%{prj}.xml |
56 |
|
|
%dir %{peardir}/Horde/Text |
57 |
|
|
%dir %{peardir}/Horde/Text/Filter |
58 |
|
|
%{peardir}/Horde/Text/Filter.php |
59 |
|
|
%{peardir}/Horde/Text/Filter/bbcode.php |
60 |
|
|
%{peardir}/Horde/Text/Filter/cleanascii.php |
61 |
|
|
%{peardir}/Horde/Text/Filter/dimsignature.php |
62 |
|
|
%{peardir}/Horde/Text/Filter/emails.php |
63 |
|
|
%{peardir}/Horde/Text/Filter/emoticons.php |
64 |
|
|
%{peardir}/Horde/Text/Filter/environment.php |
65 |
|
|
%{peardir}/Horde/Text/Filter/highlightquotes.php |
66 |
|
|
%{peardir}/Horde/Text/Filter/html2text.php |
67 |
|
|
%{peardir}/Horde/Text/Filter/linkurls.php |
68 |
|
|
%{peardir}/Horde/Text/Filter/rst.php |
69 |
|
|
%{peardir}/Horde/Text/Filter/simplemarkup.php |
70 |
|
|
%{peardir}/Horde/Text/Filter/space2html.php |
71 |
|
|
%{peardir}/Horde/Text/Filter/tabs2spaces.php |
72 |
|
|
%{peardir}/Horde/Text/Filter/text2html.php |
73 |
|
|
%{peardir}/Horde/Text/Filter/words.php |
74 |
|
|
%{peardir}/Horde/Text/Filter/xss.php |
75 |
|
|
%dir %{peardir}/tests/Horde_Text_Filter |
76 |
|
|
%dir %{peardir}/tests/Horde_Text_Filter/tests |
77 |
|
|
%{peardir}/tests/Horde_Text_Filter/tests/Filter_emails.phpt |
78 |
|
|
%{peardir}/tests/Horde_Text_Filter/tests/Filter_environment.phpt |
79 |
|
|
%{peardir}/tests/Horde_Text_Filter/tests/Filter_html2text.phpt |
80 |
|
|
%{peardir}/tests/Horde_Text_Filter/tests/Filter_html2text2.phpt |
81 |
|
|
%{peardir}/tests/Horde_Text_Filter/tests/Filter_space2html.phpt |
82 |
|
|
|
83 |
|
|
|