packages: python-termcolor/python-termcolor.spec (NEW) - initial PLD release

pawelz pawelz at pld-linux.org
Mon Jul 26 09:58:57 CEST 2010


Author: pawelz                       Date: Mon Jul 26 07:58:57 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial PLD release

---- Files affected:
packages/python-termcolor:
   python-termcolor.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-termcolor/python-termcolor.spec
diff -u /dev/null packages/python-termcolor/python-termcolor.spec:1.1
--- /dev/null	Mon Jul 26 09:58:57 2010
+++ packages/python-termcolor/python-termcolor.spec	Mon Jul 26 09:58:52 2010
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%define 	module	termcolor
+Summary:	ANSII Color formatting for output in terminal
+Name:		python-%{module}
+Version:	0.1.2
+Release:	0.1
+License:	GPL v3
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
+# Source0-md5:	bc0f9923c8c82643a6b48e1b0f87399f
+URL:		http://pypi.python.org/pypi/termcolor
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ANSII Color formatting for output in terminal.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.txt CHANGES.txt README.txt
+%{py_sitescriptdir}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/termcolor-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/07/26 07:58:52  pawelz
+- initial PLD release
+
================================================================


More information about the pld-cvs-commit mailing list