]>
Commit | Line | Data |
---|---|---|
6e90ff43 ER |
1 | # NOTES: |
2 | # - check for new releases here: http://ckeditor.com/download/releases | |
d19573b0 ER |
3 | Summary: The text editor for Internet |
4 | Summary(pl.UTF-8): Edytor tekstowy dla Internetu | |
5 | Name: ckeditor | |
6e90ff43 ER |
6 | Version: 4.2 |
7 | Release: 1 | |
0562beca | 8 | License: LGPL v2.1+ / GPL v2+ / MPL |
d19573b0 | 9 | Group: Applications/WWW |
6e90ff43 ER |
10 | Source0: http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.2/%{name}_%{version}_full.zip |
11 | # Source0-md5: 83a3ee13362a6793a9f341afe51d6bbe | |
d19573b0 ER |
12 | URL: http://www.ckeditor.com/ |
13 | Source1: find-lang.sh | |
0562beca ER |
14 | Source2: apache.conf |
15 | Source3: lighttpd.conf | |
6e90ff43 | 16 | BuildRequires: rpmbuild(macros) >= 1.553 |
d19573b0 | 17 | BuildRequires: sed >= 4.0 |
6e90ff43 | 18 | BuildRequires: unzip |
3913c22e ER |
19 | Requires: webapps |
20 | Requires: webserver | |
d19573b0 ER |
21 | Requires: webserver(access) |
22 | Requires: webserver(alias) | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _webapps /etc/webapps | |
27 | %define _webapp %{name} | |
28 | %define _sysconfdir %{_webapps}/%{_webapp} | |
29 | %define _appdir %{_datadir}/%{name} | |
30 | ||
31 | %define find_lang sh %{SOURCE1} | |
32 | ||
33 | %description | |
34 | This HTML text editor brings to the web many of the powerful | |
35 | functionalities of desktop editors like MS Word. It's lightweight and | |
36 | doesn't require any kind of installation on the client computer. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji | |
40 | edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej | |
41 | inicjalizacji na komputerze klienckim. | |
42 | ||
43 | %prep | |
44 | %setup -qc | |
d19573b0 | 45 | mv ckeditor/* . |
d19573b0 | 46 | |
6e90ff43 | 47 | find -name _translationstatus.txt -print -delete |
0562beca | 48 | |
d19573b0 | 49 | # undos the files |
6e90ff43 | 50 | %undos -f js,css,txt,html,md |
d19573b0 ER |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{_appdir} | |
55 | ||
b034f38e | 56 | cp -a ckeditor.js config.js styles.js contents.css $RPM_BUILD_ROOT%{_appdir} |
6e90ff43 | 57 | cp -a adapters plugins skins lang $RPM_BUILD_ROOT%{_appdir} |
0562beca | 58 | |
d19573b0 | 59 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
6e90ff43 | 60 | cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d19573b0 ER |
61 | |
62 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
6e90ff43 ER |
63 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
64 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
65 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
d19573b0 ER |
66 | |
67 | %find_lang %{name}.lang | |
68 | ||
538747fe ER |
69 | # always include |
70 | %{__sed} -i -e '/en\.js/d' %{name}.lang | |
71 | ||
0562beca ER |
72 | # already listed by plugin dir |
73 | %{__sed} -i -e '/plugins/d' %{name}.lang | |
538747fe | 74 | |
d19573b0 ER |
75 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
76 | %webapp_register apache %{_webapp} | |
77 | ||
78 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
79 | %webapp_unregister apache %{_webapp} | |
80 | ||
3024a7d4 | 81 | %triggerin -- apache < 2.2.0, apache-base |
d19573b0 ER |
82 | %webapp_register httpd %{_webapp} |
83 | ||
3024a7d4 | 84 | %triggerun -- apache < 2.2.0, apache-base |
d19573b0 ER |
85 | %webapp_unregister httpd %{_webapp} |
86 | ||
87 | %triggerin -- lighttpd | |
88 | %webapp_register lighttpd %{_webapp} | |
89 | ||
90 | %triggerun -- lighttpd | |
91 | %webapp_unregister lighttpd %{_webapp} | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
6e90ff43 | 98 | %doc README.md CHANGES.md LICENSE.md |
d19573b0 ER |
99 | %dir %attr(750,root,http) %{_sysconfdir} |
100 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
101 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
102 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf | |
103 | %dir %{_appdir} | |
104 | %{_appdir}/*.js | |
538747fe | 105 | %{_appdir}/lang/en.js |
0562beca | 106 | %{_appdir}/*.css |
de1bd76f ER |
107 | |
108 | %dir %{_appdir}/adapters | |
109 | %{_appdir}/adapters/jquery.js | |
110 | ||
0562beca | 111 | %dir %{_appdir}/skins |
6e90ff43 | 112 | %{_appdir}/skins/moono |
0562beca ER |
113 | |
114 | %dir %{_appdir}/plugins | |
6e90ff43 ER |
115 | %{_appdir}/plugins/icons.png |
116 | %{_appdir}/plugins/icons_hidpi.png | |
117 | ||
20fe3b1a | 118 | %{_appdir}/plugins/a11yhelp |
0562beca ER |
119 | %{_appdir}/plugins/about |
120 | %{_appdir}/plugins/clipboard | |
121 | %{_appdir}/plugins/colordialog | |
122 | %{_appdir}/plugins/dialog | |
123 | %{_appdir}/plugins/div | |
6e90ff43 | 124 | %{_appdir}/plugins/fakeobjects |
0562beca ER |
125 | %{_appdir}/plugins/find |
126 | %{_appdir}/plugins/flash | |
127 | %{_appdir}/plugins/forms | |
6e90ff43 | 128 | %{_appdir}/plugins/iframe |
0562beca ER |
129 | %{_appdir}/plugins/image |
130 | %{_appdir}/plugins/link | |
6e90ff43 ER |
131 | %{_appdir}/plugins/liststyle |
132 | %{_appdir}/plugins/magicline | |
0562beca ER |
133 | %{_appdir}/plugins/pagebreak |
134 | %{_appdir}/plugins/pastefromword | |
6e90ff43 | 135 | %{_appdir}/plugins/preview |
0562beca ER |
136 | %{_appdir}/plugins/scayt |
137 | %{_appdir}/plugins/showblocks | |
138 | %{_appdir}/plugins/smiley | |
139 | %{_appdir}/plugins/specialchar | |
0562beca ER |
140 | %{_appdir}/plugins/table |
141 | %{_appdir}/plugins/tabletools | |
142 | %{_appdir}/plugins/templates | |
0562beca | 143 | %{_appdir}/plugins/wsc |
d19573b0 ER |
144 | |
145 | %{_examplesdir}/%{name}-%{version} |