2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
c727ea33 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Name: python-appdirs
Version: 1.4.3 |
f2c2ad04 |
Release: 3%{?dist} |
c727ea33 |
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/appdirs
Source0: https://pypi.python.org/packages/48/69/d87c60746b393309ca30761f8e2b49473d43450b150cb08f3c6df5c11be5/appdirs-%{version}.tar.gz
%define sha1 appdirs=9ad09395ed489ad66e9688e49087ce1814c64276
BuildRequires: python2
BuildRequires: python2-libs
Requires: python2
Requires: python2-libs
BuildArch: noarch
%description
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
%package -n python3-appdirs
Summary: python-appdirs
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-libs
Requires: python3
Requires: python3-libs
%description -n python3-appdirs
Python 3 version.
%prep
%setup -n appdirs-%{version}
%build |
2d879f6b |
python2 setup.py build |
c727ea33 |
python3 setup.py build
%install |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
c727ea33 |
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check |
f2c2ad04 |
cd test
PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python2_sitelib} \
python2 test_api.py
PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python3_sitelib} \
python3 test_api.py |
c727ea33 |
%files
%defattr(-,root,root,-) |
2d879f6b |
%{python2_sitelib}/* |
c727ea33 |
%files -n python3-appdirs
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog |
f2c2ad04 |
* Thu Jun 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.4.3-3
- Changes to check section |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.4.3-2
- Change python to python2 |
c727ea33 |
* Mon Apr 03 2017 Sarah Choi <sarahc@vmware.com> 1.4.3-1
- Create appdirs 1.4.3 |