%define modname fckeditor Summary: Drupal FCKeditor WYSIWYG Editor Module Name: drupal-mod-%{modname} Version: 4.6.0 Release: 0.1 License: GPL v2 Group: Applications/WWW Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz # Source0-md5: 2dc5313fc417cad484bbfc434e3e971b Source1: %{name}.conf URL: http://drupal.org/project/fckeditor Requires: php >= 3:4.3.0 Requires: drupal >= 4.6.0 Requires: fckeditor BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _drupaldir %{_datadir}/drupal %define _moddir %{_drupaldir}/modules %description This module allows Drupal to replace textarea fields with FCKeditor. This HTML text editor brings to the web many of the powerful functionalities of known desktop editors like Word. It's really lightweight and doesn't require any kind of installation on the client computer. %prep %setup -q -n %{modname} rm -f LICENSE.txt # GPL v2 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_moddir}/{lib,ssip}} install *.module $RPM_BUILD_ROOT%{_moddir} cp -a lib/* $RPM_BUILD_ROOT%{_moddir}/lib cp -a ssip/* $RPM_BUILD_ROOT%{_moddir}/ssip %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.txt %{_moddir}/*.module %{_moddir}/lib %{_moddir}/ssip