SPECS/python-enum/python-enum.spec
2d879f6b
 %{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2ffc7209
 
 Name:           python-enum
7404bf19
 Version:        0.4.7
 Release:        1%{?dist}
2ffc7209
 Summary:        Robust enumerated type support in Python
 License:        MIT
 Group:          Development/Languages/Python
 Url:            http://pypi.python.org/packages/source/e/enum/enum-%{version}.tar.gz
 Vendor:		VMware, Inc.
 Distribution: 	Photon
 Source0:        enum-%{version}.tar.gz
7404bf19
 %define sha1    enum=dccaa3ebd20ecba27192b6fb2462a197e1df7864
2ffc7209
 
 BuildRequires:  python2
 BuildRequires:  python2-libs
 BuildRequires:  python-setuptools
 
 Requires:       python2
 Requires:       python2-libs
 
 BuildArch:      noarch
 
 %description
 This package provides a module for robust enumerations in Python. 
 
 %prep
 %setup -n enum-%{version}
 
 %build
2d879f6b
 python2 setup.py build
2ffc7209
 
 %install
2d879f6b
 python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
2ffc7209
 
 %check
2d879f6b
 python2 setup.py test
2ffc7209
 
 %files
 %defattr(-,root,root,-)
2d879f6b
 %{python2_sitelib}/*
2ffc7209
 
 %changelog
7404bf19
 *   Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 0.4.7-1
 -   Update to version 0.4.7
2d879f6b
 *   Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.4.6-2
 -   Changed python to python2
2ffc7209
 *   Thu Feb 16 2017 Xiaolin Li <xiaolinl@vmware.com> 0.4.6-1
 -   Initial packaging for Photon