]>
Commit | Line | Data |
---|---|---|
764b2389 JR |
1 | %define module chardet |
2 | ||
3 | Summary: Character encoding auto-detection in Python | |
3d61b479 | 4 | Summary(pl.UTF-8): Automatyczne wykrywanie kodowania znaków w Pythonie |
764b2389 | 5 | Name: python-%{module} |
3da76738 | 6 | Version: 1.0.1 |
a637123e | 7 | Release: 3 |
764b2389 | 8 | License: LGPL |
035e1894 | 9 | Group: Libraries/Python |
764b2389 | 10 | Source0: http://chardet.feedparser.org/download/%{module}-%{version}.tgz |
3da76738 | 11 | # Source0-md5: f8c510a6fac300fe0ac9a0c24a76a7ba |
764b2389 JR |
12 | URL: http://chardet.feedparser.org/ |
13 | BuildRequires: python >= 1:2.5 | |
14 | BuildRequires: python-devel >= 1:2.5 | |
25c19e4a JB |
15 | BuildRequires: rpm-pythonprov |
16 | BuildRequires: rpmbuild(macros) >= 1.219 | |
764b2389 JR |
17 | %pyrequires_eq python-modules |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
3d61b479 | 21 | Character encoding auto-detection in Python. As smart as your browser. |
764b2389 JR |
22 | |
23 | %description -l pl.UTF-8 | |
3d61b479 | 24 | Automatyczne wykrywanie kodowania znaków w Pythonie. Tak zmyślne jak w |
25 | przeglądarce. | |
764b2389 JR |
26 | |
27 | %prep | |
28 | %setup -q -n %{module}-%{version} | |
29 | ||
30 | %build | |
25c19e4a | 31 | %{__python} setup.py build |
764b2389 JR |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
25c19e4a | 36 | %{__python} setup.py install \ |
764b2389 JR |
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 |