update it_IT translations, add autoupdate file [release 4.2.2-2mamba;Sat Jun 06 2015]
This commit is contained in:
parent
12a455d652
commit
0bcb34ffb3
5
wordpress-autoupdate
Normal file
5
wordpress-autoupdate
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
VERSION=$1
|
||||||
|
[ "$VERSION" ] || exit 0
|
||||||
|
MAJVER=$(echo $VERSION | cut -d. -f1-2)
|
||||||
|
curl https://downloads.wordpress.org/translation/core/${MAJVER}/it_IT.zip -o wordpress-i18n-it_IT-${MAJVER}.zip
|
@ -1,3 +1,4 @@
|
|||||||
|
%define majver %(echo %version | cut -d. -f1-2)
|
||||||
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
||||||
|
|
||||||
# To create a customized installation of wordpress:
|
# To create a customized installation of wordpress:
|
||||||
@ -21,12 +22,9 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#%define i18n_version svn20090213
|
|
||||||
%define it_version %(echo %version | cut -d. -f1-2 | tr . _)
|
|
||||||
|
|
||||||
Name: %{?sitename:%sitename-website-}wordpress
|
Name: %{?sitename:%sitename-website-}wordpress
|
||||||
Version: 4.2.2
|
Version: 4.2.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A semantic personal publishing platform
|
Summary: A semantic personal publishing platform
|
||||||
Group: Applications/Web
|
Group: Applications/Web
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -35,18 +33,14 @@ Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|||||||
URL: http://wordpress.org
|
URL: http://wordpress.org
|
||||||
Source: http://wordpress.org/wordpress-%{version}.tar.gz
|
Source: http://wordpress.org/wordpress-%{version}.tar.gz
|
||||||
Source1: wordpress-db-config
|
Source1: wordpress-db-config
|
||||||
# To get new version:
|
Source2: wordpress-i18n-it_IT-%{majver}.zip
|
||||||
# svn co http://svn.automattic.com/wordpress-i18n
|
Source3: wordpress-autoupdate
|
||||||
# find wordpress-i18n -name .svn -prune -exec rm -fr \{} \;
|
|
||||||
# tar cjf wordpress-i8n-%{i18n_version}.tar.bz2 wordpress-i18n
|
|
||||||
# Download is HUGE so this method is skipped
|
|
||||||
#Source2: http://www.wordpress-it.it/wp-content/archives/it_IT_%{it_version}.zip
|
|
||||||
Source2: http://www.wpitaly.it/download/it_IT_%{it_version}.zip
|
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: apache-mod_php >= 4.2
|
Requires: apache-mod_php >= 4.2
|
||||||
Requires: mysql >= 4.0
|
|
||||||
Requires: php-mysql
|
Requires: php-mysql
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -59,16 +53,16 @@ More simply, WordPress is what you use when you want to work with your blogging
|
|||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
mkdir -p wp-content/languages
|
mkdir -p wp-content/languages
|
||||||
pushd wp-content/languages
|
pushd wp-content/languages
|
||||||
unzip -o %{S:2} "*.po"
|
unzip -o %{S:2}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
find . -name '*~' -delete
|
find . -name '*~' -delete
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd wp-content/languages
|
#pushd wp-content/languages
|
||||||
msgfmt -o it.mo it*.po
|
#msgfmt -o it.mo it*.po
|
||||||
rm -f *.po
|
#rm -f *.po
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -162,6 +156,9 @@ fi
|
|||||||
%doc license.txt readme.html
|
%doc license.txt readme.html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.2-2mamba
|
||||||
|
- update it_IT translations, add autoupdate file
|
||||||
|
|
||||||
* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 4.2.2-1mamba
|
* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 4.2.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user