|
@@ -1,9 +1,8 @@
|
|
-%global with_python3 0
|
|
+%global with_python3 1
|
|
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
|
|
|
Name: python-markupsafe
|
|
Name: python-markupsafe
|
|
-Version: 0.12
|
|
+Version: 1.1.0
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
|
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
@@ -12,12 +11,10 @@ URL: http://pypi.python.org/pypi/MarkupSafe
|
|
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
|
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
-BuildRequires: python-devel python-setuptools
|
|
+BuildRequires: python-devel python-setuptools python-rpm-macros
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
-BuildRequires: python3-devel python3-setuptools
|
|
+BuildRequires: python3-devel python3-setuptools python3-rpm-macros
|
|
-# For /usr/bin/2to3
|
|
|
|
-BuildRequires: python-tools
|
|
|
|
%endif # if with_python3
|
|
%endif # if with_python3
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -41,7 +38,6 @@ A library for safe markup escaping.
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
%__rm -rf %{py3dir}
|
|
%__rm -rf %{py3dir}
|
|
%__cp -a . %{py3dir}
|
|
%__cp -a . %{py3dir}
|
|
-2to3 --write --nobackups %{py3dir}
|
|
|
|
%endif # with_python3
|
|
%endif # with_python3
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -83,18 +79,24 @@ popd
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHORS LICENSE README.rst
|
|
+%license LICENSE*
|
|
|
|
+%doc CHANGES* README*
|
|
%{python_sitearch}/*
|
|
%{python_sitearch}/*
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
%files -n python3-markupsafe
|
|
%files -n python3-markupsafe
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHORS LICENSE README.rst
|
|
+%license LICENSE*
|
|
|
|
+%doc CHANGES* README*
|
|
%{python3_sitearch}/*
|
|
%{python3_sitearch}/*
|
|
%endif # with_python3
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- added python3 support.
|
|
|
|
+
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12-3
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12-3
|
|
- rebuild with VineSeed environment
|
|
- rebuild with VineSeed environment
|
|
|
|
|