Changes of Revision 2
[-] | Changed | php-pecl-zip.spec |
x 1
2 make -C NTS install INSTALL_ROOT=%{buildroot} 3 install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} 4 5 -# Install XML package description 6 -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml 7 8 %if %{with_zts} 9 make -C ZTS install INSTALL_ROOT=%{buildroot} 10
11 %clean 12 rm -rf %{buildroot} 13 14 -%if 0%{?fedora} < 24 15 -# when pear installed alone, after us 16 -%triggerin -- %{?scl_prefix}php-pear 17 -if [ -x %{__pecl} ] ; then 18 - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : 19 -fi 20 - 21 -# posttrans as pear can be installed after us 22 -%posttrans 23 -if [ -x %{__pecl} ] ; then 24 - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : 25 -fi 26 - 27 -%postun 28 -if [ $1 -eq 0 -a -x %{__pecl} ] ; then 29 - %{pecl_uninstall} %{pecl_name} >/dev/null || : 30 -fi 31 -%endif 32 33 34 %files 35 %defattr(-, root, root, -) 36 %{?_licensedir:%license NTS/LICENSE} 37 %doc %{pecl_docdir}/%{pecl_name} 38 -%{pecl_xmldir}/%{name}.xml 39 40 %config(noreplace) %{php_inidir}/%{ini_name} 41 %{php_extdir}/%{pecl_name}.so 42 |