diff --git a/.gitignore b/.gitignore index e69de29..1012add 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/path.py-3.0.1.zip diff --git a/python-path.spec b/python-path.spec new file mode 100644 index 0000000..4e62209 --- /dev/null +++ b/python-path.spec @@ -0,0 +1,50 @@ +%{!?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 - 3.0.1-2 +- Add %%check stage. +- Update BuildRequire. +- Add missing %%docs. + +* Wed Apr 10 2013 Xavier Lamien - 3.0.1-1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..40c9f9f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +12dc60ddc03360d4f1b05b1a3a6f02bf path.py-3.0.1.zip