diff --git a/.gitignore b/.gitignore index e69de29..8ec5882 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +kitchen-0.2a2.tar.gz diff --git a/python-kitchen.spec b/python-kitchen.spec new file mode 100644 index 0000000..6d9c2be --- /dev/null +++ b/python-kitchen.spec @@ -0,0 +1,77 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: python-kitchen +Version: 0.2 +Release: 0.1.a2%{?dist} +Summary: Small, useful pieces of code to make python coding easier + +Group: Development/Languages +License: LGPLv2+ +URL: https://fedorahosted.org//kitchen/ +Source0: https://fedorahosted.org/releases/k/i/kitchen/kitchen-%{version}a2.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-nose +%if 0%{?fedora} +BuildRequires: python-chardet +Requires: python-chardet +%endif + +%description +kitchen includes functions to make gettext easier to use, handling unicode +text easier (conversion with bytes, outputting xml, and calculating how many +columns a string takes), and compatibility modules for writing code that uses +python-2.7 modules but needs to run on python-2.3 + +%prep +%setup -q -n kitchen-%{version}a2 + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%check +# In current mock, the PATH isn't being reset. This causes failures in some +# subprocess tests as a check tests /root/bin/PROGRAM and fails with Permission +# Denied instead of File Not Found. reseting the PATH works around this. +PATH=/bin:/usr/bin +nosetests + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING README NEWS COPYING.LESSER docs/ +%{python_sitelib}/* + + +%changelog +* Thu Jul 29 2010 Dennis Gilmore - 0.2-0.1.a2 +- propoerlly version accrding to pre-release guidelines +- run tests +- update to 0.2a2 +- include COPYING.LESSER and docs dir + +* Thu Jul 29 2010 Dennis Gilmore - 0.2a1-2 +- rename to python-kitchen + +* Thu Jul 29 2010 Dennis Gilmore - 0.2a1-1 +- update to 0.2a1 + +* Thu Jul 15 2010 Dennis Gilmore - 0.1a3-3 +- fix spelling mistake in description + +* Thu Jul 15 2010 Dennis Gilmore - 0.1a3-2 +- add documentaion +- fix description + +* Thu Jul 15 2010 Dennis Gilmore - 0.1a3-1 +- initial package diff --git a/sources b/sources index e69de29..f2964f6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54eb68eacf4df9f910aa7533399c986a kitchen-0.2a2.tar.gz