Add README.fedora and php-mysql requires

This commit is contained in:
John Berninger 2006-07-04 05:24:52 +00:00
commit ab62f59ca5

View file

@ -3,15 +3,16 @@ URL: http://www.wordpress.org
Name: wordpress
Version: 2.0.3
Group: Applications/Publishing
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL
# Source0 with name-version does not work for web retrieval,
# latest.tar.gz does not work for build
# Source0: http://wordpress.org/latest.tar.gz
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
Source1: wordpress-httpd-conf
Source2: README.fedora.wordpress
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: php >= 4.1.0, httpd, mysql-server
Requires: php >= 4.1.0, httpd, mysql-server, php-mysql
BuildArch: noarch
%description
@ -29,6 +30,7 @@ cp -pr * ${RPM_BUILD_ROOT}%{_datadir}/wordpress
cat wp-config-sample.php | sed -e "s|dirname(__FILE__).'/'|'/usr/share/wordpress/'|g" > \
${RPM_BUILD_ROOT}%{_sysconfdir}/wordpress/wp-config.php
/bin/ln -sf ../../../etc/wordpress/wp-config.php ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-config.php
/bin/cp %{SOURCE2} ./README.fedora
# Remove empty files to make rpmlint happy
find ${RPM_BUILD_ROOT} -empty -exec rm -f {} \;
# These are docs, remove them from here, docify them later
@ -47,6 +49,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_datadir}/wordpress/index.php
%doc license.txt
%doc readme.html
%doc README.fedora
%{_datadir}/wordpress/wp-atom.php
%{_datadir}/wordpress/wp-blog-header.php
%{_datadir}/wordpress/wp-comments-post.php
@ -69,6 +72,10 @@ rm -rf ${RPM_BUILD_ROOT}
%dir %{_sysconfdir}/wordpress
%changelog
* Tue Jul 4 2006 John Berninger <jwb at redhat dot com> - 2.0.3-2
- Add a README.fedora file
- Add php-mysql requires
* Tue Jun 20 2006 John Berninger <jwb at redhat dot com> - 2.0.3-2
- Remove use of installprefix macro
- %{_datadir}/wordpress/wp-config.php is not a config file