-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-colorama.spec
64 lines (42 loc) · 1.96 KB
/
python-colorama.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
########################################################################################
%define package_name colorama
########################################################################################
Summary: Cross-platform colored terminal text.
Name: python-colorama
Version: 0.3.6
Release: 0%{?dist}
License: MIT
Group: Development/Libraries
URL: https://pypi.python.org/pypi/colorama
Source: https://pypi.python.org/packages/source/c/%{package_name}/%{package_name}-%{version}.tar.gz
BuildRequires: python-devel python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildArch: noarch
Provides: %{name} = %{verion}-%{release}
########################################################################################
%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, by wrapping stdout, stripping ANSI sequences
it finds (which would appear as gobbledygook in the output), and converting them into
the appropriate win32 calls to modify the state of the terminal.
On other platforms, Colorama does nothing.
########################################################################################
%prep
%setup -q -n %{package_name}-%{version}
%clean
rm -rf %{buildroot}
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
########################################################################################
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
########################################################################################
%changelog
* Wed Feb 24 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 0.3.6-0
- Initial build