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}
|
Name: php-pear-%{upstream_name}
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: %mkrel 1
|
Release: 2
|
||||||
Summary: WebDAV stream wrapper class
|
Summary: WebDAV stream wrapper class
|
||||||
License: PHP License
|
License: PHP License
|
||||||
Group: Development/PHP
|
Group: Development/PHP
|
||||||
|
@ -15,7 +15,6 @@ Requires(preun): php-pear
|
||||||
Requires: php-pear
|
Requires: php-pear
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: php-pear
|
BuildRequires: php-pear
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
RFC2518 compliant stream wrapper that allows to use WebDAV server
|
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
|
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
cd %{upstream_name}-%{version}
|
cd %{upstream_name}-%{version}
|
||||||
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
|
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
|
||||||
rm -rf %{buildroot}%{_datadir}/pear/.??*
|
rm -rf %{buildroot}%{_datadir}/pear/.??*
|
||||||
|
@ -39,23 +36,6 @@ rm -rf %{buildroot}%{_datadir}/pear/data
|
||||||
install -d %{buildroot}%{_datadir}/pear/packages
|
install -d %{buildroot}%{_datadir}/pear/packages
|
||||||
install -m 644 %{upstream_name}.xml %{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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/pear/%{_class}
|
%{_datadir}/pear/%{_class}
|
||||||
|
|
Loading…
Add table
Reference in a new issue