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: d6b01d11bf0897e50e11d6f95b8d9b81
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
17 %pyrequires_eq python-modules
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 A collection of helper functions to detect encodings of text files
22 (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string.
24 %description -l pl.UTF-8
25 Kolekcja funkcji wykrywającej kodowanie plików tekstowych (HTML,
26 XHTML, XML, CSS, etc.) pobranych przez HTTP, plik lub ciąg znaków.
29 %setup -q -n %{module}-%{version}
35 rm -rf $RPM_BUILD_ROOT
37 python setup.py install \
38 --single-version-externally-managed \
40 --root $RPM_BUILD_ROOT
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
48 %dir %{py_sitescriptdir}/encutils
49 %attr(755,root,root) %{py_sitescriptdir}/encutils/*.py[co]
50 %{py_sitescriptdir}/*.egg-info