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