Changes of Revision 8
[-] | Changed | php-sqlite2.spec |
x 1
2 %install 3 ##make INSTALL_ROOT=%{buildroot} install 4 %__install -D -m0755 modules/sqlite.so %{buildroot}%{php_extdir}/sqlite.so 5 -%{__mkdir_p} %{buildroot}%{pecl_xmldir} 6 -%{__install} -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml 7 - 8 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d 9 %{__cat} > %{buildroot}%{_sysconfdir}/php.d/sqlite2.ini << 'EOF' 10 ; Enable sqlite2 extension module 11 -extension = sqlite2.so 12 +extension = sqlite.so 13 EOF 14 15 16 -%if 0%{?pecl_install:1} 17 -%post 18 -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : 19 -%endif 20 - 21 -%if 0%{?pecl_uninstall:1} 22 -%postun 23 -if [ $1 -eq 0 ] ; then 24 - %{pecl_uninstall} %{pecl_name} >/dev/null || : 25 -fi 26 -%endif 27 - 28 %clean 29 rm -rf %{buildroot} 30 31
32 %defattr(-,root,root) 33 %doc CREDITS README TODO 34 %config(noreplace) %{_sysconfdir}/php.d/sqlite2.ini 35 -%{pecl_xmldir}/%{name}.xml 36 %{php_extdir}/sqlite.so 37 38 %changelog 39 |