commit 1927e827c09ed39c6bb43b6dd5e1ff8b02f4f56b213f4050a148a446e0de6a7d Author: Ciaran Farrell Date: Tue Nov 24 13:51:30 2009 +0000 Accepting request 24949 from home:babelworx:python Copy from home:babelworx:python/python-termcolor via accept of submit request 24949 revision 1. Request was accepted with message: installed, tested, works OBS-URL: https://build.opensuse.org/request/show/24949 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-termcolor.spec b/python-termcolor.spec new file mode 100644 index 0000000..510f4d6 --- /dev/null +++ b/python-termcolor.spec @@ -0,0 +1,51 @@ +#norootforbuild +# +%define real_name termcolor +# +# +Name: python-%{real_name} +Group: Development/Libraries/Python +Version: 0.1.2 +Release: 0 +License: GPLv3+ +Summary: ANSII Color formatting for output in terminal. +Autoreqprov: on +Source: %{real_name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-setuptools +Url: http://pypi.python.org/pypi/termcolor +%{py_requires} +%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))') +%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildArch: noarch +%else +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} +%endif + +%description +Available text colors: grey, red, green, yellow, blue, magenta, cyan, white. +Available text highlights: on_grey, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white. +Available attributes: bold, dark, underline, blink, reverse, concealed. + +%prep +%setup -n %{real_name}-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc AUTHORS.txt CHANGES.txt COPYING.txt PKG-INFO README.txt + +%changelog + +* Tue Nov 24 2009 - Ciaran Farrell - 0.1.2 +- First build +