1 |
spuhler |
121476 |
%define prj Horde_Test |
2 |
|
|
|
3 |
|
|
%define xmldir %{_var}/lib/pear |
4 |
|
|
%define peardir %(pear config-get php_dir 2> /dev/null) |
5 |
|
|
|
6 |
|
|
Name: horde-test |
7 |
|
|
Version: 1.1.2 |
8 |
|
|
Release: %mkrel 1 |
9 |
|
|
Summary: Horde command-line argument parsing package |
10 |
|
|
License: LGPL |
11 |
|
|
Group: Networking/Mail |
12 |
|
|
Url: http://pear.horde.org/index.php?package=%{prj} |
13 |
|
|
Source0: %{prj}-%{version}.tgz |
14 |
|
|
BuildArch: noarch |
15 |
|
|
Requires(pre): php-pear |
16 |
|
|
Requires: php-pear |
17 |
|
|
Requires: php-pear-channel-horde |
18 |
|
|
BuildRequires: php-pear |
19 |
|
|
BuildRequires: php-pear-channel-horde |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
This package provides classes for parsing command line arguments with |
24 |
|
|
various actions, providing help, grouping options, and more. |
25 |
|
|
|
26 |
|
|
%prep |
27 |
|
|
%setup -q -n %{prj}-%{version} |
28 |
|
|
|
29 |
|
|
%build |
30 |
|
|
%__mv ../package*.xml . |
31 |
|
|
|
32 |
|
|
%install |
33 |
|
|
pear install --packagingroot %{buildroot} --nodeps package.xml |
34 |
|
|
|
35 |
|
|
%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} |
36 |
|
|
|
37 |
|
|
%__mkdir_p %{buildroot}%{xmldir} |
38 |
|
|
%__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml |
39 |
|
|
|
40 |
|
|
%clean |
41 |
|
|
%__rm -rf %{buildroot} |
42 |
|
|
|
43 |
|
|
%post |
44 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml |
45 |
|
|
|
46 |
|
|
%postun |
47 |
|
|
if [ "$1" -eq "0" ]; then |
48 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj} |
49 |
|
|
fi |
50 |
|
|
|
51 |
|
|
%files |
52 |
|
|
%defattr(-, root, root) |
53 |
|
|
%{xmldir}/%{prj}.xml |
54 |
|
|
%{peardir}/Horde/Test/AllTests.php |
55 |
|
|
%{peardir}/Horde/Test/Application.php |
56 |
|
|
%{peardir}/Horde/Test/Autoload.php |
57 |
|
|
%{peardir}/Horde/Test/Case.php |
58 |
|
|
%{peardir}/Horde/Test/Exception.php |
59 |
|
|
%{peardir}/Horde/Test/Functional.php |
60 |
|
|
%{peardir}/Horde/Test/Log.php |
61 |
|
|
%{peardir}/Horde/Test/Stub/Cli.php |
62 |
|
|
%{peardir}/Horde/Test/Stub/Parser.php |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|