]> git.pld-linux.org Git - packages/wordpress.git/blobdiff - wordpress.spec
- relocate blogs.dir to /var/lib/wordpress
[packages/wordpress.git] / wordpress.spec
index fbd38a15003f9f2bd4cd48b92d3aff8c4d2420dd..81b3ee10fe5533b6cbee1fffc68eed274901b6d3 100644 (file)
@@ -5,7 +5,7 @@ Summary:        Personal publishing system
 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
@@ -13,8 +13,8 @@ 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
@@ -22,7 +22,9 @@ Source7:      http://svn.automattic.com/wordpress-i18n/pl_PL/tags/%{version}/messages
 # 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
@@ -76,12 +78,42 @@ Ten pakiet należy zainstalować w celu wstępnej konfiguracji WordPress
 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
 
@@ -89,6 +121,9 @@ rm wp-content/themes/index.php
 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
@@ -103,7 +138,7 @@ msgfmt --statistics %{SOURCE7} -o wp-content/languages/pl_PL.mo
 
 %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
@@ -179,11 +214,11 @@ fi
 %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)
@@ -192,3 +227,14 @@ fi
 %{_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
This page took 0.102664 seconds and 4 git commands to generate.