2 # - connectors subpackages
3 Summary: The text editor for Internet
8 Group: Applications/WWW
9 Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
10 # Source0-md5: c41f2eeb93757ed06a8556dc8f2a15a0
11 URL: http://www.fckeditor.net/
12 BuildRequires: sed >= 4.0
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _appdir %{_datadir}/%{name}
19 This HTML text editor brings to the web many of the powerful
20 functionalities of desktop editors like MS Word. It's lightweight and
21 doesn't require any kind of installation on the client computer.
24 %setup -q -n FCKeditor
26 # don't know if there's any interpreter for those on linux, so kill
27 rm -f fckeditor.{afp,asp,cfc,cfm,lasso}
30 sed -i -e 's,\r$,,' fckeditor.*
31 find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
33 find -name '*.suspended' | xargs rm -v
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_appdir}
38 cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir}
39 cp -a editor $RPM_BUILD_ROOT%{_appdir}
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)