Summary(pl.UTF-8): Edytor tekstowy dla Internetu
Name: fckeditor
Version: 2.6.3
-Release: 0.14
+Release: 1
License: LGPL v2.1
Group: Applications/WWW
Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
# Source0-md5: eb926332283376614ade9610f20b27d4
-Source1: fckeditor-find-lang.sh
+Source1: %{name}-find-lang.sh
+Patch0: %{name}-config-php.patch
URL: http://www.fckeditor.net/
-BuildRequires: rpmbuild(macros) > 1.268
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
Requires: webserver(access)
Requires: webserver(alias)
%define _sysconfdir %{_webapps}/%{_webapp}
%define _appdir %{_datadir}/%{name}
+%description
+This HTML text editor brings to the web many of the powerful
+functionalities of desktop editors like MS Word. It's lightweight and
+doesn't require any kind of installation on the client computer.
+
+%description -l pl.UTF-8
+Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji
+edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej
+inicjalizacji na komputerze klienckim.
+
%package connector-php
-Summary: File upload connector for PHP backend
+Summary: File Manager Connector for PHP
+Summary(pl.UTF-8): Interfejs zarządcy plików do PHP
Group: Applications/WWW
Requires: %{name} = %{version}-%{release}
Requires: php-common >= 4:5.0.0
%description connector-php
-File upload connector for PHP backend.
+File Manager Connector for PHP.
+
+%description connector-php -l pl.UTF-8
+Interfejs zarządcy plików do PHP.
%package connector-perl
-Summary: File upload connector for Perl backend
+Summary: File Manager Connector for Perl
+Summary(pl.UTF-8): Interfejs zarządcy plików do Perla
Group: Applications/WWW
Requires: %{name} = %{version}-%{release}
Requires: perl-base
%description connector-perl
-File upload connector for Perl backend.
+File Manager Connector for Perl.
+
+%description connector-perl -l pl.UTF-8
+Interfejs zarządcy plików do Perla.
%package connector-python
-Summary: File upload connector for Python backend
+Summary: File Manager Connector for Python
+Summary(pl.UTF-8): Interfejs zarządcy plików do Pythona
Group: Applications/WWW
Requires: %{name} = %{version}-%{release}
Requires: python
%description connector-python
-File upload connector for Python backend.
+File Manager Connector for Python.
-%description
-This HTML text editor brings to the web many of the powerful
-functionalities of desktop editors like MS Word. It's lightweight and
-doesn't require any kind of installation on the client computer.
-
-%description -l pl.UTF-8
-Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji
-edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej
-inicjalizacji na komputerze klienckim.
+%description connector-python -l pl.UTF-8
+Interfejs zarządcy plików do Pythona.
# copied from /usr/lib/rpm/macros
%package debuginfo
sed -i -e 's,\r$,,' fckeditor*
find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' -o -name '*.php' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+%patch0 -p1
+
# apache1/apache2 conf
cat > apache.conf <<'EOF'
Alias /%{name} %{_appdir}
cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+mv $RPM_BUILD_ROOT{%{_appdir}/editor/filemanager/connectors/php/config.php,%{_sysconfdir}/connector.php}
%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
%files connector-php
%defattr(644,root,root,755)
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/connector.php
%{_appdir}/editor/filemanager/connectors/php
# language interface actually.
%{_appdir}/fckeditor.php