]> git.pld-linux.org Git - packages/fckeditor.git/commitdiff
- more undos files, more files packaged, samples moved to examplesdir
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 21 Aug 2008 13:53:24 +0000 (13:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fckeditor.spec -> 1.9

fckeditor.spec

index b5e8d6b52631f1fd872fea71e8037988bb9107ae..f261152a58a499788ea72e6bf7eb5356a5a2f706 100644 (file)
@@ -1,10 +1,11 @@
 # TODO
-# - connectors subpackages
+# - connectors subpackages (for language deps)
+# - subpackage for _source (or don't package at all), used only when FCKConfig.Debug is set: LoadScript( '_source/internals/fckdebug.js' ) ;
 Summary:       The text editor for Internet
 Summary(pl.UTF-8):     Edytor tekstowy dla Internetu
 Name:          fckeditor
 Version:       2.6.3
-Release:       0.2
+Release:       0.7
 License:       LGPL v2.1
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
@@ -33,13 +34,14 @@ inicjalizacji na komputerze klienckim.
 %setup -qc
 mv fckeditor/* .
 rmdir fckeditor
+mv _samples samples
 
 # don't know if there's any interpreter for those on linux, so kill
-rm -f fckeditor.{afp,asp,cfc,cfm,lasso}
+rm -f *.{afp,asp,cfc,cfm,lasso}
 
 # undos the source
-sed -i -e 's,\r$,,' fckeditor.*
-find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+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$,,'
 
 # apache1/apache2 conf
 cat > apache.conf <<'EOF'
@@ -60,10 +62,13 @@ EOF
 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 fckeditor.* fckeditor_php4.php fckeditor_php5.php $RPM_BUILD_ROOT%{_appdir}
 cp -a editor $RPM_BUILD_ROOT%{_appdir}
 cp -a *.xml $RPM_BUILD_ROOT%{_appdir}
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %triggerin -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
 
@@ -89,3 +94,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc _*
 %{_appdir}
+
+%{_examplesdir}/%{name}-%{version}
This page took 0.07354 seconds and 4 git commands to generate.