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