]> git.pld-linux.org Git - packages/fckeditor.git/blobdiff - fckeditor.spec
- missing fckeditor.* (lang interfaces) and *.xml files added
[packages/fckeditor.git] / fckeditor.spec
index d5b0575f385a9ac7e081711feba9c387a5a0f67b..b5e8d6b52631f1fd872fea71e8037988bb9107ae 100644 (file)
@@ -1,16 +1,19 @@
 # TODO
 # - connectors subpackages
 Summary:       The text editor for Internet
-Summary(pl):   Edytor tekstowy dla Internetu
+Summary(pl.UTF-8):     Edytor tekstowy dla Internetu
 Name:          fckeditor
-Version:       2.1.1
-Release:       0.1
+Version:       2.6.3
+Release:       0.2
 License:       LGPL v2.1
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
-# Source0-md5: c41f2eeb93757ed06a8556dc8f2a15a0
+# Source0-md5: eb926332283376614ade9610f20b27d4
 URL:           http://www.fckeditor.net/
+BuildRequires: rpmbuild(macros) > 1.268
 BuildRequires: sed >= 4.0
+Requires:      webserver(access)
+Requires:      webserver(alias)
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -21,28 +24,63 @@ 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
-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
+%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.
 
 %prep
-%setup -q -n FCKeditor
+%setup -qc
+mv fckeditor/* .
+rmdir fckeditor
 
 # don't know if there's any interpreter for those on linux, so kill
 rm -f fckeditor.{afp,asp,cfc,cfm,lasso}
 
 # undos the source
 sed -i -e 's,\r$,,' fckeditor.*
-find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
-find -name '*.suspended' | xargs rm -v
+# apache1/apache2 conf
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+       Allow from all
+</Directory>
+EOF
+
+# lighttpd conf
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+    "/%{name}" => "%{_appdir}",
+)
+EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
 cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir}
+cp -a fckeditor.* $RPM_BUILD_ROOT%{_appdir}
 cp -a editor $RPM_BUILD_ROOT%{_appdir}
+cp -a *.xml $RPM_BUILD_ROOT%{_appdir}
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.159899 seconds and 4 git commands to generate.