1 %define module encutils
2 Summary: A collection of helper functions to detect encodings of text files
3 Summary(pl.UTF-8): Kolekcja funkcji wykrywającej kodowanie plików tekstowych
8 Group: Libraries/Python
9 Source0: http://cheeseshop.python.org/packages/source/e/encutils/%{module}-%{version}.zip
10 # Source0-md5: 691785da7babf1af4c051977a4c97a1f
11 URL: http://cthedot.de/encutils/
12 BuildRequires: python-devel >= 1:2.5
13 BuildRequires: python-setuptools
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.174
16 %pyrequires_eq python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 A collection of helper functions to detect encodings of text files
21 (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string.
23 %description -l pl.UTF-8
24 Kolekcja funkcji wykrywającej kodowanie plików tekstowych (HTML,
25 XHTML, XML, CSS, etc.) pobranych przez HTTP, plik lub ciąg znaków.
28 %setup -q -n %{module}-%{version}
34 rm -rf $RPM_BUILD_ROOT
36 python setup.py install \
37 --single-version-externally-managed \
39 --root $RPM_BUILD_ROOT
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %dir %{py_sitescriptdir}/encutils
48 %attr(755,root,root) %{py_sitescriptdir}/encutils/*.py[co]
49 %{py_sitescriptdir}/*.egg-info