2 %bcond_without python2 # CPython 2.x module
3 %bcond_without python3 # CPython 3.x module
5 %define module et_xmlfile
6 Summary: An implementation of lxml.xmlfile for the standard library
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/et_xmlfile/
13 Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/%{module}-%{version}.tar.gz
14 # Source0-md5: f47940fd9d556375420b2e276476cfaf
15 URL: https://bitbucket.org/openpyxl/et_xmlfile
17 BuildRequires: python-modules >= 1:2.6
18 BuildRequires: python-setuptools
21 BuildRequires: python3-modules >= 1:3.3
22 BuildRequires: python3-setuptools
24 BuildRequires: rpm-pythonprov
25 BuildRequires: rpmbuild(macros) >= 1.714
26 Requires: python-modules >= 1:2.6
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 et_xmlfile is a low memory library for creating large XML files.
33 It is based upon the xmlfile module from lxml with the aim of allowing
34 code to be developed that will work with both libraries. It was
35 developed initially for the openpyxl project but is now a standalone
38 %package -n python3-%{module}
39 Summary: An implementation of lxml.xmlfile for the standard library
40 Group: Libraries/Python
41 Requires: python3-modules >= 1:3.3
43 %description -n python3-%{module}
44 et_xmlfile is a low memory library for creating large XML files.
46 It is based upon the xmlfile module from lxml with the aim of allowing
47 code to be developed that will work with both libraries. It was
48 developed initially for the openpyxl project but is now a standalone
52 %setup -q -n %{module}-%{version}
64 rm -rf $RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
83 %{py_sitescriptdir}/%{module}
84 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
88 %files -n python3-%{module}
89 %defattr(644,root,root,755)
91 %{py3_sitescriptdir}/%{module}
92 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info