]>
Commit | Line | Data |
---|---|---|
8b5d4e07 ER |
1 | %define status stable |
2 | %define pearname Horde_Text_Diff | |
8b5d4e07 ER |
3 | Summary: %{pearname} - Engine for performing and rendering text diffs |
4 | Name: php-horde-Horde_Text_Diff | |
010e855f | 5 | Version: 1.0.2 |
8b5d4e07 ER |
6 | Release: 1 |
7 | License: LGPL | |
8 | Group: Development/Languages/PHP | |
9 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
010e855f | 10 | # Source0-md5: 3b4c1891e0501b77605d89948bc909bc |
ae95e746 | 11 | URL: https://github.com/horde/horde/tree/master/framework/Text_Diff/ |
8b5d4e07 ER |
12 | BuildRequires: php-channel(pear.horde.org) |
13 | BuildRequires: php-packagexml2cl | |
14 | BuildRequires: php-pear-PEAR >= 1:1.7.0 | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.610 | |
17 | Requires: php-channel(pear.horde.org) | |
18 | Requires: php-horde-Horde_Exception < 2.0.0 | |
19 | Requires: php-horde-Horde_Util < 2.0.0 | |
3742695b | 20 | Requires: php-pear >= 4:1.3.6-2 |
859ec48c | 21 | Suggests: php(xdiff) |
8b5d4e07 ER |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | # exclude optional dependencies | |
26 | %define _noautoreq pear(xdiff.*) | |
27 | ||
28 | %description | |
29 | This package provides a text-based diff engine and renderers for | |
30 | multiple diff output formats. | |
31 | ||
32 | In PEAR status of this package is: %{status}. | |
33 | ||
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | %build | |
38 | packagexml2cl package.xml > ChangeLog | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
43 | %pear_package_install | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %post -p <lua> | |
49 | %pear_package_print_optionalpackages | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc ChangeLog install.log | |
54 | %doc optional-packages.txt | |
55 | %doc docs/Horde_Text_Diff/* | |
56 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
8b5d4e07 ER |
57 | %{php_pear_dir}/Horde/Text/Diff.php |
58 | %{php_pear_dir}/Horde/Text/Diff |