diff --git a/README.md b/README.md index 2449c5f..7e1529b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ # python-chardet +Character encoding auto-detection in Python 2 and 3. +As smart as your browser. +Open source. + +Detects: + - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) + - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese) + - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese) + - EUC-KR, ISO-2022-KR (Korean) + - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) + - ISO-8859-2, windows-1250 (Hungarian) + - ISO-8859-5, windows-1251 (Bulgarian) + - windows-1252 (English) + - ISO-8859-7, windows-1253 (Greek) + - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) + - TIS-620 (Thai) + diff --git a/python-chardet.spec b/python-chardet.spec new file mode 100644 index 0000000..a76968e --- /dev/null +++ b/python-chardet.spec @@ -0,0 +1,67 @@ +Name: python-chardet +Version: 2.2.1 +Release: 1mamba +Summary: Universal Encoding Detector +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://chardet.feedparser.org/ +Source: https://pypi.python.org/packages/source/c/chardet/chardet-%{version}.tar.gz +#Source: http://chardet.feedparser.org/download/python2-chardet-%{version}.tgz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Character encoding auto-detection in Python 2 and 3. +As smart as your browser. +Open source. + +Detects: + - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) + - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese) + - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese) + - EUC-KR, ISO-2022-KR (Korean) + - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) + - ISO-8859-2, windows-1250 (Hungarian) + - ISO-8859-5, windows-1251 (Bulgarian) + - windows-1252 (English) + - ISO-8859-7, windows-1253 (Greek) + - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) + - TIS-620 (Thai) + +%prep +%setup -q -n chardet-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +#%doc COPYING + +%changelog +* Fri Jan 17 2014 Automatic Build System 2.2.1-1mamba +- automatic version update by autodist + +* Fri May 17 2013 Silvan Calarco 2.0.1-2mamba +- python 2.7 mass rebuild + +* Tue Aug 30 2011 Stefano Cotta Ramusino 2.0.1-1mamba +- package created by autospec