SPECS/python-markupsafe/python-markupsafe.spec
513aa603
 %{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
 %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
 
 Summary:        A XML/HTML/XHTML Markup safe string for Python.
 Name:           python-markupsafe
bfd9864f
 Version:        1.0
2d879f6b
 Release:        2%{?dist}
513aa603
 License:        BSD
 Group:          Development/Languages/Python
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Url:            https://pypi.python.org/pypi/MarkupSafe
bfd9864f
 Source0:        https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-%{version}.tar.gz 
 %define sha1    MarkupSafe=9072e80a7faa0f49805737a48f3d871eb1c48728
513aa603
 
 BuildRequires:  python2
 BuildRequires:  python2-libs
 BuildRequires:  python-setuptools
 
 Requires:       python2
 Requires:       python2-libs
 
 %description
 MarkupSafe implements a XML/HTML/XHTML Markup safe string for Python.
 
 %package -n     python3-markupsafe
 Summary:        python-markupsafe
 BuildRequires:  python3
 BuildRequires:  python3-devel
 BuildRequires:  python3-libs
 Requires:       python3
 Requires:       python3-libs
 
 %description -n python3-markupsafe
 Python 3 version.
 
 %prep
 %setup -q -n MarkupSafe-%{version}
 
 %build
 python2 setup.py build
 python3 setup.py build
 
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 %check
 easy_install py
 python2 setup.py test
 python3 setup.py test
 
 %files
 %defattr(-,root,root,-)
 %{python2_sitelib}/*
 
 %files -n python3-markupsafe
 %defattr(-,root,root,-)
 %{python3_sitelib}/*
 
 %changelog
2d879f6b
 *   Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.0-2
 -   Removed erroneous version line
bfd9864f
 *   Thu Mar 30 2017 Sarah Choi <sarahc@vmware.com> 1.0-1
 -   Upgrade version to 1.0
513aa603
 *   Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 0.23-1
 -   Initial packaging for Photon