From 0bcb34ffb344a890565c4954ebc55c1ce592667f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:29:03 +0100 Subject: [PATCH] update it_IT translations, add autoupdate file [release 4.2.2-2mamba;Sat Jun 06 2015] --- wordpress-autoupdate | 5 +++++ wordpress.spec | 31 ++++++++++++++----------------- 2 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 wordpress-autoupdate diff --git a/wordpress-autoupdate b/wordpress-autoupdate new file mode 100644 index 0000000..0b10502 --- /dev/null +++ b/wordpress-autoupdate @@ -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 diff --git a/wordpress.spec b/wordpress.spec index efc5894..e25989f 100644 --- a/wordpress.spec +++ b/wordpress.spec @@ -1,3 +1,4 @@ +%define majver %(echo %version | cut -d. -f1-2) %define serverdir %(apxs -q htdocsdir 2>/dev/null) # To create a customized installation of wordpress: @@ -21,12 +22,9 @@ %endif %endif -#%define i18n_version svn20090213 -%define it_version %(echo %version | cut -d. -f1-2 | tr . _) - Name: %{?sitename:%sitename-website-}wordpress Version: 4.2.2 -Release: 1mamba +Release: 2mamba Summary: A semantic personal publishing platform Group: Applications/Web Vendor: openmamba @@ -35,18 +33,14 @@ Packager: Stefano Cotta Ramusino URL: http://wordpress.org Source: http://wordpress.org/wordpress-%{version}.tar.gz Source1: wordpress-db-config -# To get new version: -# svn co http://svn.automattic.com/wordpress-i18n -# 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 +Source2: wordpress-i18n-it_IT-%{majver}.zip +Source3: wordpress-autoupdate License: GPL BuildArch: noarch Requires: apache-mod_php >= 4.2 -Requires: mysql >= 4.0 Requires: php-mysql +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -59,16 +53,16 @@ More simply, WordPress is what you use when you want to work with your blogging %setup -q -n %{name} mkdir -p wp-content/languages pushd wp-content/languages -unzip -o %{S:2} "*.po" +unzip -o %{S:2} popd find . -name '*~' -delete %build -pushd wp-content/languages -msgfmt -o it.mo it*.po -rm -f *.po -popd +#pushd wp-content/languages +#msgfmt -o it.mo it*.po +#rm -f *.po +#popd %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -162,6 +156,9 @@ fi %doc license.txt readme.html %changelog +* Sat Jun 06 2015 Silvan Calarco 4.2.2-2mamba +- update it_IT translations, add autoupdate file + * Thu May 07 2015 Automatic Build System 4.2.2-1mamba - automatic version update by autodist