| |
@@ -1,9 +1,3 @@
|
| |
- %if 0%{?rhel} && 0%{?rhel} <= 6
|
| |
- %{!?__python2: %global __python2 /usr/bin/python2}
|
| |
- %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
| |
- %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
| |
- %endif
|
| |
-
|
| |
%if 0%{?fedora} || 0%{?rhel} >= 8
|
| |
%global with_python3 1
|
| |
%endif
|
| |
@@ -11,8 +5,8 @@
|
| |
%global srcname Chameleon
|
| |
|
| |
Name: python-chameleon
|
| |
- Version: 3.4
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 3.6.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: XML-based template compiler
|
| |
|
| |
License: BSD
|
| |
@@ -38,11 +32,6 @@
|
| |
BuildRequires: python-unittest2
|
| |
%endif
|
| |
|
| |
- %if 0%{?rhel} && 0%{?rhel} < 6
|
| |
- BuildRequires: python-elementtree
|
| |
- BuildRequires: python-ordereddict
|
| |
- %endif
|
| |
-
|
| |
%global _description\
|
| |
Chameleon is an XML attribute language template compiler. It comes with\
|
| |
implementations for the Zope Page Templates (ZPT) and Genshi templating\
|
| |
@@ -56,10 +45,6 @@
|
| |
|
| |
%package -n python2-chameleon
|
| |
Summary: %summary
|
| |
- %if 0%{?rhel} && 0%{?rhel} < 6
|
| |
- Requires: python-elementtree
|
| |
- Requires: python-ordereddict
|
| |
- %endif
|
| |
Requires: python2-setuptools
|
| |
Requires: python2-zope-interface
|
| |
Requires: python2-lxml
|
| |
@@ -98,6 +83,10 @@
|
| |
rm -rf %{buildroot}%{python2_sitelib}/chameleon/tests
|
| |
# Data files for the tests
|
| |
find %{buildroot}%{python2_sitelib}/chameleon -name '*.txt' -exec rm \{\} \;
|
| |
+ %if 0%{?with_python3}
|
| |
+ rm -rf %{buildroot}%{python3_sitelib}/chameleon/tests
|
| |
+ find %{buildroot}%{python3_sitelib}/chameleon -name '*.txt' -exec rm \{\} \;
|
| |
+ %endif
|
| |
|
| |
%check
|
| |
%{__python2} setup.py test
|
| |
@@ -119,6 +108,9 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Tue Apr 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-1
|
| |
+ - Update to 3.6.1 (#1678778)
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |