77;20202;0ccatbody - よくきたWiki

Loading ...


*1

Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
Name: php

Release: 1
License: The PHP Lisence
Group: Development/Languages
URL: http://www.php.net/
Source0: %{name}-%{version}.tar.bz2
Source1: httpd-php.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: httpd-devel, imap-devel, postgresql-devel
Requires: httpd, postgresql-libs

*2

LoadModule php4_module modules/libphp4.so
Addtype application/x-httpd-php .php
DirectoryIndex index.php

%prep
%setup -q

%define php_pear_dir %{_datadir}/php4/pear
%build
%configure \
 --with-apxs2=%{_sbindir}/apxs \
 --with-imap --with-pgsql --with-mysql --with-openssl --with-kerberos --enable-mbstring \
 --with-pear=%{php_pear_dir}
%__make

%install
rm -rf ${RPM_BUILD_ROOT}

%__mkdir -p ${RPM_BUILD_ROOT}/etc
%__make install INSTALL_ROOT=${RPM_BUILD_ROOT} INSTALL_IT=echo
%__cp php.ini-dist ${RPM_BUILD_ROOT}/etc/php.ini
%__cp %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/httpd/conf.d/php.conf

pushd ${RPM_BUILD_ROOT}
 touch ${RPM_BUILD_DIR}/%{name}-%{version}/php-filelist
 find .%{_bindir} -type f | sed 's;^./;/;' >> ${RPM_BUILD_DIR}/%{name}-%{version}/php-filelist
 find .%{_libdir} -type f | sed 's;^./;/;' >> ${RPM_BUILD_DIR}/%{name}-%{version}/php-filelist
 find .%{php_pear_dir} -type f | sed 's;^./;/;' >> ${RPM_BUILD_DIR}/%{name}-%{version}/php-filelist
popd

socket=/var/lib/mysql/mysql.sock

[elf@phpmook-fc1 SPECS]$ grep mysql.default_socket php-4.3.7/php.ini-dist 
mysql.default_socket =

%__cat php.ini-dist | %__sed 's;mysql.default_socket =\

$;mysql.default_socket = "/var/lib/mysql/mysql.sock";' > ${RPM_BUILD_ROOT}/etc/php.ini

%clean
rm -rf ${RPM_BUILD_ROOT}

%files -f php-filelist
%defattr(-,root,root,-)
%doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
%doc Zend/ZEND_*
%config(noreplace) /etc/*

changelog

%changelog
* Mon Jul  5 2004 Tadashi Jokagi <elf@elf.no-ip.org> 
- Initial build.

[elf@phpmook]$ rpmbuild -ba mook-php.spec



*1
*2
リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
最終修正日時: Tue, 07 Feb 2006 12:08:49 JST (5033d)
文字数(HTML): 2020
文字数(Wiki): 4517
人気ブログランキング - よくきた wiki