1 |
unnilennium |
1.1 |
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) |
2 |
|
|
%define xmldir /var/lib/pear |
3 |
|
|
%global pear_name HTTP_WebDAV_Server |
4 |
unnilennium |
1.2 |
%define name php-pear-HTTP_WebDAV_Server |
5 |
|
|
%define version 1.0.0RC8 |
6 |
|
|
%define release 3 |
7 |
|
|
|
8 |
|
|
Name: %{name} |
9 |
|
|
Version: %{version} |
10 |
|
|
Release: %{release}%{?dist} |
11 |
unnilennium |
1.1 |
Summary: WebDAV Server Baseclass |
12 |
|
|
License: New BSD License |
13 |
|
|
Group: Development/Libraries |
14 |
|
|
Source0: http://pear.php.net/get/HTTP_WebDAV_Server-%{version}.tgz |
15 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) |
16 |
|
|
URL: http://pear.php.net/package/HTTP_WebDAV_Server |
17 |
|
|
|
18 |
|
|
BuildRequires: php-pear(PEAR) >= 1.4.7 |
19 |
|
|
Provides: php-pear(%{pear_name}) = %{version} |
20 |
|
|
|
21 |
|
|
#BuildRequires: PEAR::PEAR >= 1.4.7 |
22 |
|
|
|
23 |
|
|
BuildArch: noarch |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
RFC2518 compliant helper class for WebDAV server implementation. |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -c -T |
30 |
|
|
pear -v -c pearrc \ |
31 |
|
|
-d php_dir=%{peardir} \ |
32 |
|
|
-d doc_dir=/docs \ |
33 |
|
|
-d bin_dir=%{_bindir} \ |
34 |
|
|
-d data_dir=%{peardir}/data \ |
35 |
|
|
-d test_dir=%{peardir}/tests \ |
36 |
|
|
-d ext_dir=%{_libdir} \ |
37 |
|
|
-s |
38 |
|
|
|
39 |
|
|
%build |
40 |
|
|
|
41 |
|
|
%install |
42 |
|
|
rm -rf %{buildroot} |
43 |
|
|
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} |
44 |
|
|
|
45 |
|
|
# Clean up unnecessary files |
46 |
|
|
rm pearrc |
47 |
|
|
rm %{buildroot}/%{peardir}/.filemap |
48 |
|
|
rm %{buildroot}/%{peardir}/.lock |
49 |
|
|
rm -rf %{buildroot}/%{peardir}/.registry |
50 |
|
|
rm -rf %{buildroot}%{peardir}/.channels |
51 |
unnilennium |
1.2 |
rm %{buildroot}/%{xmldir}/.filemap |
52 |
|
|
rm %{buildroot}/%{xmldir}/.lock |
53 |
|
|
rm -rf %{buildroot}/%{xmldir}/.registry |
54 |
|
|
rm -rf %{buildroot}/%{xmldir}/.channels |
55 |
|
|
if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then |
56 |
|
|
rm %{buildroot}%{xmldir}/.depdb |
57 |
|
|
fi |
58 |
|
|
if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then |
59 |
|
|
rm %{buildroot}%{xmldir}/.depdblock |
60 |
|
|
fi |
61 |
unnilennium |
1.1 |
mv %{buildroot}/docs . |
62 |
|
|
|
63 |
|
|
|
64 |
|
|
# Install XML package description |
65 |
|
|
mkdir -p %{buildroot}%{xmldir} |
66 |
|
|
tar -xzf %{SOURCE0} package.xml |
67 |
|
|
cp -p package.xml %{buildroot}%{xmldir}/HTTP_WebDAV_Server.xml |
68 |
|
|
|
69 |
|
|
%clean |
70 |
|
|
rm -rf %{buildroot} |
71 |
|
|
|
72 |
|
|
%post |
73 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/HTTP_WebDAV_Server.xml >/dev/null || : |
74 |
|
|
|
75 |
|
|
%postun |
76 |
|
|
if [ "$1" -eq "0" ]; then |
77 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.php.net/HTTP_WebDAV_Server >/dev/null || : |
78 |
|
|
fi |
79 |
|
|
|
80 |
|
|
%files |
81 |
|
|
%defattr(-,root,root) |
82 |
|
|
%doc docs/HTTP_WebDAV_Server/* |
83 |
|
|
%{peardir}/* |
84 |
|
|
%{xmldir}/HTTP_WebDAV_Server.xml |
85 |
|
|
|
86 |
|
|
%changelog |
87 |
unnilennium |
1.2 |
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0RC8-3.sme |
88 |
|
|
- importing to buildsys pear packages for Horde [SME: 9600] |
89 |
|
|
|
90 |
unnilennium |
1.1 |
* Mon Jun 24 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.0RC8-2 |
91 |
|
|
- updated spec file requires section, and left original info remarked. |
92 |
|
|
|
93 |
|
|
* Mon Jun 24 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.0RC8-1 |
94 |
|
|
- Original build from pear-make-rpm-spec. |