Browse Source

python-markupsafe-1.1.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11928 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
9c6ea11bdb
1 changed files with 13 additions and 11 deletions
  1. 13 11
      p/python-markupsafe/python-markupsafe-vl.spec

+ 13 - 11
p/python-markupsafe/python-markupsafe-vl.spec

@@ -1,9 +1,8 @@
-%global with_python3 0
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%global with_python3 1
 
 Name: python-markupsafe
-Version: 0.12
-Release: 3%{?_dist_release}
+Version: 1.1.0
+Release: 1%{?_dist_release}
 Summary: Implements a XML/HTML/XHTML Markup safe string for Python
 
 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
 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}
-BuildRequires: python3-devel python3-setuptools
-# For /usr/bin/2to3
-BuildRequires: python-tools
+BuildRequires: python3-devel python3-setuptools python3-rpm-macros
 %endif # if with_python3
 
 Vendor: Project Vine
@@ -41,7 +38,6 @@ A library for safe markup escaping.
 %if 0%{?with_python3}
 %__rm -rf %{py3dir}
 %__cp -a . %{py3dir}
-2to3 --write --nobackups %{py3dir}
 %endif # with_python3
 
 %build
@@ -83,18 +79,24 @@ popd
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS LICENSE README.rst
+%license LICENSE*
+%doc CHANGES* README*
 %{python_sitearch}/*
 
 %if 0%{?with_python3}
 %files -n python3-markupsafe
 %defattr(-,root,root,-)
-%doc AUTHORS LICENSE README.rst
+%license LICENSE*
+%doc CHANGES* README*
 %{python3_sitearch}/*
 %endif # with_python3
 
 
 %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
 - rebuild with VineSeed environment