|
|
c2e8962 |
Name: ckeditor
|
|
|
da0335e |
Version: 4.11.4
|
|
|
77eb241 |
Release: 2%{?dist}
|
|
|
c2e8962 |
Summary: WYSIWYG text editor to be used inside web pages
|
|
Orion Poplawski |
8d29811 |
|
|
|
da0335e |
License: GPLv2+ or LGPLv2+ or MPLv1.1
|
|
|
c2e8962 |
URL: http://ckeditor.com/
|
|
|
ba9552e |
|
|
|
c2e8962 |
Source0: http://download.cksource.com/CKEditor/CKEditor/CKEditor%20%{version}/ckeditor_%{version}_standard.tar.gz
|
|
Orion Poplawski |
8d29811 |
|
|
|
c2e8962 |
BuildArch: noarch
|
|
|
c2e8962 |
BuildRequires: web-assets-devel
|
|
|
c2e8962 |
|
|
|
c2e8962 |
Requires: web-assets-filesystem
|
|
|
ba9552e |
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
%description
|
|
Orion Poplawski |
8d29811 |
CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor,
|
|
Orion Poplawski |
8d29811 |
which means that the text being edited on it looks as similar as possible to
|
|
Orion Poplawski |
8d29811 |
the results users have when publishing it. It brings to the web common editing
|
|
Orion Poplawski |
8d29811 |
features found on desktop editing applications like Microsoft Word and
|
|
Orion Poplawski |
8d29811 |
OpenOffice.
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
|
|
|
dfa5fb8 |
%package samples
|
|
|
c2e8962 |
Summary: Samples for %{name}
|
|
|
c2e8962 |
Requires: %{name} = %{version}-%{release}
|
|
|
dfa5fb8 |
|
|
|
dfa5fb8 |
%description samples
|
|
|
dfa5fb8 |
%{summary}.
|
|
|
dfa5fb8 |
|
|
|
dfa5fb8 |
|
|
Orion Poplawski |
8d29811 |
%prep
|
|
|
c2e8962 |
%setup -qn %{name}
|
|
Orion Poplawski |
8d29811 |
|
|
|
c2e8962 |
: Licenses
|
|
|
c2e8962 |
mkdir -p .rpm/{licenses,docs}
|
|
|
c2e8962 |
for LICENSE_FILE in $(find . -type f -name 'LICENSE*')
|
|
|
c2e8962 |
do
|
|
|
c2e8962 |
DIR=$(dirname $LICENSE_FILE)
|
|
|
c2e8962 |
mkdir -p .rpm/licenses/$DIR
|
|
|
c2e8962 |
mv $LICENSE_FILE .rpm/licenses/$DIR/
|
|
|
c2e8962 |
done
|
|
|
1775238 |
|
|
|
c2e8962 |
: Docs
|
|
|
db9fbb4 |
for DOC_FILE in $(find . -type f -name '*.md' -not -name 'LICENSE*')
|
|
|
c2e8962 |
do
|
|
|
c2e8962 |
DIR=$(dirname $DOC_FILE)
|
|
|
c2e8962 |
mkdir -p .rpm/docs/$DIR
|
|
|
c2e8962 |
mv $DOC_FILE .rpm/docs/$DIR/
|
|
|
c2e8962 |
done
|
|
Orion Poplawski |
8d29811 |
|
|
|
c2e8962 |
: wrong-file-end-of-line-encoding
|
|
|
c2e8962 |
find .rpm -type f -print0 | xargs -0 sed -i 's/\r$//'
|
|
Orion Poplawski |
8d29811 |
|
|
|
c2e8962 |
: Delete bundled flash files
|
|
|
c2e8962 |
rm -rf samples/old/htmlwriter/{assets,outputforflash.html}
|
|
|
ba9552e |
|
|
|
1775238 |
|
|
|
c2e8962 |
%build
|
|
|
c2e8962 |
# Empty build section, nothing to build
|
|
|
ba9552e |
|
|
Orion Poplawski |
8d29811 |
|
|
|
c2e8962 |
%install
|
|
|
c2e8962 |
mkdir -p %{buildroot}%{_webassetdir}/%{name}
|
|
|
c2e8962 |
cp -pr * %{buildroot}%{_webassetdir}/%{name}/
|
|
|
c2e8962 |
|
|
|
c2e8962 |
: Compat filesystem
|
|
|
c2e8962 |
mkdir -p %{buildroot}/%{_datadir}
|
|
|
c2e8962 |
ln -s %{_webassetdir}/%{name} %{buildroot}/%{_datadir}/%{name}
|
|
|
c2e8962 |
|
|
|
c2e8962 |
|
|
|
c2e8962 |
# https://fedoraproject.org/wiki/Packaging:Directory_Replacement#Scriptlet_to_replace_a_directory
|
|
|
c2e8962 |
%pretrans -p <lua>
|
|
|
c2e8962 |
path = "%{_datadir}/%{name}"
|
|
|
c2e8962 |
st = posix.stat(path)
|
|
|
c2e8962 |
if st and st.type == "directory" then
|
|
|
dd707bd |
status = os.rename(path, path .. ".rpmmoved")
|
|
|
dd707bd |
if not status then
|
|
|
dd707bd |
suffix = 0
|
|
|
dd707bd |
while not status do
|
|
|
dd707bd |
suffix = suffix + 1
|
|
|
dd707bd |
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
|
|
dd707bd |
end
|
|
|
dd707bd |
os.rename(path, path .. ".rpmmoved")
|
|
|
c2e8962 |
end
|
|
|
c2e8962 |
end
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
%files
|
|
|
c2e8962 |
%{!?_licensedir:%global license %%doc}
|
|
|
c2e8962 |
%license .rpm/licenses/*
|
|
|
c2e8962 |
%doc .rpm/docs/*
|
|
|
c2e8962 |
%{_webassetdir}/%{name}
|
|
Orion Poplawski |
8d29811 |
%{_datadir}/%{name}
|
|
|
c2e8962 |
%exclude %{_webassetdir}/%{name}/samples
|
|
|
c2e8962 |
|
|
|
d1b1528 |
%ghost %attr(644, root, root) %{_datadir}/%{name}.rpmmoved
|
|
|
c2e8962 |
|
|
Orion Poplawski |
8d29811 |
|
|
|
97e0c07 |
%files samples
|
|
|
c2e8962 |
%{_webassetdir}/%{name}/samples
|
|
|
97e0c07 |
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
%changelog
|
|
|
77eb241 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.11.4-2
|
|
|
77eb241 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
77eb241 |
|
|
|
da0335e |
* Tue May 14 2019 Shawn Iwinski <shawn@iwin.ski> - 4.11.4-1
|
|
|
da0335e |
- Update to 4.11.4 (RHBZ #1683205)
|
|
|
da0335e |
- Fix rpmlint "W: invalid-license MPLv1.1+" by changing "MPLv1.1+" to "MPLv1.1"
|
|
|
da0335e |
|
|
|
d1b1528 |
* Sun Feb 24 2019 Shawn Iwinski <shawn@iwin.ski> - 4.11.2-2
|
|
|
d1b1528 |
- Fix EPEL6 build error (BUILDSTDERR: error: Explicit file attributes required
|
|
|
d1b1528 |
in spec for: /builddir/build/BUILDROOT/ckeditor-4.11.2-1.el6.noarch/usr/share/ckeditor.rpmmoved)
|
|
|
d1b1528 |
|
|
|
8c0744a |
* Sun Feb 24 2019 Shawn Iwinski <shawn@iwin.ski> - 4.11.2-1
|
|
|
8c0744a |
- Update to 4.11.2 (RHBZ #1651703 / RHBZ #1651704 / RHBZ #1651705 / CVE-2018-17960)
|
|
|
8c0744a |
|
|
|
eabb108 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-3
|
|
|
eabb108 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
eabb108 |
|
|
|
4b00733 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-2
|
|
|
4b00733 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
4b00733 |
|
|
|
db9fbb4 |
* Sun Apr 29 2018 Shawn Iwinski <shawn@iwin.ski> - 4.9.2-1
|
|
|
db9fbb4 |
- Update to 4.9.2 (RHBZ #1556589)
|
|
|
db9fbb4 |
- Fix license files
|
|
|
db9fbb4 |
|
|
|
a50c52d |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-2
|
|
|
a50c52d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a50c52d |
|
|
|
575e416 |
* Thu Dec 14 2017 Shawn Iwinski <shawn@iwin.ski> - 4.8.0-1
|
|
|
575e416 |
- Update to 4.8.0 (RHBZ #1525735)
|
|
|
575e416 |
|
|
|
1f480f7 |
* Sun Oct 08 2017 Shawn Iwinski <shawn@iwin.ski> - 4.7.3-1
|
|
|
1f480f7 |
- Update to 4.7.3 (RHBZ #1491261)
|
|
|
1f480f7 |
|
|
|
3340765 |
* Wed Aug 30 2017 Shawn Iwinski <shawn@iwin.ski> - 4.7.2-1
|
|
|
3340765 |
- Update to 4.7.2 (RHBZ #1482711)
|
|
|
3340765 |
|
|
|
dcd00ca |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.1-2
|
|
|
dcd00ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
dcd00ca |
|
|
|
dd707bd |
* Sat Jul 08 2017 Shawn Iwinski <shawn@iwin.ski> - 4.7.1-1
|
|
|
dd707bd |
- Update to 4.7.1 (RHBZ #1455719)
|
|
|
dd707bd |
|
|
|
c2e8962 |
* Mon Mar 06 2017 Shawn Iwinski <shawn@iwin.ski> - 4.6.2-1
|
|
|
c2e8962 |
- Update to 4.6.2 (RHBZ #1070102, RHBZ #1295348)
|
|
|
c2e8962 |
- CVE-2014-5191 (RHBZ #1139487)
|
|
|
c2e8962 |
- Update spec to use web assets packaging guidelines
|
|
|
9c15d5d |
|
|
|
dec8189 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.2-4
|
|
|
dec8189 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
dec8189 |
|
|
|
ecce1f4 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-3
|
|
|
ecce1f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ecce1f4 |
|
|
|
bb26010 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-2
|
|
|
bb26010 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
bb26010 |
|
|
|
12fcf48 |
* Thu Jan 23 2014 Remi Collet <remi@fedoraproject.org> - 4.3.2-1
|
|
|
12fcf48 |
- Update to 4.3.2
|
|
|
12fcf48 |
|
|
|
df5f95f |
* Thu Aug 15 2013 Orion Poplawski <orion@cora.nwra.com> 4.2-1
|
|
|
df5f95f |
- Update to 4.2
|
|
|
df5f95f |
|
|
|
df5f95f |
* Thu Aug 15 2013 Orion Poplawski <orion@cora.nwra.com> 4.1-3
|
|
|
33e1a67 |
- Remove bundled flash code
|
|
|
97e0c07 |
- Move samples to sub-package
|
|
|
33e1a67 |
|
|
|
c58cd3a |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-2
|
|
|
c58cd3a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c58cd3a |
|
|
|
1775238 |
* Sun Apr 7 2013 Remi Collet <remi@fedoraproject.org> - 4.1-1
|
|
|
1775238 |
- Update to 4.1
|
|
|
1775238 |
- provided ckeditor_basic.js for compatibility with 3.6
|
|
|
1775238 |
- don't provide default alias, #910590
|
|
|
1775238 |
|
|
|
88bdc80 |
* Tue Mar 19 2013 Orion Poplawski <orion@cora.nwra.com> 4.0.2-1
|
|
|
88bdc80 |
- Update to 4.0.2
|
|
|
88bdc80 |
|
|
|
ba9552e |
* Tue Feb 5 2013 Remi Collet <remi@fedoraproject.org> - 3.6.6-1
|
|
|
ba9552e |
- update to 3.6.6
|
|
|
ba9552e |
- move _samples in doc
|
|
|
ba9552e |
- don't package _source
|
|
|
ba9552e |
- move php library to /usr/share/php
|
|
|
ba9552e |
- fix httpd configuration (grant access) #894567
|
|
|
ba9552e |
|
|
|
0e6c95c |
* Fri Sep 14 2012 Orion Poplawski <orion@cora.nwra.com> 3.6.4-1
|
|
|
0e6c95c |
- Update to 3.6.4
|
|
|
0e6c95c |
|
|
|
672616c |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.3-2
|
|
|
672616c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
672616c |
|
|
Orion Poplawski |
9dfa8d2 |
* Fri Apr 27 2012 Orion Poplawski <orion@cora.nwra.com> 3.6.3-1
|
|
Orion Poplawski |
9dfa8d2 |
- Update to 3.6.3
|
|
Orion Poplawski |
9dfa8d2 |
|
|
Orion Poplawski |
8d29811 |
* Mon Jan 23 2012 Orion Poplawski <orion@cora.nwra.com> 3.6.2-2
|
|
Orion Poplawski |
8d29811 |
- Make %%doc line explicit
|
|
Orion Poplawski |
8d29811 |
|
|
Orion Poplawski |
8d29811 |
* Tue Oct 25 2011 Orion Poplawski <orion@cora.nwra.com> 3.6.2-1
|
|
Orion Poplawski |
8d29811 |
- Update to 3.6.2
|
|
Orion Poplawski |
8d29811 |
|
|
|
ba9552e |
* Wed Aug 3 2011 Orion Poplawski <orion@cora.nwra.com> 3.6.1-1
|
|
Orion Poplawski |
8d29811 |
- Update to 3.6.1
|
|
Orion Poplawski |
8d29811 |
|
|
|
ba9552e |
* Wed Oct 6 2010 Orion Poplawski <orion@cora.nwra.com> 3.4.1-1
|
|
Orion Poplawski |
8d29811 |
- Initial package
|