rpms/wordpress/FC-5 README.fedora.wordpress, NONE, 1.1 wordpress.spec, 1.1, 1.2
John Berninger (jwb)
fedora-extras-commits at redhat.com
Tue Jul 4 05:23:21 UTC 2006
Author: jwb
Update of /cvs/extras/rpms/wordpress/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv508
Modified Files:
wordpress.spec
Added Files:
README.fedora.wordpress
Log Message:
Add a README.fedora file
Add php-mysql requires
--- NEW FILE README.fedora.wordpress ---
Wordpress is a database driven blogging program designed to make it exceedingly
easy to publish an online blog, sometimes also called a weblog or journal.
Once this package is installed, there are a few configuration items which need
to be performed before the blog is usable. First, you need to establish a
username and password to connect to your MySQL database as, and make both
MySQL and Wordpress aware of this. Let's start by creating the database and the
username / password inside MySQL first:
# mysql
mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on wordpress.* to wordpress identified by 'wordpress';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
#
This has created an empty database called 'wordpress', created a user named
'wordpress' with a password of 'wordpress', and given the 'wordpress' user total
permission over the 'wordpress' database. Obviously, you'll want to select a
different password, and you may want to choose different database and user
names depending on your installation. The specific values you choose are
not constrained, they simply need to be consistent between the database and the
config file.
Next, you need to edit your /etc/wordpress/wp-config.php file to reflect the
values you've chosen. These values will go in the appropriate places at the
beginning of that file.
Once that's done and the database server and web server have been started,
open a web browser to http://localhost/wordpress/wp-admin/install.php and
follow the instructions given to you on the pages you see to set up the
database tables and begin publishing your blog.
Index: wordpress.spec
===================================================================
RCS file: /cvs/extras/rpms/wordpress/FC-5/wordpress.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wordpress.spec 20 Jun 2006 15:10:54 -0000 1.1
+++ wordpress.spec 4 Jul 2006 05:23:21 -0000 1.2
@@ -3,15 +3,16 @@
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 @@
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 @@
%{_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 @@
%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
More information about the scm-commits
mailing list