John Berninger 5247492
Summary: WordPress blogging software
John Berninger 5247492
URL: http://www.wordpress.org
John Berninger 5247492
Name: wordpress
John Berninger c7ecefd
Version: 2.0.4
John Berninger 5247492
Group: Applications/Publishing
John Berninger c7ecefd
Release: 0%{?dist}
John Berninger 5247492
License: GPL
John Berninger 5247492
# Source0 with name-version does not work for web retrieval, 
John Berninger 5247492
# latest.tar.gz does not work for build
John Berninger 5247492
# Source0: http://wordpress.org/latest.tar.gz
John Berninger 5247492
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
John Berninger 5247492
Source1: wordpress-httpd-conf
John Berninger ab62f59
Source2: README.fedora.wordpress
John Berninger 5247492
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
John Berninger ab62f59
Requires: php >= 4.1.0, httpd, mysql-server, php-mysql
John Berninger 5247492
BuildArch: noarch
John Berninger 5247492
John Berninger 5247492
%description
John Berninger 5247492
Wordpress is an online publishing / weblog package that makes it very easy,
John Berninger 5247492
almost trivial, to get information out to people on the web.
John Berninger 5247492
John Berninger 5247492
%prep
John Berninger 5247492
%setup -q -n wordpress
John Berninger 5247492
John Berninger 5247492
%install
John Berninger 5247492
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/wordpress
John Berninger 5247492
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/wordpress
John Berninger 5247492
install -m 0644 -D -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/wordpress.conf
John Berninger 5247492
cp -pr * ${RPM_BUILD_ROOT}%{_datadir}/wordpress
John Berninger 5247492
cat wp-config-sample.php | sed -e "s|dirname(__FILE__).'/'|'/usr/share/wordpress/'|g" > \
John Berninger 5247492
    ${RPM_BUILD_ROOT}%{_sysconfdir}/wordpress/wp-config.php
John Berninger 5247492
/bin/ln -sf ../../../etc/wordpress/wp-config.php ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-config.php
John Berninger ab62f59
/bin/cp %{SOURCE2} ./README.fedora
John Berninger 5247492
# Remove empty files to make rpmlint happy
John Berninger 5247492
find ${RPM_BUILD_ROOT} -empty -exec rm -f {} \;
John Berninger 5247492
# These are docs, remove them from here, docify them later
John Berninger 5247492
rm -f ${RPM_BUILD_ROOT}%{_datadir}/wordpress/{license.txt,readme.html}
John Berninger 5247492
John Berninger 5247492
%clean
John Berninger 5247492
rm -rf ${RPM_BUILD_ROOT}
John Berninger 5247492
John Berninger 5247492
%files
John Berninger 5247492
%defattr(-,root,root,-)
John Berninger 5247492
%config(noreplace) %{_sysconfdir}/httpd/conf.d/wordpress.conf
John Berninger 5247492
%dir %{_datadir}/wordpress
John Berninger 5247492
%{_datadir}/wordpress/wp-admin
John Berninger 5247492
%{_datadir}/wordpress/wp-content
John Berninger 5247492
%{_datadir}/wordpress/wp-includes
John Berninger 5247492
%{_datadir}/wordpress/index.php
John Berninger 5247492
%doc license.txt
John Berninger 5247492
%doc readme.html
John Berninger ab62f59
%doc README.fedora
John Berninger 5247492
%{_datadir}/wordpress/wp-atom.php
John Berninger 5247492
%{_datadir}/wordpress/wp-blog-header.php
John Berninger 5247492
%{_datadir}/wordpress/wp-comments-post.php
John Berninger 5247492
%{_datadir}/wordpress/wp-commentsrss2.php
John Berninger 5247492
%{_datadir}/wordpress/wp-config-sample.php
John Berninger 5247492
%{_datadir}/wordpress/wp-config.php
John Berninger 5247492
%config(noreplace) %{_sysconfdir}/wordpress/wp-config.php
John Berninger 5247492
%{_datadir}/wordpress/wp-feed.php
John Berninger 5247492
%{_datadir}/wordpress/wp-links-opml.php
John Berninger 5247492
%{_datadir}/wordpress/wp-login.php
John Berninger 5247492
%{_datadir}/wordpress/wp-mail.php
John Berninger 5247492
%{_datadir}/wordpress/wp-pass.php
John Berninger 5247492
%{_datadir}/wordpress/wp-rdf.php
John Berninger 5247492
%{_datadir}/wordpress/wp-register.php
John Berninger 5247492
%{_datadir}/wordpress/wp-rss.php
John Berninger 5247492
%{_datadir}/wordpress/wp-rss2.php
John Berninger 5247492
%{_datadir}/wordpress/wp-settings.php
John Berninger 5247492
%{_datadir}/wordpress/wp-trackback.php
John Berninger 5247492
%{_datadir}/wordpress/xmlrpc.php
John Berninger 5247492
%dir %{_sysconfdir}/wordpress
John Berninger 5247492
John Berninger 5247492
%changelog
John Berninger c7ecefd
* Sat Aug 12 2006 John Berninger <jwb at redhat dot com> - 2.0.4-0
John Berninger c7ecefd
- Upstream security vulns - bz 201989
John Berninger c7ecefd
John Berninger 7170750
* Sun Jul 23 2006 John Berninger <jwb at redhat dot com> - 2.0.3-4
John Berninger 7170750
- Fix broken upgrade path from FE4
John Berninger 7170750
John Berninger efd2813
* Tue Jul  4 2006 John Berninger <jwb at redhat dot com> - 2.0.3-3
John Berninger ab62f59
- Add a README.fedora file
John Berninger ab62f59
- Add php-mysql requires
John Berninger ab62f59
John Berninger 5247492
* Tue Jun 20 2006 John Berninger <jwb at redhat dot com> - 2.0.3-2
John Berninger 5247492
- Remove use of installprefix macro
John Berninger 5247492
- %{_datadir}/wordpress/wp-config.php is not a config file
John Berninger 5247492
- Symlink is relative
John Berninger 5247492
John Berninger 5247492
* Mon Jun 19 2006 John Berninger <jwb at redhat dot com> - 2.0.3-1
John Berninger 5247492
- Changes from Jarod Wilson as below
John Berninger 5247492
- Update to 2.0.3
John Berninger 5247492
- Rearrange to use /usr/share/wordpress and /etc/wordpress
John Berninger 5247492
- Remove patch (included upstream)
John Berninger 5247492
- Remove empty files to make rpmlint happy
John Berninger 5247492
John Berninger 5247492
* Tue May 30 2006 John Berninger <jwb at redhat dot com> - 2.0.2-1
John Berninger 5247492
- Added patch for \n cache injection - upstream changeset #3797
John Berninger 5247492
John Berninger 5247492
* Sat May 27 2006 John Berninger <jwb at redhat dot com> - 2.0.2-0
John Berninger 5247492
- Initial build