2 # - connectors subpackages (for language deps)
3 # - subpackage for _source (or don't package at all), used only when FCKConfig.Debug is set: LoadScript( '_source/internals/fckdebug.js' ) ;
4 Summary: The text editor for Internet
5 Summary(pl.UTF-8): Edytor tekstowy dla Internetu
10 Group: Applications/WWW
11 Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
12 # Source0-md5: eb926332283376614ade9610f20b27d4
13 URL: http://www.fckeditor.net/
14 BuildRequires: rpmbuild(macros) > 1.268
15 BuildRequires: sed >= 4.0
16 Requires: webserver(access)
17 Requires: webserver(alias)
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _appdir %{_datadir}/%{name}
24 This HTML text editor brings to the web many of the powerful
25 functionalities of desktop editors like MS Word. It's lightweight and
26 doesn't require any kind of installation on the client computer.
28 %description -l pl.UTF-8
29 Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji
30 edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej
31 inicjalizacji na komputerze klienckim.
39 # don't know if there's any interpreter for those on linux, so kill
40 rm -f *.{afp,asp,cfc,cfm,lasso}
43 sed -i -e 's,\r$,,' fckeditor*
44 find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' -o -name '*.php' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
46 # apache1/apache2 conf
47 cat > apache.conf <<'EOF'
48 Alias /%{name} %{_appdir}
49 <Directory %{_appdir}>
55 cat > lighttpd.conf <<'EOF'
57 "/%{name}" => "%{_appdir}",
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_appdir}
64 cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir}
65 cp -a fckeditor.* fckeditor_php4.php fckeditor_php5.php $RPM_BUILD_ROOT%{_appdir}
66 cp -a editor $RPM_BUILD_ROOT%{_appdir}
67 cp -a *.xml $RPM_BUILD_ROOT%{_appdir}
69 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 %triggerin -- apache1 < 1.3.37-3, apache1-base
73 %webapp_register apache %{_webapp}
75 %triggerun -- apache1 < 1.3.37-3, apache1-base
76 %webapp_unregister apache %{_webapp}
78 %triggerin -- apache < 2.2.0, apache-base
79 %webapp_register httpd %{_webapp}
81 %triggerun -- apache < 2.2.0, apache-base
82 %webapp_unregister httpd %{_webapp}
84 %triggerin -- lighttpd
85 %webapp_register lighttpd %{_webapp}
87 %triggerun -- lighttpd
88 %webapp_unregister lighttpd %{_webapp}
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
98 %{_examplesdir}/%{name}-%{version}