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