]> git.pld-linux.org Git - packages/python-encutils.git/blob - python-encutils.spec
- release 2
[packages/python-encutils.git] / python-encutils.spec
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
4 Name:           python-%{module}
5 Version:        0.8.3
6 Release:        2
7 License:        LGPL v2.1
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)
18
19 %description
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.
22
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.
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         --single-version-externally-managed \
38         --optimize=2 \
39         --root $RPM_BUILD_ROOT
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc README.txt
47 %dir %{py_sitescriptdir}/encutils
48 %attr(755,root,root) %{py_sitescriptdir}/encutils/*.py[co]
49 %{py_sitescriptdir}/*.egg-info
This page took 0.083934 seconds and 4 git commands to generate.