forked from LeResKP/xmltool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-xmltool.spec
115 lines (88 loc) · 2.81 KB
/
python-xmltool.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%define modname xmltool
%define version 0.5.2
%define unmangled_version 0.5.2
%define release 1
Summary: Tool to manipulate XML files
Name: python-xmltool
Version: %{version}
Release: %{release}
Source0: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
License: MIT
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{modname}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Aurélien Matouillot <[email protected]>
Url: http://xmltool.lereskp.fr/
Requires: python-lxml
Requires: python-webob
Requires: python-dogpile-cache
%description
xmltool
=========
xmltool is a python package to manipulate XML files. It's very useful to update some XML files with the python syntax without using the DOM.
`Read the documentation <http://xmltool.lereskp.fr>`_
Changelog
=========
0.5.2:
* Close correctly temporary file
0.5.1:
* Fix dtd cache
0.5:
* Add CDATA support
* Improve dtd validation
O.4:
* Rewrite javascript and add unittest
* Cleanup python code
* Remove deprecated functions
O.3.7:
* Cache to get the dtd content
* CKEditor render
O.3.6.2:
* Support to have comment inside a TextElement
* Improve HTML rendering
* Bug fix: make numdict_to_list works when we have more than 9 elements
O.3.6.1:
* Be able to skip attributes and comments when we load object
O.3.6:
* Add functions to update existing object with data from other one
* Some cleanup and fixes
O.3.5:
* Use grunt to manage the webmedia
* Use bootstrap to make the HTML rendering
* javascript performance
* xpath support
* Only use the dict style to access elements
* Deprecate some attributes
O.3.4:
* Make xmltool works with old version of lxml
* Be able to pass attributes to the HTML form
O.3.3:
* Fix missing require
O.3.2:
* Better support for local dtd. It can a relative path from the XML filename.
* Bug fix: the EMPTY tags are support correctly!
O.3.1:
* Render the text element as HTML format when exporting in XML (no autoclose tag)
* Bug fix: make sure we add empty text element in the HTML form
O.3:
* Rewrite the core of the code
* Better performance to generate the HTML
* Bug fix
O.2:
* Update the project architecture
* Be able to access to the element properties like a dict
* Add functions to easily update or create XML file
* Fix missing README file in the package
O.1:
* Initial version: package to manipulate XML file and create HTML forms.
%prep
%setup -n %{modname}-%{unmangled_version} -n %{modname}-%{unmangled_version}
%build
python setup.py build
%install
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)