Author: adamg Date: Wed Aug 6 14:38:06 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - missing fckeditor.* (lang interfaces) and *.xml files added - apache/lighttpd configs - R: webserver(access), webserver(alias) - BR: rpmbuild(macros) > 1.268 - somehow works, todo entry still not addressed
---- Files affected: SPECS: fckeditor.spec (1.7 -> 1.8) ---- Diffs: ================================================================ Index: SPECS/fckeditor.spec diff -u SPECS/fckeditor.spec:1.7 SPECS/fckeditor.spec:1.8 --- SPECS/fckeditor.spec:1.7 Wed Aug 6 10:23:36 2008 +++ SPECS/fckeditor.spec Wed Aug 6 16:38:00 2008 @@ -5,13 +5,16 @@ Summary(pl.UTF-8): Edytor tekstowy dla Internetu Name: fckeditor Version: 2.6.3 -Release: 0.1 +Release: 0.2 License: LGPL v2.1 Group: Applications/WWW Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz # 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) @@ -39,11 +42,46 @@ 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$,,' +# 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 @@ -59,6 +97,13 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.8 2008/08/06 14:38:00 adamg +- missing fckeditor.* (lang interfaces) and *.xml files added +- apache/lighttpd configs +- R: webserver(access), webserver(alias) +- BR: rpmbuild(macros) > 1.268 +- somehow works, todo entry still not addressed + Revision 1.7 2008/08/06 08:23:36 adamg - updated to 2.6.3 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/fckeditor.spec?r1=1.7&r2=1.8&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
