]> git.pld-linux.org Git - packages/python-chardet.git/blob - python-chardet.spec
dd5422bed5da4e87d4126b2f9e7c1f25f5c118f5
[packages/python-chardet.git] / python-chardet.spec
1 %define         module  chardet
2
3 Summary:        Character encoding auto-detection in Python
4 Summary(pl.UTF-8):      Automatyczne wykrywanie kodowania znaków w Pythonie
5 Name:           python-%{module}
6 Version:        1.0.1
7 Release:        2
8 License:        LGPL
9 Group:          Libraries/Python
10 Source0:        http://chardet.feedparser.org/download/%{module}-%{version}.tgz
11 # Source0-md5:  f8c510a6fac300fe0ac9a0c24a76a7ba
12 URL:            http://chardet.feedparser.org/
13 BuildRequires:  python >= 1:2.5
14 BuildRequires:  python-devel >= 1:2.5
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  rpmbuild(macros) >= 1.219
17 %pyrequires_eq  python-modules
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Character encoding auto-detection in Python. As smart as your browser.
22
23 %description -l pl.UTF-8
24 Automatyczne wykrywanie kodowania znaków w Pythonie. Tak zmyślne jak w
25 przeglądarce.
26
27 %prep
28 %setup -q -n %{module}-%{version}
29
30 %build
31 %{__python} setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 %{__python} setup.py install \
37         --root=$RPM_BUILD_ROOT \
38         --optimize=2
39
40 %py_postclean
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc docs/*
48 %dir %{py_sitescriptdir}/chardet
49 %{py_sitescriptdir}/chardet/*.py[co]
50 %{py_sitescriptdir}/*.egg-info
This page took 0.046938 seconds and 2 git commands to generate.