]>
Commit | Line | Data |
---|---|---|
11e4bb06 ER |
1 | # TODO |
2 | # - connectors subpackages | |
3 | Summary: The text editor for Internet | |
0d5841a4 | 4 | Summary(pl.UTF-8): Edytor tekstowy dla Internetu |
11e4bb06 | 5 | Name: fckeditor |
62513a26 | 6 | Version: 2.6.3 |
4409a9c4 | 7 | Release: 0.2 |
11e4bb06 ER |
8 | License: LGPL v2.1 |
9 | Group: Applications/WWW | |
10 | Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz | |
62513a26 | 11 | # Source0-md5: eb926332283376614ade9610f20b27d4 |
11e4bb06 | 12 | URL: http://www.fckeditor.net/ |
4409a9c4 | 13 | BuildRequires: rpmbuild(macros) > 1.268 |
11e4bb06 | 14 | BuildRequires: sed >= 4.0 |
4409a9c4 AG |
15 | Requires: webserver(access) |
16 | Requires: webserver(alias) | |
11e4bb06 ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _appdir %{_datadir}/%{name} | |
21 | ||
22 | %description | |
23 | This HTML text editor brings to the web many of the powerful | |
24 | functionalities of desktop editors like MS Word. It's lightweight and | |
25 | doesn't require any kind of installation on the client computer. | |
26 | ||
9d354683 JR |
27 | %description -l pl.UTF-8 |
28 | Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji | |
29 | edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej | |
2927bf25 JB |
30 | inicjalizacji na komputerze klienckim. |
31 | ||
11e4bb06 | 32 | %prep |
3d29de61 ER |
33 | %setup -qc |
34 | mv fckeditor/* . | |
35 | rmdir fckeditor | |
11e4bb06 ER |
36 | |
37 | # don't know if there's any interpreter for those on linux, so kill | |
38 | rm -f fckeditor.{afp,asp,cfc,cfm,lasso} | |
39 | ||
40 | # undos the source | |
41 | sed -i -e 's,\r$,,' fckeditor.* | |
cfd46d3f | 42 | find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' |
11e4bb06 | 43 | |
4409a9c4 AG |
44 | # apache1/apache2 conf |
45 | cat > apache.conf <<'EOF' | |
46 | Alias /%{name} %{_appdir} | |
47 | <Directory %{_appdir}> | |
48 | Allow from all | |
49 | </Directory> | |
50 | EOF | |
51 | ||
52 | # lighttpd conf | |
53 | cat > lighttpd.conf <<'EOF' | |
54 | alias.url += ( | |
55 | "/%{name}" => "%{_appdir}", | |
56 | ) | |
57 | EOF | |
58 | ||
11e4bb06 ER |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT%{_appdir} | |
62 | cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir} | |
4409a9c4 | 63 | cp -a fckeditor.* $RPM_BUILD_ROOT%{_appdir} |
11e4bb06 | 64 | cp -a editor $RPM_BUILD_ROOT%{_appdir} |
4409a9c4 AG |
65 | cp -a *.xml $RPM_BUILD_ROOT%{_appdir} |
66 | ||
67 | %triggerin -- apache1 < 1.3.37-3, apache1-base | |
68 | %webapp_register apache %{_webapp} | |
69 | ||
70 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
71 | %webapp_unregister apache %{_webapp} | |
72 | ||
73 | %triggerin -- apache < 2.2.0, apache-base | |
74 | %webapp_register httpd %{_webapp} | |
75 | ||
76 | %triggerun -- apache < 2.2.0, apache-base | |
77 | %webapp_unregister httpd %{_webapp} | |
78 | ||
79 | %triggerin -- lighttpd | |
80 | %webapp_register lighttpd %{_webapp} | |
81 | ||
82 | %triggerun -- lighttpd | |
83 | %webapp_unregister lighttpd %{_webapp} | |
11e4bb06 ER |
84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc _* | |
91 | %{_appdir} |