]> git.pld-linux.org Git - packages/python-encutils.git/blob - python-encutils.spec
089d718bf77bea7f5ca4e149ff0f705024fcef91
[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.9
6 Release:        1
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:  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
16 BuildRequires:  unzip
17 %pyrequires_eq  python-modules
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
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.
23
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.
27
28 %prep
29 %setup -q -n %{module}-%{version}
30
31 %build
32 python setup.py build
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 python setup.py install \
38         --single-version-externally-managed \
39         --optimize=2 \
40         --root $RPM_BUILD_ROOT
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc README.txt
48 %dir %{py_sitescriptdir}/encutils
49 %attr(755,root,root) %{py_sitescriptdir}/encutils/*.py[co]
50 %{py_sitescriptdir}/*.egg-info
This page took 0.042405 seconds and 2 git commands to generate.