58 lines
1.6 KiB
RPMSpec
58 lines
1.6 KiB
RPMSpec
%global pypi_name colorama
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.2.5
|
|
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
|
|
* Fri Mar 22 2013 Matthias Runge <mrunge@redhat.com> - 0.2.5-1
|
|
- update to 0.2.5 (rhbz#913431)
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Tue Sep 11 2012 Matthias Runge <mrunge@redhat.com> - 0.2.4-1
|
|
- Initial package.
|