]> git.pld-linux.org Git - packages/wordpress.git/blobdiff - wordpress.spec
- upgraded to 2.3.3 (sec fixes),
[packages/wordpress.git] / wordpress.spec
index 29018191b694772dc91a9df3d388708a110c0a72..9dca13658e8430e4221286c9d8a3fded0b2c1416 100644 (file)
@@ -1,26 +1,32 @@
 # TODO
 # - put config files to %{_sysconfdir}!
+# - switch to versioned url: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/00README
 Summary:       Personal publishing system
-Summary(pl):   Osobisty system publikacji
+Summary(pl.UTF-8):     Osobisty system publikacji
 Name:          wordpress
-Version:       2.0.4
+Version:       2.3.3
 Release:       1
 License:       GPL
 Group:         Applications/Publishing
 Source0:       http://wordpress.org/latest.tar.gz
-# Source0-md5: 0de8e4b2051ce9313a23d7726210d5e3
+# Source0-md5: 19518de1117aa68f0c3de84b6858efc3
 Source1:       wp-secure.sh
 Source2:       wp-setup.sh
 Source3:       wp-setup.txt
 Source4:       %{name}.conf
+Source5:       %{name}-lighttpd.conf
+Source6:       http://wordpress-polska.org/system/files/pl_PL_0.po
+# Source6-md5: 0b1d193435065c98e12ac188232f190f
+Source7:       http://wordpress-polska.org/system/files/pl_PL_0.mo
+# Source7-md5: 4ec7fff754ce3cbdccfde7fc58d98af6
 URL:           http://wordpress.org/
-Requires:      php >= 3:4.1
-Requires:      php-gettext >= 4:5.0
-Requires:      php-mysql >= 4:5.0
-Requires:      php-pcre >= 4:5.0
-Requires:      php-xml >= 4:5.0
-Requires:      php-xmlrpc >= 4:5.0
+Requires:      php(gettext)
+Requires:      php(mysql)
+Requires:      php(pcre)
+Requires:      php(xml)
+Requires:      php(xmlrpc)
 Requires:      webapps
+Requires:      webserver(php) >= 5.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,15 +44,15 @@ and licensed under the GPL. It is the official successor of
 b2/cafelog. WordPress is fresh software, but its roots and development
 go back to 2001.
 
-%description -l pl
-WordPress jest technologicznie dopracowan±, semantyczn±, osobist±
-platform± do publikacji k³ad±c± nacisk na standardy WWW oraz
-u¿yteczno¶æ. WordPress zosta³ stworzony w wyniku potrzeby
+%description -l pl.UTF-8
+WordPress jest technologicznie dopracowaną, semantyczną, osobistą
+platformą do publikacji kładącą nacisk na standardy WWW oraz
+użyteczność. WordPress został stworzony w wyniku potrzeby
 eleganckiego, dobrze zaprojektowanego, osobistego systemu publikacji
-(nazywanego równie¿ blogiem czy weblogiem). Jest to system oparty o
-PHP i MySQL oraz na licencji GPL. Jest oficjalnym nastêpc± b2/cafelog.
-WordPress jest nowym oprogramowaniem, ale jego korzenie i rozwój
-siêgaj± 2001 roku.
+(nazywanego również blogiem czy weblogiem). Jest to system oparty o
+PHP i MySQL oraz na licencji GPL. Jest oficjalnym następcą b2/cafelog.
+WordPress jest nowym oprogramowaniem, ale jego korzenie i rozwój
+sięgają 2001 roku.
 
 %prep
 %setup -q -n %{name}
@@ -55,7 +61,7 @@ rm -f license.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_sysconfdir},%{_appdir}/wp-content/languages}
 
 cp -R * $RPM_BUILD_ROOT%{_appdir}
 rm -f $RPM_BUILD_ROOT%{_appdir}/readme.html
@@ -65,13 +71,16 @@ ln -sf %{_appdir}/wp-secure.sh $RPM_BUILD_ROOT%{_bindir}/wp-secure
 
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+install %{SOURCE6} $RPM_BUILD_ROOT%{_appdir}/wp-content/languages/pl_PL.po
+install %{SOURCE7} $RPM_BUILD_ROOT%{_appdir}/wp-content/languages/pl_PL.mo
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 if [ ! -f %{_appdir}/wp-config.php ]; then
-       install -uroot -ghttp -m640 %{_appdir}/wp-config-sample.php > %{_appdir}/wp-config.php
+       install -oroot -ghttp -m640 %{_appdir}/wp-config-sample.php %{_appdir}/wp-config.php
 
        %banner -e %{name} <<-EOF
        To finish your configuration DO NOT FORGET to:
@@ -82,10 +91,13 @@ if [ ! -f %{_appdir}/wp-config.php ]; then
 EOF
 fi
 
-%triggerin -- apache1
+%triggerin -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
 
-%triggerun -- apache1
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
 %triggerin -- apache < 2.2.0, apache-base
@@ -94,12 +106,16 @@ fi
 %triggerun -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
 %files
 %defattr(644,root,root,755)
 %doc readme.html wp-setup.txt
 %dir %attr(750,root,http) %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
 
 %dir %{_appdir}
 %dir %attr(750,root,http) %{_appdir}/wp-content
@@ -107,12 +123,16 @@ fi
 %dir %attr(750,root,http) %{_appdir}/wp-content/themes
 %dir %attr(750,root,http) %{_appdir}/wp-content/themes/classic
 %dir %attr(750,root,http) %{_appdir}/wp-content/themes/default
+%dir %attr(750,root,http) %{_appdir}/wp-content/themes/default/images
 %attr(640,root,http) %{_appdir}/wp-content/plugins/*.php
 %attr(640,root,http) %{_appdir}/wp-content/plugins/akismet
 %attr(640,root,http) %{_appdir}/wp-content/themes/classic/*
 %attr(640,root,http) %{_appdir}/wp-content/themes/default/*.php
 %attr(640,root,http) %{_appdir}/wp-content/themes/default/*.css
 %attr(640,root,http) %{_appdir}/wp-content/themes/default/images/*
+%{_appdir}/wp-content/index.php
+%{_appdir}/wp-content/languages
+%{_appdir}/wp-content/themes/default/screenshot.png
 %{_appdir}/wp-admin
 %{_appdir}/wp-includes
 %{_appdir}/*.php
This page took 0.224105 seconds and 4 git commands to generate.