packages: trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec - up to 0.12.0.4, ma...

glen glen at pld-linux.org
Fri Jan 27 00:05:57 CET 2012


Author: glen                         Date: Thu Jan 26 23:05:57 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.12.0.4, make htdocs visible via webserver alias

---- Files affected:
packages/trac-plugin-wysiwyg:
   trac-plugin-wysiwyg.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: packages/trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec
diff -u packages/trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec:1.8 packages/trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec:1.9
--- packages/trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec:1.8	Sun Jan 23 03:04:15 2011
+++ packages/trac-plugin-wysiwyg/trac-plugin-wysiwyg.spec	Fri Jan 27 00:05:51 2012
@@ -1,18 +1,14 @@
 # $Revision$, $Date$
-# TODO
-# - one of my trac installs failed to load htdocs data and had to make such alias in apache config:
-#   AliasMatch ^/trac/[^/]+/chrome/tracwysiwyg/(.*) /usr/share/python2.6/site-packages/tracwysiwyg/htdocs/$1
 %define		trac_ver	0.12
-%define		rev		7817
 %define		plugin		wysiwyg
 Summary:	Wysiwyg Plugin for Trac
 Name:		trac-plugin-%{plugin}
-Version:	%{trac_ver}.0.2
+Version:	%{trac_ver}.0.4
 Release:	1
 License:	BSD
 Group:		Applications/WWW
 Source0:	http://trac-hacks.org/changeset/latest/tracwysiwygplugin?old_path=/&filename=%{plugin}-%{version}&format=zip#/%{plugin}-%{version}.zip
-# Source0-md5:	a6b46da0a6078c6988dc3d0d36f81ce6
+# Source0-md5:	765d663662c141944b3ab1125cb2ff68
 URL:		http://trac-hacks.org/wiki/TracWysiwygPlugin
 BuildRequires:	python-devel
 BuildRequires:	python-modules
@@ -20,9 +16,13 @@
 BuildRequires:	rpm-pythonprov
 BuildRequires:	unzip
 Requires:	trac >= %{trac_ver}
+# for htdocs alias, can be removed in 0.13
+Requires:	trac >= 0.12.2-4
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		trac_htdocs	/usr/share/trac/htdocs
+
 %description
 Wysiwyg editor embedded into textarea.wikitext.
 
@@ -44,6 +44,12 @@
 	--optimize 2 \
 	--root=$RPM_BUILD_ROOT
 
+# - one of my trac installs failed to load htdocs data and had to make such alias in apache config:
+# AliasMatch ^/trac/[^/]+/chrome/tracwysiwyg/(.*) %{_datadir}/python2.6/site-packages/tracwysiwyg/htdocs/$1
+# mv htdocs, so extra alias won't be needed
+install -d $RPM_BUILD_ROOT%{trac_htdocs}
+mv $RPM_BUILD_ROOT{%{py_sitescriptdir}/trac%{plugin}/htdocs,%{trac_htdocs}/trac%{plugin}}
+
 %py_postclean
 
 %clean
@@ -56,6 +62,7 @@
 %defattr(644,root,root,755)
 %{py_sitescriptdir}/trac%{plugin}
 %{py_sitescriptdir}/TracWysiwyg-%{version}-py*.egg-info
+%{trac_htdocs}/trac%{plugin}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +70,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2012/01/26 23:05:51  glen
+- up to 0.12.0.4, make htdocs visible via webserver alias
+
 Revision 1.8  2011/01/23 02:04:15  sparky
 - BR: python-setuptools
 
================================================================

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



More information about the pld-cvs-commit mailing list