]>
Commit | Line | Data |
---|---|---|
3b8d40a8 | 1 | # NOTE: python3 version in separate package (python3-dns) |
40466a16 JK |
2 | |
3 | %define module dns | |
4 | ||
9e9f6a3c | 5 | Summary: dnspython - a DNS toolkit for Python |
07fac7e8 | 6 | Summary(pl.UTF-8): dnspython - zestaw narzędzi do DNS dla Pythona |
40466a16 | 7 | Name: python-%{module} |
37aa6f96 | 8 | Version: 1.11.1 |
c7027766 | 9 | Release: 3 |
6b876520 | 10 | License: MIT |
40466a16 | 11 | Group: Development/Languages/Python |
ecbcff46 | 12 | Source0: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz |
37aa6f96 | 13 | # Source0-md5: 6167344ca849bd2ba108a8aa6118cb2b |
40466a16 | 14 | URL: http://www.dnspython.org/ |
ecb90238 JB |
15 | BuildRequires: python-devel >= 1:2.5 |
16 | BuildRequires: rpm-pythonprov | |
b446d01e | 17 | BuildRequires: rpmbuild(macros) >= 1.710 |
c8f5bbf1 | 18 | %pyrequires_eq python-modules |
40466a16 JK |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
9e9f6a3c | 23 | dnspython is a DNS toolkit for Python. It supports almost all record |
24 | types. It can be used for queries, zone transfers, and dynamic | |
25 | updates. It supports TSIG authenticated messages and EDNS0. | |
26 | ||
27 | dnspython provides both high and low level access to DNS. The high | |
28 | level classes perform queries for data of a given name, type, and | |
29 | class, and return an answer set. The low level classes allow direct | |
30 | manipulation of DNS zones, messages, names, and records. | |
40466a16 | 31 | |
70180d29 JR |
32 | %description -l pl.UTF-8 |
33 | dnspython to zestaw narzędzi do DNS dla Pythona. Obsługuje prawie | |
34 | wszystkie rodzaje rekordów. Może być używany do zapytań, transferów | |
35 | stref oraz dynamicznych uaktualnień. Obsługuje uwierzytelnione | |
c8f5bbf1 JB |
36 | komunikaty TSIG oraz EDNS0. |
37 | ||
70180d29 JR |
38 | dnspython dostarcza zarówno wysoko- jak i niskopoziomowy dostęp do |
39 | DNS-a. Klasy wysokopoziomowe wykonują zapytania o dane dla podanej | |
40 | nazwy, rodzaju i klasy, a zwracają zbiór odpowiedzi. Klasy | |
41 | niskopoziomowe umożliwiają bezpośrednie manipulacje na strefach, | |
c8f5bbf1 JB |
42 | komunikatach, nazwach i rekordach w DNS-ie. |
43 | ||
40466a16 JK |
44 | %prep |
45 | %setup -q -n dnspython-%{version} | |
46 | ||
47 | %build | |
15acbe13 | 48 | %py_build |
40466a16 JK |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
53 | ||
54 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
15acbe13 | 56 | %py_install |
40466a16 | 57 | |
6b876520 | 58 | %py_postclean |
40466a16 JK |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
37aa6f96 | 65 | %doc ChangeLog LICENSE README |
40466a16 | 66 | %{py_sitescriptdir}/%{module} |
ecbcff46 | 67 | %{py_sitescriptdir}/*.egg-info |
6b876520 | 68 | %{_examplesdir}/%{name}-%{version} |