fix wp-tinymce.js is missing, wp-tinymce.js.gz is empty #1691524
(cherry picked from commit 56508b8b21)
This commit is contained in:
parent
d75ba86f30
commit
f88deb95da
1 changed files with 21 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ Summary: Blog tool and publishing platform
|
|||
URL: http://www.wordpress.org
|
||||
Name: wordpress
|
||||
Version: %{upstream_version}%{?upstream_prever:~%upstream_prever}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
|
||||
Source0: https://wordpress.org/%{name}-%{upstream_version}%{?upstream_prever:-%{upstream_prever}}.tar.gz
|
||||
|
|
@ -148,6 +148,24 @@ php %{SOURCE5} \
|
|||
wp-includes/js/mediaelement/mediaelement.js \
|
||||
wp-includes/js/mediaelement/mediaelement.min.js
|
||||
|
||||
# Re-Generated the archive
|
||||
arc=wp-includes/js/tinymce/wp-tinymce.js
|
||||
grep "^// Source" $arc | while read a b c
|
||||
do
|
||||
if [ -f $c ]; then
|
||||
echo -e "\n$a $b $c"
|
||||
cat $c
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
done >$arc.tmp
|
||||
if [ -s $arc.tmp ]; then
|
||||
ls -l $arc*
|
||||
mv $arc.tmp $arc
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create RPM configuration
|
||||
sed -e 's/\r//' wp-config-sample.php >wp-config.php
|
||||
%patch5 -p1
|
||||
|
|
@ -255,8 +273,8 @@ find ${RPM_BUILD_ROOT} \( -name \*.dolly -o -name \*.rhbz522897 -o -name \*.orig
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Mar 22 2019 Remi Collet <remi@remirepo.net> - 5.1.1-2
|
||||
- fix wp-tinymce.js.gz is empty #1691524
|
||||
* Fri Mar 22 2019 Remi Collet <remi@remirepo.net> - 5.1.1-3
|
||||
- fix wp-tinymce.js is missing, wp-tinymce.js.gz is empty #1691524
|
||||
|
||||
* Wed Mar 13 2019 Remi Collet <remi@remirepo.net> - 5.1.1-1
|
||||
- WordPress 5.1.1 Security and Maintenance Release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue