]> git.pld-linux.org Git - packages/fckeditor.git/blobdiff - fckeditor.spec
- release 1
[packages/fckeditor.git] / fckeditor.spec
index 75f2d8eaa8405d52d685419feca61dc1250b0a73..db901bc0102252f8298418c02ac2d6295b669a6a 100644 (file)
@@ -4,14 +4,15 @@ Summary:      The text editor for Internet
 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)
@@ -23,42 +24,54 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %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
@@ -107,6 +120,8 @@ rm -f editor/filemanager/connectors/{test,uploadtest}.html
 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}
@@ -141,6 +156,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 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}
@@ -209,6 +225,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.076127 seconds and 4 git commands to generate.