SPECS: fckeditor.spec - more undos files, more files packaged, samples move...

glen glen at pld-linux.org
Thu Aug 21 15:53:29 CEST 2008


Author: glen                         Date: Thu Aug 21 13:53:29 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more undos files, more files packaged, samples moved to examplesdir

---- Files affected:
SPECS:
   fckeditor.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/fckeditor.spec
diff -u SPECS/fckeditor.spec:1.8 SPECS/fckeditor.spec:1.9
--- SPECS/fckeditor.spec:1.8	Wed Aug  6 16:38:00 2008
+++ SPECS/fckeditor.spec	Thu Aug 21 15:53:24 2008
@@ -1,11 +1,12 @@
 # $Revision$, $Date$
 # 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
@@ -34,13 +35,14 @@
 %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'
@@ -61,10 +63,13 @@
 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}
 
@@ -91,12 +96,17 @@
 %doc _*
 %{_appdir}
 
+%{_examplesdir}/%{name}-%{version}
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2008/08/21 13:53:24  glen
+- more undos files, more files packaged, samples moved to examplesdir
+
 Revision 1.8  2008/08/06 14:38:00  adamg
 - missing fckeditor.* (lang interfaces) and *.xml files added
 - apache/lighttpd configs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fckeditor.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list