[python-colorama] initial build and import

Matthias Runge mrunge at fedoraproject.org
Fri Sep 14 08:33:41 UTC 2012


commit 2b29f15af346a44ae93eb4777841b677d6c75a06
Author: Matthias Runge <mrunge at redhat.com>
Date:   Fri Sep 14 10:33:28 2012 +0200

    initial build and import

 .gitignore           |    1 +
 python-colorama.spec |   51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7d28394 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/colorama-0.2.4.tar.gz
diff --git a/python-colorama.spec b/python-colorama.spec
new file mode 100644
index 0000000..63a0fb7
--- /dev/null
+++ b/python-colorama.spec
@@ -0,0 +1,51 @@
+%global pypi_name colorama
+
+Name:           python-%{pypi_name}
+Version:        0.2.4
+Release:        1%{?dist}
+Summary:        Cross-platform colored terminal text
+
+License:        BSD
+URL:            http://pypi.python.org/pypi/colorama/0.2.4
+Source0:        http://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+
+
+%description
+Makes ANSI escape character sequences, for producing colored
+terminal text and cursor positioning, work under MS Windows.
+
+ANSI escape character sequences have long been used to produce colored terminal
+text and cursor positioning on Unix and Macs. Colorama makes this work on
+Windows, too.
+It also provides some shortcuts to help generate ANSI sequences, and works fine
+in conjunction with any other ANSI sequence generation library, such as
+Termcolor.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+# fix wrong-file-end-of-line-encoding
+sed -i 's/\r//' LICENSE.txt
+sed -i 's/\r//' README.txt
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc README.txt LICENSE.txt
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%changelog
+* Tue Sep 11 2012 Matthias Runge <mrunge at redhat.com> - 0.2.4-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..39b14fc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2a4ad72f0deec24497e3bb2e79621914  colorama-0.2.4.tar.gz


More information about the scm-commits mailing list