]> git.pld-linux.org Git - SPECS.git/blob - trac-plugin-diavisview.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / trac-plugin-diavisview.spec
1 %define         trac_ver        0.11
2 %define         plugin          diavisview
3 Summary:        Automaticaly creates a bitmap render of Dia MS Visio diagrams
4 Name:           trac-plugin-%{plugin}
5 Version:        8100
6 Release:        0.1
7 License:        GPL v2
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
16 BuildRequires:  unzip
17 # if 0.12 cames into play, can simplify this
18 Requires:       trac >= %{trac_ver}.7-3
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This plugin automatically creates a bitmapped render of Dia and MS Visio VDX 
24 diagrams when attaching them to objects in Trac.
25
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.
30
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. 
34
35 Please see the link below for the image library.
36 http://www.pythonware.com/products/pil/ 
37
38
39 %prep
40 %setup -qc
41 mv %{plugin}plugin/%{trac_ver}/* .
42
43 %build
44 %{__python} setup.py build
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__python} setup.py install \
50         --root=$RPM_BUILD_ROOT
51         
52 %py_postclean
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{py_sitescriptdir}/*
This page took 0.1659 seconds and 3 git commands to generate.