]>
Commit | Line | Data |
---|---|---|
391f4966 AF |
1 | %define module IPy |
2 | Summary: Class and tools for handling of IPv4 and IPv6 addresses and networks | |
38a3cba1 | 3 | Summary(pl.UTF-8): Klasy i narzędzia do obsługi adresów i sieci IPv4 i IPv6 |
78bebdee | 4 | Name: python-%{module} |
22c99a33 | 5 | Version: 0.80 |
4a00a783 | 6 | Release: 3 |
391f4966 | 7 | License: BSD |
78bebdee | 8 | Group: Libraries/Python |
391f4966 | 9 | Source0: http://cheeseshop.python.org/packages/source/I/IPy/%{module}-%{version}.tar.gz |
22c99a33 | 10 | # Source0-md5: 3ac024861a8ca833b3f041d0fe2ce04c |
d77e90f4 | 11 | URL: https://github.com/haypo/python-ipy/wiki |
391f4966 | 12 | BuildRequires: python-devel >= 1:2.5 |
15c8286c | 13 | BuildRequires: python-setuptools |
1dc2749c | 14 | BuildRequires: rpm-pythonprov |
6fff7493 | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
391f4966 | 16 | %pyrequires_eq python-modules |
78bebdee AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
1dc2749c JB |
20 | The IP class allows a comfortable parsing and handling for most |
21 | notations in use for IPv4 and IPv6 Addresses and Networks. It was | |
22 | greatly inspired bei RIPE's Perl module Net::IP's interface but | |
23 | doesn't share the Implementation. It doesn't share non-CIDR netmasks, | |
24 | so funky stuff lixe a netmask 0xffffff0f can't be done here. | |
25 | ||
a18b2e7f JR |
26 | %description -l pl.UTF-8 |
27 | Klasa IP pozwala w wygodny sposób analizować i obsługiwać większość | |
28 | używanych notacji zapisu adresów i sieci IPv4 i IPv6. Jest w dużej | |
29 | części zainspirowana interfejsem modułu Perla RIPE Net::IP, ale nie | |
30 | współdzieli z nim implementacji. Nie dzieli masek sieciowych nie-CIDR, | |
31 | więc zabawne rzeczy typu maska 0xffffff0f są tutaj niewykonalne. | |
78bebdee AM |
32 | |
33 | %prep | |
34 | %setup -q -n %{module}-%{version} | |
391f4966 AF |
35 | |
36 | %build | |
2c2826e9 | 37 | %py_build |
78bebdee AM |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
2c2826e9 | 42 | %py_install \ |
391f4966 | 43 | --root $RPM_BUILD_ROOT |
78bebdee | 44 | |
2d0a0f5f AF |
45 | %py_postclean |
46 | ||
78bebdee AM |
47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
22c99a33 | 52 | %doc ChangeLog README AUTHORS COPYING |
391f4966 AF |
53 | %attr(755,root,root) %{py_sitescriptdir}/*.py[co] |
54 | %{py_sitescriptdir}/*.egg-info |