foreach( $configFile as $line ) {
fwrite($handle, $line);
}
+--- wordpress-3.0.1/wp-config.php~ 2010-09-08 12:02:37.000000000 +0300
++++ wordpress-3.0.1/wp-config.php 2010-09-08 12:05:20.193097026 +0300
+@@ -16,13 +16,13 @@
+
+ // ** MySQL settings - You can get this info from your web host ** //
+ /** The name of the database for WordPress */
+-define('DB_NAME', 'database_name_here');
++define('DB_NAME', 'wordpress');
+
+ /** MySQL database username */
+-define('DB_USER', 'username_here');
++define('DB_USER', 'mysql');
+
+ /** MySQL database password */
+-define('DB_PASSWORD', 'password_here');
++define('DB_PASSWORD', '');
+
+ /** MySQL hostname */
+ define('DB_HOST', 'localhost');
Summary(pl.UTF-8): Osobisty system publikacji
Name: wordpress
Version: 3.0.1
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications/Publishing
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
%prep
%setup -qc
mv %{name}/* . && rmdir %{name}
+%undos -f php,js,html
+cp -a wp-config{-sample,}.php
%patch0 -p1
cp -a %{SOURCE3} .
rm -f license.txt
cp -a %{SOURCE10} wp-includes/rss.php
cp -a %{SOURCE11} wp-includes/rss-functions.php
-%undos -f php,js,html
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_sysconfdir},%{_appdir}/wp-content/languages}
cp -a . $RPM_BUILD_ROOT%{_appdir}
-cp -a wp-config-sample.php $RPM_BUILD_ROOT%{_sysconfdir}/wp-config.php
+mv $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}/wp-config.php
rm -f $RPM_BUILD_ROOT%{_appdir}/readme.html
rm -f $RPM_BUILD_ROOT%{_appdir}/wp-setup.txt