2 %define plugin diavisview
3 Summary: Automaticaly creates a bitmap render of Dia MS Visio diagrams
4 Name: trac-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://trac-hacks.org/changeset/latest/diavisviewplugin?old_path=/&format=zip#/%{plugin}-%{version}.zip
10 # Source0-md5: 94e5f8bbf40d9163956317af6e176230
11 URL: http://trac-hacks.org/wiki/DiaVisViewPlugin
12 BuildRequires: python-devel >= 1:2.5
13 BuildRequires: python-distribute
14 BuildRequires: python-modules
15 BuildRequires: rpm-pythonprov
17 # if 0.12 cames into play, can simplify this
18 Requires: trac >= %{trac_ver}.7-3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This plugin automatically creates a bitmapped render of Dia and MS Visio VDX
24 diagrams when attaching them to objects in Trac.
26 This has taken the original DiaViewPlugin and modified it for use with Trac
27 0.11, and at the same time included support for vdx and compressed files.
28 It has had very little testing. It has been set up as a separate hack to the
29 original DiaViewPlugin so as not to break DiaViewPlugin for Trac < 0.11.
31 If the width was changed in the macro argument the displayed image would
32 scale, however the source file stayed the same. To overcome this the width
33 is checked using the image library, and if different it is re-rendered.
35 Please see the link below for the image library.
36 http://www.pythonware.com/products/pil/
41 mv %{plugin}plugin/%{trac_ver}/* .
44 %{__python} setup.py build
47 rm -rf $RPM_BUILD_ROOT
49 %{__python} setup.py install \
50 --root=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)