4 Summary: pyrad - Python implementation of a RADIUS client
5 Summary(pl.UTF-8): pyrad - implementacja klienta RADIUS w Pythonie
10 Group: Libraries/Python
11 Source0: http://pypi.python.org/packages/source/p/pyrad/%{module}-%{version}.tar.gz
12 # Source0-md5: ab1502f8ccd7409ced757d78b0dee7df
13 URL: http://www.wiggy.net/code/pyrad/
14 BuildRequires: python-devel >= 1:2.3
15 BuildRequires: python-modules
16 BuildRequires: python-setuptools
17 BuildRequires: rpm-pythonprov
18 %pyrequires_eq python-libs
19 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 pyrad is an implementation of a RADIUS client as described in RFC2865.
25 It takes care of all the details like building RADIUS packets, sending
26 them and decoding responses.
28 %description -l pl.UTF-8
29 pyrad jest implementacją klienta protokołu RADIUS, opisanego w
30 dokumencie RFC2865. Moduł ten odpowiada za wszystkie aspekty
31 przetwarzania protokołu RADIUS, takie jak budowanie pakietów
32 protokołu, wysyłanie ich oraz odkodowywanie odpowiedzi.
35 Summary: Example programs for Python pyrad module
36 Summary(pl.UTF-8): Programy przykładowe do modułu Pythona pyrad
37 Group: Development/Languages/Python
38 Requires: %{name} = %{version}-%{release}
41 This package contains example programs for Python pyrad module.
43 %description examples -l pl.UTF-8
44 Pakiet zawierający programy przykładowe dla modułu Pythona pyrad.
47 %setup -q -n %{module}-%{version}
50 python setup.py build_ext
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}}
57 --install-lib=%{py_sitescriptdir} \
61 cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{py_sitescriptdir}/pyrad
70 %{py_sitescriptdir}/%{module}-*.egg-info
73 %defattr(644,root,root,755)
74 %{_examplesdir}/%{name}-%{version}