You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-path/python-path.spec

54 lines
1.3 KiB

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%global bname path
Name: python-%{bname}
Version: 4.3
Release: 1%{?dist}
Summary: A python module wrapper for os.path
License: MIT
URL: https://pypi.python.org/pypi/path.py
Source0: https://pypi.python.org/packages/source/p/path.py/%{bname}.py-%{version}.zip
BuildArch: noarch
BuildRequires: python2-devel
%description
path.py implements a path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
See documentation here http://amoffat.github.io/sh/.
%prep
%setup -q -n %{bname}.py-%{version}
%build
%{__python} setup.py build
%check
%{__python} test_path.py
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog
* Fri Jul 26 2013 Xavier Lamien <laxathom@fedoraproject.org> - 4.3-1
- Upstream release.
* Wed Apr 10 2013 Xavier Lamien <laxathom@fedoraproject.org> - 3.0.1-2
- Add %%check stage.
- Update BuildRequire.
- Add missing %%docs.
* Wed Apr 10 2013 Xavier Lamien <laxathom@fedoraproject.org> - 3.0.1-1
- Initial RPM release.