mirror of
https://abf.rosa.ru/djam/php-pear-HTTP_WebDAV_Client.git
synced 2025-02-23 08:42:55 +00:00
Fix empty scripts
This commit is contained in:
parent
b3ffeed8e7
commit
a311d836d4
1 changed files with 1 additions and 21 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
Name: php-pear-%{upstream_name}
|
||||
Version: 1.0.2
|
||||
Release: %mkrel 1
|
||||
Release: 2
|
||||
Summary: WebDAV stream wrapper class
|
||||
License: PHP License
|
||||
Group: Development/PHP
|
||||
|
@ -15,7 +15,6 @@ Requires(preun): php-pear
|
|||
Requires: php-pear
|
||||
BuildArch: noarch
|
||||
BuildRequires: php-pear
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||
|
||||
%description
|
||||
RFC2518 compliant stream wrapper that allows to use WebDAV server
|
||||
|
@ -26,8 +25,6 @@ resources like a regular file system from within PHP.
|
|||
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
cd %{upstream_name}-%{version}
|
||||
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
|
||||
rm -rf %{buildroot}%{_datadir}/pear/.??*
|
||||
|
@ -39,23 +36,6 @@ rm -rf %{buildroot}%{_datadir}/pear/data
|
|||
install -d %{buildroot}%{_datadir}/pear/packages
|
||||
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%if %mdkversion < 201000
|
||||
pear install --nodeps --soft --force --register-only \
|
||||
%{_datadir}/pear/packages/%{upstream_name}.xml >/dev/null || :
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %mdkversion < 201000
|
||||
if [ "$1" -eq "0" ]; then
|
||||
pear uninstall --nodeps --ignore-errors --register-only \
|
||||
%{upstream_name} >/dev/null || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/pear/%{_class}
|
||||
|
|
Loading…
Add table
Reference in a new issue