[packages/trac-plugin-tracvatar] new, version 1.7

glen glen at pld-linux.org
Mon Apr 29 16:03:09 CEST 2013


commit 6bfb1a114f520e14440ec111581b13d7b6a6eca6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 29 17:02:17 2013 +0300

    new, version 1.7

 trac-plugin-tracvatar.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
diff --git a/trac-plugin-tracvatar.spec b/trac-plugin-tracvatar.spec
new file mode 100644
index 0000000..51f025c
--- /dev/null
+++ b/trac-plugin-tracvatar.spec
@@ -0,0 +1,76 @@
+%define		trac_ver	0.12
+%define		plugin		tracvatar
+Summary:	Adds Gravatar icons to Trac
+Name:		trac-plugin-%{plugin}
+Version:	1.7
+Release:	1
+License:	MIT
+Group:		Applications/WWW
+Source0:	https://bitbucket.org/zzzeek/tracvatar/get/rel_1_7.tar.bz2
+# Source0-md5:	2a9477232efe7af3d6523dc63c57e917
+URL:		https://bitbucket.org/zzzeek/tracvatar
+BuildRequires:	python-devel
+Requires:	trac >= %{trac_ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		trac_htdocs		/usr/share/trac/htdocs
+%define		plugin_htdocs	%{trac_htdocs}/%{plugin}
+
+%description
+Currently, only Gravatar is supported, but the more open-ended plugin
+system of Hackergotchi can be re-implemented here if other avatar
+engines are desired.
+
+Ideally, Trac itself would just include support for author avatars as
+a built in, since this is an extremely common and desirable feature.
+
+For now, the approach of the plugin is to filter specific Trac views,
+gather all the authors found in the "data" hash being passed to
+Genshi, then using Genshi filters to insert additional Gravatar nodes.
+
+Currently supported views are:
+- Timeline
+- Issue display
+- Issue change display (i.e. comments, attachments)
+- Source browser listing (tested for svn and hg so far)
+- Individual changeset page (tested for svn and hg so far)
+- User prefs page (includes link to "change your avatar" at
+  gravatar.com)
+
+%prep
+%setup -qc
+mv zzzeek-tracvatar-*/* .
+
+%build
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
+test "$ver" = %{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--single-version-externally-managed \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{plugin_htdocs}
+mv $RPM_BUILD_ROOT{%{py_sitescriptdir}/tracvatar/htdocs/*,%{plugin_htdocs}}
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+trac-enableplugin tracvatar.web_ui.avatarmodule
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst CHANGES LICENSE
+%dir %{py_sitescriptdir}/tracvatar
+%{py_sitescriptdir}/tracvatar/*.py[co]
+%{py_sitescriptdir}/tracvatar-%{version}-*.egg-info
+%{plugin_htdocs}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/trac-plugin-tracvatar.git/commitdiff/6bfb1a114f520e14440ec111581b13d7b6a6eca6



More information about the pld-cvs-commit mailing list