Summary(pl.UTF-8): Osobisty system publikacji
Name: wordpress
Version: 3.0.1
-Release: 0.2
+Release: 0.8
License: GPL v2
Group: Applications/Publishing
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
Source1: wp-secure.sh
Source2: wp-setup.sh
Source3: wp-setup.txt
-Source4: %{name}-apache.conf
-Source5: %{name}-lighttpd.conf
+Source4: apache.conf
+Source5: lighttpd.conf
Source6: http://svn.automattic.com/wordpress-i18n/et/tags/%{version}/messages/et.po
# Source6-md5: 7ee698806091573a534a4889f88d6d97
Source7: http://svn.automattic.com/wordpress-i18n/pl_PL/tags/%{version}/messages/pl_PL.po
# MagpieRSS upgrade (version 0.8a) from feedwordpress plugin: http://feedwordpress.radgeek.com/
Source10: rss.php
Source11: rss-functions.php
-Patch0: %{name}.patch
+Patch0: configpath.patch
+Patch1: multisite.patch
+Patch2: %{name}.patch
URL: http://www.wordpress.org/
BuildRequires: gettext-devel
BuildRequires: rpmbuild(macros) >= 1.553
po pierwszej instalacji. Potem należy go odinstalować, jako że
pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
+%package plugin-akismet
+Summary: Wordpress Akismet Plugin
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-akismet
+Akismet checks your comments against the Akismet web service to see if
+they look like spam or not and lets you review the spam it catches
+under your blog's "Comments" admin screen.
+
+%package theme-twentyten
+Summary: Wordpress MU default theme
+Group: Applications/WWW
+URL: http://wordpress.org/extend/themes/twentyten
+Requires: %{name} = %{version}-%{release}
+
+%description theme-twentyten
+The 2010 theme for WordPress is stylish, customizable, simple, and
+readable.
+
+Make it yours with a custom menu, header image, and background. Twenty
+Ten supports six widgetized areas (two in the sidebar, four in the
+footer) and featured images (thumbnails for gallery posts and custom
+header images for posts and pages). It includes stylesheets for print
+and the admin Visual Editor, special styles for posts in the "Asides"
+and "Gallery" categories, and has an optional one-column page template
+that removes the sidebar.
+
%prep
%setup -qc
mv %{name}/* . && rmdir %{name}
%undos -f php,js,html
-cp -a wp-config{-sample,}.php
%patch0 -p1
+%patch1 -p1
+cp -a wp-config{-sample,}.php
+%patch2 -p1
cp -a %{SOURCE3} .
rm -f license.txt
rm wp-content/plugins/index.php
rm wp-content/index.php
+# sample plugin
+rm wp-content/plugins/hello.php
+
# Install new MagpieRSS
# NOTE: this is deprecated, simplepie should be used instead
cp -a %{SOURCE10} wp-includes/rss.php
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_sysconfdir},%{_appdir}/wp-content/languages}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_sysconfdir},%{_appdir}/wp-content/{languages,mu-plugins},/var/{lib,log}/%{name}}
cp -a . $RPM_BUILD_ROOT%{_appdir}
mv $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}/wp-config.php
%lang(et) %{_appdir}/wp-content/languages/et.mo
%lang(pl) %{_appdir}/wp-content/languages/pl_PL.mo
%dir %{_appdir}/wp-content/plugins
-%{_appdir}/wp-content/plugins/*.php
-%{_appdir}/wp-content/plugins/akismet
-
+%dir %{_appdir}/wp-content/mu-plugins
%dir %{_appdir}/wp-content/themes
-%{_appdir}/wp-content/themes/twentyten
+
+%attr(775,root,http) /var/lib/%{name}
+%attr(775,root,http) /var/log/%{name}
%files setup
%defattr(644,root,root,755)
%{_appdir}/wp-secure.sh
%{_appdir}/wp-setup.sh
%{_appdir}/wp-admin
+
+%files plugin-akismet
+%defattr(644,root,root,755)
+%dir %{_appdir}/wp-content/plugins/akismet
+%doc %{_appdir}/wp-content/plugins/akismet/readme.txt
+%{_appdir}/wp-content/plugins/akismet/*.php
+%{_appdir}/wp-content/plugins/akismet/*.gif
+
+%files theme-twentyten
+%defattr(644,root,root,755)
+%{_appdir}/wp-content/themes/twentyten