2 # - connectors subpackages
3 Summary: The text editor for Internet
4 Summary(pl.UTF-8): Edytor tekstowy dla Internetu
9 Group: Applications/WWW
10 Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
11 # Source0-md5: eb926332283376614ade9610f20b27d4
12 URL: http://www.fckeditor.net/
13 BuildRequires: rpmbuild(macros) > 1.268
14 BuildRequires: sed >= 4.0
15 Requires: webserver(access)
16 Requires: webserver(alias)
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _appdir %{_datadir}/%{name}
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.
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
30 inicjalizacji na komputerze klienckim.
37 # don't know if there's any interpreter for those on linux, so kill
38 rm -f fckeditor.{afp,asp,cfc,cfm,lasso}
41 sed -i -e 's,\r$,,' fckeditor.*
42 find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
44 # apache1/apache2 conf
45 cat > apache.conf <<'EOF'
46 Alias /%{name} %{_appdir}
47 <Directory %{_appdir}>
53 cat > lighttpd.conf <<'EOF'
55 "/%{name}" => "%{_appdir}",
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_appdir}
62 cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir}
63 cp -a fckeditor.* $RPM_BUILD_ROOT%{_appdir}
64 cp -a editor $RPM_BUILD_ROOT%{_appdir}
65 cp -a *.xml $RPM_BUILD_ROOT%{_appdir}
67 %triggerin -- apache1 < 1.3.37-3, apache1-base
68 %webapp_register apache %{_webapp}
70 %triggerun -- apache1 < 1.3.37-3, apache1-base
71 %webapp_unregister apache %{_webapp}
73 %triggerin -- apache < 2.2.0, apache-base
74 %webapp_register httpd %{_webapp}
76 %triggerun -- apache < 2.2.0, apache-base
77 %webapp_unregister httpd %{_webapp}
79 %triggerin -- lighttpd
80 %webapp_register lighttpd %{_webapp}
82 %triggerun -- lighttpd
83 %webapp_unregister lighttpd %{_webapp}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)