2 # - check for new releases here: http://ckeditor.com/download/releases
3 Summary: The text editor for Internet
4 Summary(pl.UTF-8): Edytor tekstowy dla Internetu
8 License: LGPL v2.1+ / GPL v2+ / MPL
9 Group: Applications/WWW
10 Source0: http://download.cksource.com/CKEditor/CKEditor/CKEditor%20%{version}/%{name}_%{version}_full.tar.gz
11 # Source0-md5: 42c63f02f77daa21e9b5447f170bfa0f
12 URL: http://www.ckeditor.com/
15 Source3: lighttpd.conf
16 BuildRequires: rpmbuild(macros) >= 1.553
17 BuildRequires: sed >= 4.0
20 Requires: webserver(access)
21 Requires: webserver(alias)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _webapps /etc/webapps
26 %define _webapp %{name}
27 %define _sysconfdir %{_webapps}/%{_webapp}
28 %define _appdir %{_datadir}/%{name}
30 %define find_lang sh %{SOURCE1}
33 This HTML text editor brings to the web many of the powerful
34 functionalities of desktop editors like MS Word. It's lightweight and
35 doesn't require any kind of installation on the client computer.
37 %description -l pl.UTF-8
38 Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji
39 edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej
40 inicjalizacji na komputerze klienckim.
46 find -name _translationstatus.txt -print -delete
49 %undos -f js,css,txt,html,md
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_appdir}
55 cp -a ckeditor.js config.js styles.js contents.css $RPM_BUILD_ROOT%{_appdir}
56 cp -a adapters plugins skins lang $RPM_BUILD_ROOT%{_appdir}
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 install -d $RPM_BUILD_ROOT%{_sysconfdir}
62 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
63 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
64 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
66 %find_lang %{name}.lang
69 %{__sed} -i -e '/en\.js/d' %{name}.lang
71 # already listed by plugin dir
72 %{__sed} -i -e '/plugins/d' %{name}.lang
74 %triggerin -- apache1 < 1.3.37-3, apache1-base
75 %webapp_register apache %{_webapp}
77 %triggerun -- apache1 < 1.3.37-3, apache1-base
78 %webapp_unregister apache %{_webapp}
80 %triggerin -- apache < 2.2.0, apache-base
81 %webapp_register httpd %{_webapp}
83 %triggerun -- apache < 2.2.0, apache-base
84 %webapp_unregister httpd %{_webapp}
86 %triggerin -- lighttpd
87 %webapp_register lighttpd %{_webapp}
89 %triggerun -- lighttpd
90 %webapp_unregister lighttpd %{_webapp}
93 rm -rf $RPM_BUILD_ROOT
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc README.md CHANGES.md LICENSE.md
98 %dir %attr(750,root,http) %{_sysconfdir}
99 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
100 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
104 %{_appdir}/lang/en.js
107 %dir %{_appdir}/adapters
108 %{_appdir}/adapters/jquery.js
110 %dir %{_appdir}/skins
111 %{_appdir}/skins/moono
113 %dir %{_appdir}/plugins
114 %{_appdir}/plugins/icons.png
115 %{_appdir}/plugins/icons_hidpi.png
117 %{_appdir}/plugins/a11yhelp
118 %{_appdir}/plugins/about
119 %{_appdir}/plugins/clipboard
120 %{_appdir}/plugins/colordialog
121 %{_appdir}/plugins/dialog
122 %{_appdir}/plugins/div
123 %{_appdir}/plugins/fakeobjects
124 %{_appdir}/plugins/find
125 %{_appdir}/plugins/flash
126 %{_appdir}/plugins/forms
127 %{_appdir}/plugins/iframe
128 %{_appdir}/plugins/image
129 %{_appdir}/plugins/link
130 %{_appdir}/plugins/liststyle
131 %{_appdir}/plugins/magicline
132 %{_appdir}/plugins/pagebreak
133 %{_appdir}/plugins/pastefromword
134 %{_appdir}/plugins/preview
135 %{_appdir}/plugins/scayt
136 %{_appdir}/plugins/showblocks
137 %{_appdir}/plugins/smiley
138 %{_appdir}/plugins/specialchar
139 %{_appdir}/plugins/table
140 %{_appdir}/plugins/tabletools
141 %{_appdir}/plugins/templates
142 %{_appdir}/plugins/wsc
144 %{_examplesdir}/%{name}-%{version}