diff --git a/.gitignore b/.gitignore index e69de29..0ee7090 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/autopep8-0.8.tar.gz diff --git a/python-autopep8.spec b/python-autopep8.spec new file mode 100644 index 0000000..f9b1c8c --- /dev/null +++ b/python-autopep8.spec @@ -0,0 +1,42 @@ +Name: python-autopep8 +Version: 0.8 +Release: 1 +Summary: The package autopep8 formats Python code based on the output of the pep8 utility + +License: MIT +URL: http://pypi.python.org/pypi/autopep8 +Source0: http://pypi.python.org/packages/source/a/autopep8/autopep8-0.8.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel python-pep8 +Requires: python-pep8 + +%description +autopep8 formats Python code based on the output of the pep8 utility. + + +%prep +%setup -q -n autopep8-%{version} +sed -i -e '1d' autopep8.py +touch test/__init__.py #test needs to be a python module otherwise test will fial + +%build +%{__python} setup.py build + +%check +%if 0%{?fedora} >= 18 || 0%{?rhel} > 6 +%{__python} setup.py test +%endif + +%install +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files +%doc README.rst +%{python_sitelib}/* +%{_bindir}/autopep8 + +%changelog +* Thu Sep 06 2012 Nikola Dipanov - 0.8-1 +- initial build diff --git a/sources b/sources index e69de29..954ae7e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +968f7749aa6c8d65489b81b56ad57dea autopep8-0.8.tar.gz