diff --git a/.gitignore b/.gitignore index e69de29..7861e35 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/walkdir-0.3.tar.gz diff --git a/python-walkdir.spec b/python-walkdir.spec new file mode 100644 index 0000000..2ec0538 --- /dev/null +++ b/python-walkdir.spec @@ -0,0 +1,50 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-walkdir +Version: 0.3 +Release: 1%{?dist} +Summary: Python module to manipulate and filter os.walk() style iteration + +Group: Development/Languages +License: BSD +URL: http://walkdir.readthedocs.org/ +Source0: http://pypi.python.org/packages/source/w/walkdir/walkdir-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel, python-setuptools + +%description +walkdir is a simple set of iterator tools intended to +make it easy to manipulate and filter the output of os.walk() +in a way that is also easily applicable to any source iterator +that produces data in the same format + +%prep +%setup -q -n walkdir-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt +# For noarch packages: sitelib +%{python_sitelib}/walkdir* + + +%changelog +* Thu Aug 09 2012 Kushal Das 0.3-1 +- Initial release + diff --git a/sources b/sources index e69de29..e300772 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e99204b8f449f020dd5518d0c4d20d21 walkdir-0.3.tar.gz