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.
51 lines
1.2 KiB
51 lines
1.2 KiB
12 years ago
|
%{!?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: 3.0.1
|
||
|
Release: 2%{?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
|
||
|
* 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.
|