]> git.pld-linux.org Git - packages/python-chardet.git/blame - python-chardet.spec
- up to 2.3.0
[packages/python-chardet.git] / python-chardet.spec
CommitLineData
764b2389
JR
1%define module chardet
2
3Summary: Character encoding auto-detection in Python
3d61b479 4Summary(pl.UTF-8): Automatyczne wykrywanie kodowania znaków w Pythonie
764b2389 5Name: python-%{module}
e096522f 6Version: 2.3.0
da08e7be 7Release: 1
764b2389 8License: LGPL
035e1894 9Group: Libraries/Python
da08e7be 10Source0: https://pypi.python.org/packages/source/c/chardet/%{module}-%{version}.tar.gz
e096522f 11# Source0-md5: 25274d664ccb5130adae08047416e1a8
da08e7be 12URL: https://pypi.python.org/pypi/chardet
ddd2957e
MK
13BuildRequires: python >= 1:2.4
14BuildRequires: python-devel >= 1:2.4
25c19e4a
JB
15BuildRequires: rpm-pythonprov
16BuildRequires: rpmbuild(macros) >= 1.219
764b2389 17%pyrequires_eq python-modules
da08e7be 18BuildArch: noarch
764b2389
JR
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
3d61b479 22Character encoding auto-detection in Python. As smart as your browser.
764b2389
JR
23
24%description -l pl.UTF-8
3d61b479 25Automatyczne wykrywanie kodowania znaków w Pythonie. Tak zmyślne jak w
26przeglądarce.
764b2389
JR
27
28%prep
29%setup -q -n %{module}-%{version}
30
31%build
25c19e4a 32%{__python} setup.py build
764b2389
JR
33
34%install
35rm -rf $RPM_BUILD_ROOT
36
25c19e4a 37%{__python} setup.py install \
764b2389
JR
38 --root=$RPM_BUILD_ROOT \
39 --optimize=2
40
41%py_postclean
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
e096522f
AM
48%attr(755,root,root) %{_bindir}/chardetect
49%doc README.rst
764b2389
JR
50%dir %{py_sitescriptdir}/chardet
51%{py_sitescriptdir}/chardet/*.py[co]
ddd2957e 52%if "%{py_ver}" > "2.4"
764b2389 53%{py_sitescriptdir}/*.egg-info
ddd2957e 54%endif
This page took 0.071171 seconds and 4 git commands to generate.